This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Felix Schwarz
Recipients Felix Schwarz, dwig
Date 2009-02-15.15:17:53
SpamBayes Score 0.0008223361
Marked as misclassified No
Message-id <1234711135.71.0.0168908405308.issue4142@psf.upfronthosting.co.za>
In-reply-to
Content
I can confirm that this issue is still present in Python 2.5.2, 2.6.1
and 3.0.1.

The current behavior of smtplib is a clear violation of the SMTP
specification. The problem can be reproduced with code like that (stub,
pseudo code-like):
smtp = smtplib.SMTP()
smtp.sendmail('from@example.com', 'foo@example.com', msg)
smtp.quit()
smtp.connect()
# This command does not send EHLO/HELO again, violating the spec!
smtp.sendmail('from@example.com', 'foo@example.com', msg)

Real world bug reports due to this behavior were mostly visible with
Exim because this MTA rejects the 'MAIL FROM' if SMTP extension verbs
are used without EHLO:
*
http://groups.google.com/group/turbomail-devel/browse_thread/thread/a25c89a94b42724f
* http://www.google.com/search?q=exim+python+%22malformed+address%22+size
History
Date User Action Args
2009-02-15 15:18:55Felix Schwarzsetrecipients: + Felix Schwarz, dwig
2009-02-15 15:18:55Felix Schwarzsetmessageid: <1234711135.71.0.0168908405308.issue4142@psf.upfronthosting.co.za>
2009-02-15 15:17:54Felix Schwarzlinkissue4142 messages
2009-02-15 15:17:53Felix Schwarzcreate