Re: Email validator and mx records for subdomains

Ian Bicking <[email protected]>
Newsgroups gmane.comp.python.formencode
Message-ID <[email protected]>
Jacob Smullyan wrote:
> Today someone tried to submit a form on one of the websites I
> maintain, entering an email address of the form
> "soandso-gifGjc5/[email protected]".  The Email validator, set to check mx,
> rejected this because forums.nyu.edu doesn't have an MX record.
> However, nyu.edu does and the mail would in fact be delivered.
> 
> I'm not quite sure of what validation behavior would be most correct
> and/or useful.  Would it be better if the validator first tried
> d0.d1...dn.edu, then d1...dn.edu, then finally dn.edu for mx records?

MTAs will start looking up higher-level DNS when there's nothing lower 
down?  That seems pretty weird.  Is it actually that it's only looking 
up MX, when it should look up MX and then a normal domain?  I think the 
behavior is usually to fall back on the normal DNS when there's not MX 
record.

Oddly, I can't figure out what the simple way to lookup a DNS record in 
pyDNS is.


-- 
Ian Bicking | [email protected] | http://blog.ianbicking.org

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.