Home > Default > Unable to send email from my server to internet mail address. Labview.

Unable to send email from my server to internet mail address. Labview.

October 11Hits:3
Advertisement
I have had great success sending mail when I SMTP to the actual mail server that the email address is on. But when I try to send from my server to some other email address I get an unable to relay "email address" server response. If someone has any ideas on this I would appreciate it. I have included some information that may aid in this endeavor. (I do not want to use Active X thanks to Outlook's dislike of that)
Example:
[email protected] email to mail.bellsouth.net works fine. [email protected] email to mail.company.com works fine. [email protected] from mail.company.com gives unable to relay message. (Vice Versa)
Exact server response from SendEmail_LV6.vi from developer zone: (
ht
tp://sine.ni.com/apps/we/niepd_web_display.DISPLAY_EPD4?p_guid=B45EACE3EB9956A4E034080020E74861&p_node=DZ52050&p_submitted=N&p_rank=&p_answer=&p_source=External)
220 server.company.com Microsoft ESMTP MAIL Service, Version: 5.0.2195.5329 ready at Fri, 23 Jan 2004 10:27:22 -0600
250 server.company.com Hello [10.1.1.176]
250 2.1.0 [email protected]...Sender OK
550 5.7.1 Unable to relay for [email protected]
554 5.5.2 No valid recipients
500 5.3.3 Unrecognized command

Answers

I agree, it is ususual for an SMTP server to check the validity of the reverse-path address, because mailers could just use a invalid address on a valid domain, e.g. [email protected] The address in the "MAIL FROM:" command gives the reverse path to communicate errors and can be different from the actual sender address.
In any case, this is quite irrelevant for the current discussion, because address verification has nothing to do with relaying.
The error message:
550 5.7.1 Unable to relay for [email protected]
is completely unrelated to your:
450 Unable to find nowhere.com
Just to clarify, I was talking about address in the FROM: field of the message header, and not what is
communicated in the "MAIL FROM:" SMTP command. (Similarly, the TO: field in the header is not used for message targeting and can be anything, it can even be missing and the SMTP server still does not care. Targeting is done entirely with the RCPT TO: SMTP command which not contained in the header (the mail header is part of the message DATA). Refer to RFC 821 for further details.
You probably won't find a legitimate SMTP server that allows relaying, so the solution is to use the designated SMTP server for the particular location.
LabVIEW Champion . Do more with less code and in less time .

Read other 10 answers

Tags:

Related Articles

Copyright (C) 2019 wisumpire.com, All Rights Reserved. webmaster#wisumpire.com 14 q. 0.612 s.