Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

Re: MIME::Lite error => SMTP auth() command not supported on

by keszler (Priest)
on Sep 14, 2011 at 00:17 UTC ( #925787=note: print w/ replies, xml ) Need Help??

in reply to MIME::Lite error => SMTP auth() command not supported on

Is MIME::Base64 installed?

MIME::Lite->send('smtp'... uses Net::SMTP, which in its auth method does:

eval { require MIME::Base64; require Authen::SASL; } or $self->set_status(500, ["Need MIME::Base64 and Authen::SASL tod +o auth"]), return 0;

MIME::Lite code includes:

if ($smtp->supports('AUTH',500,["Command unknown: 'AUTH'"])) { $smtp->auth( $args{AuthUser}, $args{AuthPass} ) or die "SMTP auth() command failed: $!\n" . $smtp->message . "\n"; } else { die "SMTP auth() command not supported on $hostname\n"; }

It appears possible that the lack of MIME::Base64 could result in the error you're seeing.

Comment on Re: MIME::Lite error => SMTP auth() command not supported on
Select or Download Code
Replies are listed 'Best First'.
Re^2: MIME::Lite error => SMTP auth() command not supported on
by ted.byers (Monk) on Sep 14, 2011 at 17:41 UTC


    Yes, MIME::Base64 is installed.

    What else might be awry?

      In all of the MIME::Lite code that particular error message only appears once, as shown. Net::SMTP->supports('AUTH'... fails, that error is generated. So, why does it fail from the server when it succeeds on your workstation. Same Perl, same modules; time to look elsewhere. Is the server blocked from connecting to Since this is email, is something on your network redirecting email ports to local email servers?

      On the server, at a DOS prompt, try:

      > telnet 25

      If you get a connection, you'll see something like 220 If you can't connect, or get a local email server - there's your problem.

        Well then, the mystery deepens.


        telnet 25

        produces the following output:

        220 ESMTP l71sm1167256yhj.15

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://925787]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (4)
As of 2016-02-07 13:47 GMT
Find Nodes?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?

    Results (253 votes), past polls