[Buildbot-devel] Connecting to a remote server without TLS?

Brad Hards bradh at frogmouth.net
Fri Jun 18 11:26:30 UTC 2010


Hi,

It looks like the MailNotifier can only authenticate to a remote server if TLS 
is enabled. That isn't the case for me - I need to authenticate, but can't use 
TLS.

2010-06-18 07:20:07-0400 [ESMTPSender,client] Unhandled error in Deferred:
2010-06-18 07:20:07-0400 [ESMTPSender,client] Unhandled Error
        Traceback (most recent call last):
        Failure: twisted.mail.smtp.TLSRequiredError: 502 Server does not 
support secure communication via TLS / SSL
        <<< 250-AUTH=CRAM-MD5
        <<< 250-ENHANCEDSTATUSCODES
        <<< 250-8BITMIME
        <<< 250 DSN

Is there any way to do this? I tried to hack in support, but it looks like 
ESMTPSender always wants to use TLS:
    def auth_sendmail(self, s, recipients):
        auth_result = defer.Deferred()

        auth_factory = ESMTPSenderFactory(
            self.smtpUser, self.smtpPassword,
            self.fromaddr, recipients, StringIO(s),
            auth_result)

        reactor.connectTCP(self.relayhost, self.smtpPort, auth_factory)
        
        return auth_result

Suggestions (that don't involve SMTP server reconfiguration :-)) would be most 
appreciated.

Brad




More information about the devel mailing list