Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Constraints on SMTP Message-Id?

Tags:

smtp

Are there constraints on the length and/or format of SMTP message-id's? I.e.: How long may they be, and are only certain characters allowed? (I plan to use only ASCII, but I fear that there may even be ASCII characters which aren't allowed.)

RFC822 defines this, but are there updated RFCs or common real-World aspects (such as common bugs in mail software) which should be considered?

like image 936
Troels Arvin Avatar asked Feb 27 '09 11:02

Troels Arvin


1 Answers

The updated RFC is RFC2822.

As of characters allowed, it basically

::alpha::|::digit::|[!#$%&'*+-/=?^_`{}|~.]

(It's also possible to quote literals).

It has to contain @ separating "local part" and "domain part". It MUST be globally unique.

like image 124
vartec Avatar answered Nov 08 '22 07:11

vartec