As RFC2822 is for the DATA section of an smtp transaction, it is not to = be considered at smtp level :)
At smtp level you should only refer to RFC 2821 :) RFC 2821 (smtp protocol) says somethink about MAIL FROM and RCPT TO = syntaxes and checks: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D 2.3.10 Mailbox and Address As used in this specification, an "address" is a character string that identifies a user to whom mail will be sent or a location into which mail will be deposited. The term "mailbox" refers to that depository. The two terms are typically used interchangeably unless the distinction between the location in which mail is placed (the mailbox) and a reference to it (the address) is important. An address normally consists of user and domain specifications. The standard mailbox naming convention is defined to be "local- [EMAIL PROTECTED]": contemporary usage permits a much broader set of applications than simple "user names". Consequently, and due to a long history of problems when intermediate hosts have attempted to optimize transport by modifying them, the local-part MUST be interpreted and assigned semantics only by the host specified in the domain part of the address. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D The last phrase "Consequently, ..." is the response to your problem :) "the local-part MUST be interpreted and assigned semantics only by the = host specified in the domain part of the address." So xmail MUST check "local-part" syntax ONLY if it's the server = responsible of the 'domain' If the mail is not for an domain handled the xmail server, xmail MUST = ONLY check the domain part of the RCPT TO values to get the route to the = final servers. Notice that in the 'handled domain' case, it's to the 'implementer' to decide what is 'correct' or not at the 'local-part' Now this said, returning to the sample you posted on the forum : =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D "02 99 99 12 26"@domain.com But Xmail doesn't accept this email adress as a incoming recipient (CF = log) "extdom.fr" "intdom.fr" "10.159.88.2" "2008-07-21 10:58:13" = "smtp.extdom.fr" "" "" "02 99 99 12 26"@domain.com" "S4B136FF" "RCPT=3DESYNTAX" "" "0" = "" =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D "incoming recipient" ?!? does xmail handles/manage the @domain.com ? If yes, xmail can check and reject if 'local-part' is not correct for = it (so not correct for Davide point of vue :) so if you want mailboxes with spaces, special chards, ask Davide to = accept them (and handle quoted 'local-part'), or don't use xmail server at all = :) If @domain.com it a foreign domain, then you are true, xmail MUST NOT = reject because "02 99 99 12 26" (quotes included) is not 'xmail correct' :) = it's at the domain.com mx servers to decide if correct or not :) Francis Francis >-----Message d'origine----- >De : [EMAIL PROTECTED] >[mailto:[EMAIL PROTECTED] la part de >[EMAIL PROTECTED] >Envoy=E9 : mardi 21 octobre 2008 03:52 >=C0 : [email protected] >Objet : [xmail] email address validation (RFC2822...) > > >Hello David > > >Please refer this topic: > >http://xmailforum.homelinux.net/index.php?showtopic=3D4294 > > >I'm sure that many japanese xmail fans need this. > >Thank you. > > >sw20 > >- >To unsubscribe from this list: send the line "unsubscribe xmail" in >the body of a message to [EMAIL PROTECTED] >For general help: send the line "help" in the body of a message to >[EMAIL PROTECTED] > - To unsubscribe from this list: send the line "unsubscribe xmail" in the body of a message to [EMAIL PROTECTED] For general help: send the line "help" in the body of a message to [EMAIL PROTECTED]
