philkime has asked for the wisdom of the Perl Monks concerning the following question:
This is all fine and working as expected - code 334 is the username prompt. However, with:openssl s_client -starttls smtp -crlf -connect smtpserver:25 . . . 250 OK AUTH LOGIN . . . 334 VXNlcm5hbWU6
This dies with an SMTP 421 code "Connection closed" in the ->auth method. Debugging with Net::Cmd shows that this dies before it gets a username prompt and occurs immediately after sending "AUTH LOGIN".my $smtp = Net::SMTP_auth->new('smtpserver'); $smtp->starttls; $smtp->auth('LOGIN', 'username', 'password);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Net::SMTP_auth giving 421 errors with authentication
by Veltro (Hermit) on Jul 16, 2018 at 11:41 UTC | |
by philkime (Beadle) on Jul 17, 2018 at 18:15 UTC |