Programmers with network engineering skills

Jeroen van Aart jeroen at mompl.net
Mon Mar 12 23:22:53 UTC 2012


Owen DeLong wrote:
> http://en.wikipedia.org/wiki/Email_address#Valid_email_addresses
> 
> You may have noticed my particular test wouldn't accept foo!bar!ucbvax!user format addresses, either.
> 
> It works well enough for my purposes. I did not claim it was perfect.

Why not leave it to the MTA to decide what is a valid address? It only 
requires a few SMTP commands to the MTA to know if it will accept it. 
Normally the MTA will tell you after the "rcpt to:" command if it will 
accept it (i'm ignoring some badly behaving MTAs who will swallow 
anything and then bounce, no point trying to work around such crap).

No need to re-invent the wheel, unless you're actually creating an MTA 
or something similar.

Who is to say that even IF your address verifier verifies it as valid 
that the MTA is configured to allow it (or the other way around)? MTAs 
can be arbitrarily configured to (dis)allow "bang path" addresses, IP 
addresses etc.

Regards,
Jeroen

-- 
Earthquake Magnitude: 5.0
Date: Monday, March 12, 2012 17:55:10 UTC
Location: Kepulauan Talaud, Indonesia
Latitude: 3.0222; Longitude: 127.0054
Depth: 35.00 km




More information about the NANOG mailing list