[Buildbot-devel] Connecting to a remote server without TLS?
exarkun at twistedmatrix.com
exarkun at twistedmatrix.com
Fri Jun 18 13:16:05 UTC 2010
On 11:26 am, bradh at frogmouth.net wrote:
>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)
ESMTPSenderFactory accepts two more arguments: requireAuthentication and
requireTransportSecurity. They both default to True.
>
> reactor.connectTCP(self.relayhost, self.smtpPort, auth_factory)
>
> return auth_result
>
>Suggestions (that don't involve SMTP server reconfiguration :-)) would
>be most
>appreciated.
Jean-Paul
More information about the devel
mailing list