good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: SMTP and TLSby thewebsi (Scribe) |
on Jan 27, 2012 at 01:19 UTC ( [id://950247]=note: print w/replies, xml ) | Need Help?? |
HELO adsf The telnet test certainly does away with any theory that the port might be blocked. It is clearly open, and there is a listener on the other end. However, your scripts go much further than this, actually attempting to negotiate an encrypted connection, log in, and even send a message. The script is likely failing at a later stage. At this point, I would want to test the server to see if it indeed supports TLS, the authentication information you have is correct, and that you are allowed to use it to send messages. The server might be set up to hang if it's not happy with the transaction (this is a common way to slow down spambots). Unfortunately, this behaviour may mean that you won't get much in the way of useful error messages (as you've already noticed). I've used this guide before to test SMTP servers for access. It uses command-line tools, but you can certainly use Net::SMTP for example to achieve the same. Note that this is unlikely to be an issue particular to Perl.
Arnon Weinberg
Back2Front - The Web Site People
In Section
Seekers of Perl Wisdom
|
|