Roundup Tracker - Issues

Issue 1912923

classification
smtp with tls fails to login to smtp.gmail.com
Type: Severity: normal
Components: Mail interface Versions:
process
Status: closed accepted
: gmail SMTP AUTH error
View: 2484879
: richard : richard, tsdorsey
Priority: normal :

Created on 2008-03-12 18:17 by tsdorsey, last changed 2009-03-17 23:14 by richard.

Files
File name Uploaded Description Edit Remove
smtpTest.py tsdorsey, 2008-03-12 18:17 Small script to illustrate the problem/solution
Messages
msg2539 Author: [hidden] (tsdorsey) Date: 2008-03-12 18:17
This might be considered a bug in smtplib but a simple 2 line workaround can be added to mailer.py in the mean time.

In the "smtpTest.py" file (it's attached) the "works" function uses the ehlo() fuction to refresh that data before attempting to send starttls() or login().  

when using tls with gmail (and perhaps other smtp servers) the available features changes after you send starttls.  However the esmtp_features dictionary of the connection doesn't update when you send starttls.

The fix I made in Roundup\mailer.py was to add a call to self.ehlo() in the SMTPConnection.__init__ function just before both self.starttls() and self.login()

-Trevor D
History
Date User Action Args
2009-03-17 23:14:24richardsetstatus: open -> closed
resolution: accepted
superseder: gmail SMTP AUTH error
2008-03-12 18:17:02tsdorseycreate