by fein · 13y ago · 0 comments
^(.+)@(.+)$
max length is 254 according to the RFC I believe, so you can check for that too.
http://stackoverflow.com/questions/386294/what-is-the-maximu...
Turns out the 320 value was actually incorrect, its 256 but the mailbox is wrapped in square brackets, so 256 - 2 = 254.