<div dir="ltr"><div>The problem was that Buildbot silently fails to import ssl because PyOpenSSL was not installed, as explained here:<br><br><a href="http://buildbot-commits.narkive.com/R9JWkI4l/buildbot-1786-master-fails-to-send-mail-with-tls-on-windows">http://buildbot-commits.narkive.com/R9JWkI4l/buildbot-1786-master-fails-to-send-mail-with-tls-on-windows</a><br><br></div>Installing PyOpenSSL re-enabled mail. This threw me off because this wasn't a requirement in version 0.8.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 16, 2017 at 11:10 AM, Chris Spencer <span dir="ltr"><<a href="mailto:chrisspen@gmail.com" target="_blank">chrisspen@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>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:<br><br>    mn = reporters.MailNotifier(<br>        fromaddr="<a href="mailto:buildbot@mydomain.com" target="_blank">buildbot@mydomain.<wbr>com</a>",<br>        sendToInterestedUsers=True,<br>        useTls=True,<br>        relayhost="<a href="http://smtp.gmail.com" target="_blank">smtp.gmail.com</a>",<br>        smtpPort=587,<br>        smtpUser="<a href="mailto:buildbot@mydomain.com" target="_blank">buildbot@mydomain.<wbr>com</a>",<br>        smtpPassword=SUPER_SECRET_<wbr>PASSWORD,<br>    )<br>    c['services'].append(mn)<br><br></div>However, I'm no longer receiving emails and twistd.log shows the error:<br><br>    2017-02-16 16:03:02+0000 [-] sending mail (692 bytes) to ['<a href="mailto:me@mydomain.com" target="_blank">me@mydomain.com</a>']<br>    2017-02-16 16:03:02+0000 [-] Starting factory <twisted.mail.smtp.<wbr>ESMTPSenderFactory instance at 0x7fc38d3ad518><br>    2017-02-16 16:03:02+0000 [-] Unhandled error in Deferred:<br>    2017-02-16 16:03:02+0000 [-] Unhandled Error<br>        Traceback (most recent call last):<br>        Failure: twisted.mail._except.<wbr>TLSRequiredError: 502 Server does not support secure communication via TLS / SSL<br>        <<< 250-8BITMIME<br>        <<< 250-STARTTLS<br>        <<< 250-ENHANCEDSTATUSCODES<br>        <<< 250-PIPELINING<br>        <<< 250-CHUNKING<br>        <<< 250 SMTPUTF8<br><br></div>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?<br><br></div>
</blockquote></div><br></div>