Problem sending mails using bts and SMTP-AUTH

Daniel Leidert daniel.leidert at wgdd.de
Mon Oct 3 19:29:22 UTC 2016


Am Sonntag, den 02.10.2016, 21:46 +0100 schrieb Adam D. Barratt:
> On Sun, 2016-10-02 at 18:04 +0200, Daniel Leidert wrote:
> > I've setup the MTA on my laptop for local mail delivery only. So to
> > send mails, programs have to use (and support) SMTP-AUTH and TLS to
> > communicate over my mail-server (self-signed certificate).
[..]
> > bts: failed to authenticate to mail.wgdd.de:587
> > ()
> 
> 
> bts has SMTPS support - i.e. TLS-on-connect - but not STARTTLS
> support;
> there's Debian bug #518622.

Thanks for the information. I was also playing around here. Maybe one
can even use Net::SMTP without depending on Net::SMTP::SSL
or Net::SMTPS like this:

Net::SMTP->new($host, Debug => 1, Port => $port, SSL => 'starttls',
[..] ...)

The difference (here) is, that Net::SMTP seems to work on port 465 only
and Net::SMTPS works on port 587 too (as far as I observed).

My problem is, that I need to pass "SSL_verify_mode => 0" or I get a
server certificate error (I use a self-signed certificate). So for the
moment I have to patch bts locally :(

Regards, Daniel



More information about the devscripts-devel mailing list