Bug#549524: libnet-smtp-ssl-perl should depend on libauthen-sasl-perl

Alex Schröder kensanata at gmail.com
Sat Oct 3 22:26:42 UTC 2009


Package: libnet-smtp-ssl-perl
Version: 1.01-2

libnet-smtp-ssl-perl should depend on libauthen-sasl-perl. I wanted to
use Net::SMTP::SSL to send mail; I think the most common reason is
that the mail server requires authentication. Thus you will be using
the auth method. If you check it out, you'll find the following:

sub auth {
  my ($self, $username, $password) = @_;

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

There is therefore a dependency on Authen::SASL. If you don't have
that module, sending your email will fail in a non-obvious way:

Net::SMTP::SSL=GLOB(0xa025520)>>> EHLO localhost.localdomain
Net::SMTP::SSL=GLOB(0xa025520)<<< 250-mx.google.com at your service,
[83.137.100.36]
Net::SMTP::SSL=GLOB(0xa025520)<<< 250-SIZE 35651584
Net::SMTP::SSL=GLOB(0xa025520)<<< 250-8BITMIME
Net::SMTP::SSL=GLOB(0xa025520)<<< 250-AUTH LOGIN PLAIN
Net::SMTP::SSL=GLOB(0xa025520)<<< 250-ENHANCEDSTATUSCODES
Net::SMTP::SSL=GLOB(0xa025520)<<< 250 PIPELINING
Net::SMTP::SSL=GLOB(0xa025520)>>> MAIL FROM:<kensanata at gmail.com>
Net::SMTP::SSL=GLOB(0xa025520)<<< 530-5.5.1 Authentication Required.
Learn more at

As you can see, the module will not send the required AUTH LOGIN
command, and there's no error message telling you why this is
happening.

Installing libauthen-sasl-perl fixes the problem.

Regards
Alex





More information about the pkg-perl-maintainers mailing list