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-25.17:31:10
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Logged In: YES 
user_id=35752

So much discussion for such a little issue. :-)

A misconfigured server must be part of your scenario.  It's
the only case were the hostname makes any difference.  Using
localhost.localdomain will work find on 99.99% of mail
servers.  For the remaining 0.01%, using socket.getfqdn() has
a higher chance of working than using localhost.localdomain.
If socket.getfqdn() can find a hostname that resolves
back to the IP of the client side of the connection then
it works.  Using localhost.localdomain in that case will
not work.

If socket.getfqdn() cannot find the FQDN (due to NAT,
tunnelling or whatever) things work just as well as if
localhost.localdomain was used a default.  Changing the
default to localhost.localdomain fixes nothing!

getfqdn() is a hack because it's relies on DNS. People
always screw that up. :-)

Regarding your suggested API change, I don't see how it
would help.  I doubt any code actually passes
socket.getfqdn() to SMPT.helo().
History
Date User Action Args
2007-08-23 15:10:20adminlinkissue497736 messages
2007-08-23 15:10:20admincreate