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 <1217282925.26.0.916204427354.issue3461@psf.upfronthosting.co.za>
In-reply-to
Content
On an IPv6-only machine, smtplib does not send an IPv6 address in the 
EHLO. It sends "EHLO [0.0.0.0]" 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.
History
Date User Action Args
2008-07-28 22:08:45dmorrsetrecipients: + dmorr
2008-07-28 22:08:45dmorrsetmessageid: <1217282925.26.0.916204427354.issue3461@psf.upfronthosting.co.za>
2008-07-28 22:08:43dmorrlinkissue3461 messages
2008-07-28 22:08:43dmorrcreate