[Twisted-Python] SMTP authentication
Sarah Addis
sarahaddis3 at gmail.com
Tue Jul 24 04:36:55 MDT 2012
I am currently trying to use a SMTP server to send emails. However I keep
getting the same python authentication error outlined below. The SMTP
server requires authentication and can advertise CRAM-MD5 as an accepted
authentication method but fails when the client tries to use it. No other
methods are tried after the failure, Python's smtplib just raises an
Exception. I have attached the traceback below
2012-07-19 15:21:45+0100 [ESMTPSender,client] Unhandled error in Deferred:
2012-07-19 15:21:45+0100 [ESMTPSender,client] Unhandled Error
Traceback (most recent call last):
* ****Failure: twisted.mail.smtp.AUTHDeclinedError: 535 5.7.0
authentication failed***
<<< 250 HELP
>>> STARTTLS
<<< 220 2.0.0 Ready to start TLS
>>> EHLO localhost.localdomain
<<< 250-server.company.co.uk Hello [111.111.11.111], pleased to meet you
<<< 250-ENHANCEDSTATUSCODES
<<< 250-PIPELINING
<<< 250-8BITMIME
<<< 250-SIZE 20480000
<<< 250-DSN
<<< 250-ETRN
* **<<< 250-AUTH DIGEST-MD5 CRAM-**MD5 LOGIN PLAIN*
<<< 250-DELIVERBY
<<< 250 HELP
* **>>> AUTH CRAM-**MD5*
<<< 144 $DMwMTEEMDA2OC41MzA1DDVAaGQkcmlh&i5sYXRlbnMuY28udWs+
>>> bGJ1aWxk3XIgYWRhZTUzNmY0OWU1YzU0NmY1MjM0OGIwNGE3^zhjYTg=
<<< 535 5.7.0 authentication failed
2012-07-19 15:21:45+0100 [-] SVNPoller: polling
2012-07-19 15:21:45+0100 [ESMTPSender,client] Stopping factory
<twisted.mail.smtp.ESMTPSenderFactory instance at 0x5385908>
I have googled this problem extensively, the most useful website being
https://code.djangoproject.com/ticket/9488 but I am unsure how to
implement this solution within the twisted files. I would appreciate
any guidance on how to proceed with fixing this problem and which
files I should be looking at changing!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/twisted-python/attachments/20120724/87fad9d0/attachment.html>
More information about the Twisted-Python
mailing list