The problem was that Buildbot silently fails to import ssl because PyOpenSSL was not installed, as explained here:
http://buildbot-commits.narkive.com/R9JWkI4l/buildbot-1786-master-fails-to-send-mail-with-tls-on-windows Installing PyOpenSSL re-enabled mail. This threw me off because this wasn't a requirement in version 0.8. On Thu, Feb 16, 2017 at 11:10 AM, Chris Spencer <chriss...@gmail.com> wrote: > The MailNotifier is not working for me in 0.9. It was working perfectly in > 0.8, and most of the settings seemed to have remained the same, so I copied > over what I had before, giving me the configuration: > > mn = reporters.MailNotifier( > fromaddr="build...@mydomain.com", > sendToInterestedUsers=True, > useTls=True, > relayhost="smtp.gmail.com", > smtpPort=587, > smtpUser="build...@mydomain.com", > smtpPassword=SUPER_SECRET_PASSWORD, > ) > c['services'].append(mn) > > However, I'm no longer receiving emails and twistd.log shows the error: > > 2017-02-16 16:03:02+0000 [-] sending mail (692 bytes) to [' > m...@mydomain.com'] > 2017-02-16 16:03:02+0000 [-] Starting factory > <twisted.mail.smtp.ESMTPSenderFactory > instance at 0x7fc38d3ad518> > 2017-02-16 16:03:02+0000 [-] Unhandled error in Deferred: > 2017-02-16 16:03:02+0000 [-] Unhandled Error > Traceback (most recent call last): > Failure: twisted.mail._except.TLSRequiredError: 502 Server does > not support secure communication via TLS / SSL > <<< 250-8BITMIME > <<< 250-STARTTLS > <<< 250-ENHANCEDSTATUSCODES > <<< 250-PIPELINING > <<< 250-CHUNKING > <<< 250 SMTPUTF8 > > Now, I know for a fact that Gmail supports TLS because I'm using it in > several other applications with TLS enabled just fine, and I TLS was > enabled with the 0.8 mail notifier, which also worked just fine. Why am I > getting this error? > >
_______________________________________________ users mailing list users@buildbot.net https://lists.buildbot.net/mailman/listinfo/users