R. David Murray <rdmur...@bitdance.com> added the comment:

Right, those absolutely are valid addresses.  A resolver will normally look up 
a name with an internal dot first as if it were an FQDN, but if it does so and 
does not get an answer it will then look it up again as a "local" address 
(appending in turn the strings from the 'search' directive in resolv.conf or 
equivalent) *if* it does not end in a final dot.  If it does end in a final 
dot, no further lookup as local is done.

While it isn't *normal* to send email to a TLD using a trailing dot, it is 
*legal*.  In theory the address 'postmaster@com.' ought to be a valid email 
address (I doubt that it actually is, though). On the other hand, I will be 
very surprised if *all other* TLDs are without valid email addresses, 
especially the new ones.  It is also easy to imagine an environment using email 
with private single label domain names using trailing dots specifically to 
suppress appending of search domains for sandboxing reasons.  Thus the email 
library must support it as valid, both for RFC reasons and for practical 
reasons.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue37492>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to