On Sun, 26.10.2008 at 22:20:28 +0100, Toni Mueller <[EMAIL PROTECTED]> wrote:
> I see a lot of these in my queues:
> 
> 25 Oct 2008 13:46:42 GMT  #30676  6607  <> 
>         remote  AlbertMuller @ondagrupera.com
> 
> Please note the space       ^ here. I'm about sure that this is
> illegal... right?

While looking at RFC821 and addrparse() in qmail-smtpd.c, it occurs to
me that address parsing could probably be made much stricter. Eg. one
could decide to not ignore source routing, but instead throw an error.
That would be against the letter of the RFC, however.

It also occurs to me that having such addresses as shown, is
effectively an error in the parsing algorithm, because spaces are only
allowed in <qtext> parts. But:

$ telnet 193.221.127.44 25
Trying 193.221.127.44...
Connected to 193.221.127.44.
Escape character is '^]'.
220 baoab.oeko.net ESMTP  99d673c17597ddbc7c5272888e2dc5df
helo test
250 baoab.oeko.net 
mail from: <support   @ oeko.net >
250 ok
...


OTOH, my understanding of RFC821 is that an address like this should
parse as '<' mailbox '>', with "mailbox" consisting of "local-part",
'@', and "domain", and, with "local-part" not containing any quotes,
disallows the use of spaces.


Kind regards,
--Toni++

Reply via email to