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 nascheme
Recipients
Date 2002-03-24.15:37:18
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Logged In: YES 
user_id=35752

I'm rejecting this patch.  RFC 1123 requires that name
sent after the HELO verb is "a valid principal host domain
name for the client host".  While RFC 1123 goes on to prohibit
HELO-based rejections it is possible that some servers do
reject mail based on HELO.  Thus, changing the hostname
sent to "localhost.localdomain" could potentially break
scripts that currently work.

The concern raised is still valid however.  Finding the
FQDN using gethostbyname() is unreliable.  To address this
concern I've added a "local_hostname" argument to the
SMTP __init__ method.  If provided it is used as the local
hostname for the HELO and EHLO verbs.
History
Date User Action Args
2007-08-23 15:10:20adminlinkissue497736 messages
2007-08-23 15:10:20admincreate