Hi brothers. A program of mine contains the following section :
... MIME::Lite->send( 'smtp' => $args->{'smtp'}, 'AuthUser' => $uid, 'AuthPass' => $args->{'smtppw'} ); ...
This has worked fine for a couple of years, under perl 5.8.8. This last week-end, the host was upgraded from Debian Linux "Etch" to "Lenny", and at the same time perl went from 5.8.8 to 5.10.0. As a result, the same program now crashes with the following error :

2011/05/12-11:40:25 error SMTP auth() command failed: 5.5.4 Syntax: AUTH mechanism

Does that ring a bell to anyone ? I tried to follow the chain of what happens, and track it down to this section of MIME::Lite :
my $smtp = MIME::Lite::SMTP->new( $hostname, %opts ) or Carp::croak "SMTP Failed to connect to mail server: $!\n"; # Possibly authenticate if ( defined $args{AuthUser} and defined $args{AuthPass} and !$args{NoAuth} ) { 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"; } }
and gather that MIME::Lite::SMTP->new() itself boils down to a Net::SMTP->new(), but then I get hopelessly lost, because that is definitely wizard code from Graham Barr and such, leading further to Authen::SASL and lots of references to globs (or vice-versa, my head spins).

Anyway, my basic question is : this worked fine for years with perl 5.8.8, the mail server has not changed, my program has not changed, so any clue about what is happening here ?


In reply to SMTP "auth" problem after upgrade by soliplaya

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.