[users at bb.net] MailNotifier unable to send

Chris Spencer chrisspen at gmail.com
Thu Feb 16 16:10:17 UTC 2017


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="buildbot at mydomain.com",
        sendToInterestedUsers=True,
        useTls=True,
        relayhost="smtp.gmail.com",
        smtpPort=587,
        smtpUser="buildbot at 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 ['
me at 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?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.buildbot.net/pipermail/users/attachments/20170216/d95b8189/attachment.html>


More information about the users mailing list