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 dmorr
Recipients dmorr
Date 2008-07-28.22:08:40
SpamBayes Score 0.0121042
Marked as misclassified No
Message-id <>
On an IPv6-only machine, smtplib does not send an IPv6 address in the 
EHLO. It sends "EHLO []" instead. For example, on a v6-only 
network with stateless autoconfiguration enabled (a common 
configuration), smtplib will show this error.

Further, SMTP's __init__() method tries to determine the value of EHLO 
parameter before the socket is established. But it can't know what 
value to use before the socket is setup (e.g., should it use a 
hostname, a v4 address literal, or a v6 address literal).

The attached patch moves the self.local_hostname processing into the 
connect() method, and updates it to use IPv6-aware resolver interfaces.
Date User Action Args
2008-07-28 22:08:45dmorrsetrecipients: + dmorr
2008-07-28 22:08:45dmorrsetmessageid: <>
2008-07-28 22:08:43dmorrlinkissue3461 messages
2008-07-28 22:08:43dmorrcreate