What makes an email valid
Google searching gives me a bunch of premade email validators, and a few rules. If i examine the regular expressions in most email validators, I can extract a set of rules, but somewhere along the line someone must have had a document with the set of rules.
I did look through RFC's 821 and 2822, did find section 3.4 Address specification but that did not seem to give me the rules for valid email.
Email validators are all over the net, in javascript, php, vbScript, so they are no problem to find and understand. But im just curious of the actual rules that govern weather a email is valid or not.
I discovered, that username@ip-address is valid but not acepted by many sites. I came across a usenet post, and it was stated whatever sendmail acepts is valid, but we know sendmail is not the only mail deamon.
In my Google searches I did come across some rules.
Valid characters are a-z 0-9 hiphen, underscore and dot. Must be at least 7 characters, can contain only one @. Extension (.com, .net...) can be 2 to 4 characters, . and @ cannot apear together. sub domain must have at least 2 letters. No spaces are alowed.
Can someone please direct me.