Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. SMTP Error Code

SMTP Error Code

Scheduled Pinned Locked Moved C / C++ / MFC
helpsysadminquestion
8 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • O Offline
    O Offline
    Ozgur
    wrote on last edited by
    #1

    Hi, I am trying to send an email through connecting to SMTP Server. It establishes the connection successfully with the server but when i issue RCPT To: it returns an error with code number 571 and a text "....we do not relay! I could not find this error code within any document related to SMTP Errors. Does anybody know anything about it?Can you please put some light over me? I am tearing my hairs! with greetings from Germany Özgür

    R M O 4 Replies Last reply
    0
    • O Ozgur

      Hi, I am trying to send an email through connecting to SMTP Server. It establishes the connection successfully with the server but when i issue RCPT To: it returns an error with code number 571 and a text "....we do not relay! I could not find this error code within any document related to SMTP Errors. Does anybody know anything about it?Can you please put some light over me? I am tearing my hairs! with greetings from Germany Özgür

      R Offline
      R Offline
      Ravi Bhavnani
      wrote on last edited by
      #2

      Sounds like the SMTP server won't let you specify a "FROM" belonging to a different domain. If the SMTP server is smtp.foo.com, it looks like you'll have to be username@foo.com and not username@bar.com. /ravi "There is always one more bug..." http://www.ravib.com ravib@ravib.com

      1 Reply Last reply
      0
      • O Ozgur

        Hi, I am trying to send an email through connecting to SMTP Server. It establishes the connection successfully with the server but when i issue RCPT To: it returns an error with code number 571 and a text "....we do not relay! I could not find this error code within any document related to SMTP Errors. Does anybody know anything about it?Can you please put some light over me? I am tearing my hairs! with greetings from Germany Özgür

        M Offline
        M Offline
        markkuk
        wrote on last edited by
        #3

        I guess they really mean error 551-5.7.1 (RFC2034, RFC1893). 5.7.1 would mean: 5.x.x = permanent failure (retrying won't help) x.7.x = security or policy status x.7.1 = delivery not authorized, the sender is not authorized to send to the destination

        1 Reply Last reply
        0
        • O Ozgur

          Hi, I am trying to send an email through connecting to SMTP Server. It establishes the connection successfully with the server but when i issue RCPT To: it returns an error with code number 571 and a text "....we do not relay! I could not find this error code within any document related to SMTP Errors. Does anybody know anything about it?Can you please put some light over me? I am tearing my hairs! with greetings from Germany Özgür

          R Offline
          R Offline
          Ravi Bhavnani
          wrote on last edited by
          #4

          Sorry, I may have misled you by my earlier reply. The 571 error code can also be returned when the FROM domain doesn't match that of the SMTP server. This is configurable by the ISP. Getting back to your problem: try the issuing the RCPT command without relaying information - i.e. use a direct destination of the form user@foo.com instead of @host.com:user@foo.com (which requests that host.com relays the mail to user@foo.com). Does this help? /ravi "There is always one more bug..." http://www.ravib.com ravib@ravib.com

          O 1 Reply Last reply
          0
          • O Ozgur

            Hi, I am trying to send an email through connecting to SMTP Server. It establishes the connection successfully with the server but when i issue RCPT To: it returns an error with code number 571 and a text "....we do not relay! I could not find this error code within any document related to SMTP Errors. Does anybody know anything about it?Can you please put some light over me? I am tearing my hairs! with greetings from Germany Özgür

            O Offline
            O Offline
            Obliterator
            wrote on last edited by
            #5

            This is definitely an anti-spam measure. Many SMTP servers are now configured to avoid relaying email from unknown sources to avoid spam and malicious attacks. The SMTP may server may allow you to log in with a valid account, in which case it would then permit relaying. Failing that it probably expects the email to originate within its own domain, try setting the reply address to a user on the same domain as the SMTP server. The following link may be of use: http://www.mailabuse.org -- The Obliterator

            O 1 Reply Last reply
            0
            • O Obliterator

              This is definitely an anti-spam measure. Many SMTP servers are now configured to avoid relaying email from unknown sources to avoid spam and malicious attacks. The SMTP may server may allow you to log in with a valid account, in which case it would then permit relaying. Failing that it probably expects the email to originate within its own domain, try setting the reply address to a user on the same domain as the SMTP server. The following link may be of use: http://www.mailabuse.org -- The Obliterator

              O Offline
              O Offline
              Ozgur
              wrote on last edited by
              #6

              Hi, I am definitly trying to send e-mail through my SMTP Server. I used nslookup to detect my SMTP Server. The IP address is like: blabla.somecompany.de And my email address is like :ozgur@blabla.somecompany.de and my host name is like : blablacomputer.somecompany.de more help? greetings from .de Özgür

              O 1 Reply Last reply
              0
              • R Ravi Bhavnani

                Sorry, I may have misled you by my earlier reply. The 571 error code can also be returned when the FROM domain doesn't match that of the SMTP server. This is configurable by the ISP. Getting back to your problem: try the issuing the RCPT command without relaying information - i.e. use a direct destination of the form user@foo.com instead of @host.com:user@foo.com (which requests that host.com relays the mail to user@foo.com). Does this help? /ravi "There is always one more bug..." http://www.ravib.com ravib@ravib.com

                O Offline
                O Offline
                Ozgur
                wrote on last edited by
                #7

                Hi Ravi, It does not work... May be i should consult my netswork administrator.. thanks for your help

                1 Reply Last reply
                0
                • O Ozgur

                  Hi, I am definitly trying to send e-mail through my SMTP Server. I used nslookup to detect my SMTP Server. The IP address is like: blabla.somecompany.de And my email address is like :ozgur@blabla.somecompany.de and my host name is like : blablacomputer.somecompany.de more help? greetings from .de Özgür

                  O Offline
                  O Offline
                  Obliterator
                  wrote on last edited by
                  #8

                  If the SMTP server resides with an ISP I would ensure you are connecting to their network via that ISP rather an another ISP. You must use the SMTP server of the ISP you are actually connected with, thus even for somecompany.com you may have to use smtp.btopenworld.com if you connect via BT openworld for example. If the SMTP server resides within a corporate network, check you are sending the email from within that network. Short of that I would contact the administrator of the server for help. You may need to login to SMTP server via secure sockets (STARTTLS) or whatever to actually be granted permission to send email. Otherwise I would try to locate an alternate SMTP which supports relaying. -- The Obliterator

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups