Hi,
in buildbot nine, there are two way of supporting encrypted connection.

useTls=True   This will actually connect over TCP, and then switch to
encrypted after the SMTP command STARTTLS
useSmtps=True  This will use the smtps protocol, which just use SMTP over
standard TLS connection

If useTls is not working, this might be an issue with twisted

You may try to use useSmtps as google is also supporting that
https://support.google.com/a/answer/176600



Le jeu. 16 févr. 2017 à 17:33, Riccardo Corsi <[email protected]>
a écrit :

> Hi,
>
> I have the exact same problem here.
> Running 0.9.3. on Windows 10 machine (actually VM with VirtualBox)
>
> Ricky
>
> On Thu, Feb 16, 2017 at 5:10 PM, Chris Spencer <[email protected]>
> 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="[email protected]",
>         sendToInterestedUsers=True,
>         useTls=True,
>         relayhost="smtp.gmail.com",
>         smtpPort=587,
>         smtpUser="[email protected]",
>         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 ['
> [email protected]']
>     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
> [email protected]
> https://lists.buildbot.net/mailman/listinfo/users
>
>
> _______________________________________________
> users mailing list
> [email protected]
> https://lists.buildbot.net/mailman/listinfo/users
_______________________________________________
users mailing list
[email protected]
https://lists.buildbot.net/mailman/listinfo/users

Reply via email to