Re: [exim] spaces and quotes

Top Page
Delete this message
Reply to this message
Author: Viktor Dukhovni
Date:  
To: exim-users
Subject: Re: [exim] spaces and quotes
On Sat, Aug 08, 2015 at 02:55:55AM +0000, Jasen Betts wrote:

> AFAICT this address is RFC compliant.


Yes, spaces in the localpart are valid inside a quoted string.

> ehlo you
> mail from: <"a b"@???>


This is a minor protocol violation, because the correct syntax is:

    mail from:<localpart@domain> [esmtp extensions]


with no whitespace between the ":" and the left "<" of the address.
However, most MTAs, including Exim, tolerate this misbehaviour.

> 02:41:13 11983 SMTP<< mail from: <"a b"@???>
> 02:41:13 11983 LOG: smtp_syntax_error MAIN
> 02:41:13 11983 SMTP syntax error in "mail from: <"a b"@???>"
> H=(yue) [192.168.2.4] unmatched doublequote in local part
> 02:41:13 11983 SMTP>> 501 <"a: unmatched doublequote in local part
> 501 <"a: unmatched doublequote in local part


The address is syntactically valid, but unwise.

-- 
    Viktor.