]> granicus.if.org Git - python/commit
__init__(): We'll try to be more RFC 2821 compliant by providing for a
authorBarry Warsaw <barry@python.org>
Tue, 26 Mar 2002 20:27:35 +0000 (20:27 +0000)
committerBarry Warsaw <barry@python.org>
Tue, 26 Mar 2002 20:27:35 +0000 (20:27 +0000)
commit13e34f7a192d6f262a5bc000a3547c1d5ce59bee
tree0c6da550b9490189eb1554d90a72006c605cf916
parent69f0a8e42fa5f5420167d054df987ef529164d0d
__init__(): We'll try to be more RFC 2821 compliant by providing for a
better local_hostname default.  According to RFC 2821, it is
recommended that the fqdn hostname be provided in the EHLO/HELO verb
and if that can't be calculated, to use a domain literal.

The rationale for this change is documented in SF patch #497736 which
also had privacy concerns about leaking the fqdn in the EHLO/HELO.  We
decided this wasn't a big concern because no user data is leaked, and
the IP will always be leaked.  The local_hostname argument is provided
for those clients that are super paranoid.

Using localhost.localdomain may break some strict smtp servers so we
decided against using it as the default.
Lib/smtplib.py