Without distracting you with unrelated parts of the script or the reasons for deciding on the methods, I am attempting to use the Net::SMTP module to connect to a local Exchange server to send a simple message.
When I enable the Debug output of the Net::SMTP connection, everything looks good and is accepted as valid, but the connection ends with "554 5.1.0 Sender Denied" when I try to send the message.
When I telnet to port 25 on the same mail server and send the exact commands the script sent (copied and pasted from the script's Debug output), the message is accepted and sent without error.
You can view the stripped down script and "sanitized" output from the Debug script and my telnet session here. (link removed, as the problem was stupid and is now fixed -- see my reply)
As you can see, the script is pretty much as basic as it gets. Is there anything special I need to know about Net::SMTP transactions? It appears to be identical to a raw telnet to port 25, yet it fails while the telnet succeeds. I am completely stumped and would greatly appreciate any suggestions you can provide.
In reply to Net::SMTP send rejected, but telnet transaction works by xephonia
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |