append_at_myorigin problem

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

append_at_myorigin problem

azurIt
Hi,

i'm having quite severe problems with append_at_myorigin - Postfix is  
appending myorigin to sneder name if it contains a colon character and  
is encoded into quoted-printable format, for example (generated by  
Thunderbird):

From: =?UTF-8?Q?TEST:_som=c3=a9thing?= <[hidden email]>


This is rewritten to:

From: =?UTF-8?Q?[hidden email]:_som=c3=a9thing?= <[hidden email]>


I tried to disable it with this but it doesn't work:
append_dot_mydomain = no
append_at_myorigin = no
local_header_rewrite_clients =

Postfix 2.11.3. Any hints?

azur


Reply | Threaded
Open this post in threaded view
|

Re: append_at_myorigin problem

Viktor Dukhovni


> On Feb 15, 2018, at 7:32 AM, [hidden email] wrote:
>
> i'm having quite severe problems with append_at_myorigin - Postfix is appending myorigin to sneder name if it contains a colon character and is encoded into quoted-printable format, for example (generated by Thunderbird):
>
> From: =?UTF-8?Q?TEST:_som=c3=a9thing?= <[hidden email]>

This is invalid syntax.  The encoded text in =?<charset>?<E>?<text>?= is required
to be an "atom":

   https://tools.ietf.org/html/rfc2047#section-2
   https://tools.ietf.org/html/rfc5322#section-3.2.3

Both SPECIFICALLY exclude ":" in this context.

> This is rewritten to:
>
> From: =?UTF-8?Q?[hidden email]:_som=c3=a9thing?= <[hidden email]>

Garbage-in, garbage out.  The ":" character is absolutely invalid here.

--
        Viktor.

Reply | Threaded
Open this post in threaded view
|

Re: append_at_myorigin problem

Wietse Venema
In reply to this post by azurIt
[hidden email]:
> Hi,
>
> i'm having quite severe problems with append_at_myorigin - Postfix is  
> appending myorigin to sneder name if it contains a colon character and  
> is encoded into quoted-printable format, for example (generated by  
> Thunderbird):
>
> From: =?UTF-8?Q?TEST:_som=c3=a9thing?= <[hidden email]>

The ``:'' should be encoded as ``=3a''. Please file a bug with the
Thunderbird maintainers. They violate RFC 5322 syntax rules, and
their bug cannot be fixed by changing Postfix.

In RFC 5322 the ``:'' is a special character, and RFC 5322 allows
only atom or quoted-string as the "phrase" portion of an address.

Relevant rules from RFC 5322:

   name-addr       =   [display-name] angle-addr

   angle-addr      =   [CFWS] "<" addr-spec ">" [CFWS] /
                       obs-angle-addr

   display-name    =   phrase

   phrase          =   1*word / obs-phrase

   word            =   atom / quoted-string

   atom            =   [CFWS] 1*atext [CFWS]

   atext           =   ALPHA / DIGIT /    ; Printable US-ASCII
                       "!" / "#" /        ;  characters not including
                       "$" / "%" /        ;  specials.  Used for atoms.
                       "&" / "'" /
                       "*" / "+" /
                       "-" / "/" /
                       "=" / "?" /
                       "^" / "_" /
                       "`" / "{" /
                       "|" / "}" /
                       "~"

   specials        =   "(" / ")" /        ; Special characters that do
                       "<" / ">" /        ;  not appear in atext
                       "[" / "]" /
                       ":" / ";" /
                       "@" / "\" /
                       "," / "." /
                       DQUOTE

See especially the last rule which says that ":" cannot appear
in atext.

        Wietse
Reply | Threaded
Open this post in threaded view
|

Re: append_at_myorigin problem

azurIt

Citát Wietse Venema <[hidden email]>:

> [hidden email]:
>> Hi,
>>
>> i'm having quite severe problems with append_at_myorigin - Postfix is
>> appending myorigin to sneder name if it contains a colon character and
>> is encoded into quoted-printable format, for example (generated by
>> Thunderbird):
>>
>> From: =?UTF-8?Q?TEST:_som=c3=a9thing?= <[hidden email]>
>
> The ``:'' should be encoded as ``=3a''. Please file a bug with the
> Thunderbird maintainers. They violate RFC 5322 syntax rules, and
> their bug cannot be fixed by changing Postfix.
>
> In RFC 5322 the ``:'' is a special character, and RFC 5322 allows
> only atom or quoted-string as the "phrase" portion of an address.
>
> Relevant rules from RFC 5322:
>
>    name-addr       =   [display-name] angle-addr
>
>    angle-addr      =   [CFWS] "<" addr-spec ">" [CFWS] /
>                        obs-angle-addr
>
>    display-name    =   phrase
>
>    phrase          =   1*word / obs-phrase
>
>    word            =   atom / quoted-string
>
>    atom            =   [CFWS] 1*atext [CFWS]
>
>    atext           =   ALPHA / DIGIT /    ; Printable US-ASCII
>                        "!" / "#" /        ;  characters not including
>                        "$" / "%" /        ;  specials.  Used for atoms.
>                        "&" / "'" /
>                        "*" / "+" /
>                        "-" / "/" /
>                        "=" / "?" /
>                        "^" / "_" /
>                        "`" / "{" /
>                        "|" / "}" /
>                        "~"
>
>    specials        =   "(" / ")" /        ; Special characters that do
>                        "<" / ">" /        ;  not appear in atext
>                        "[" / "]" /
>                        ":" / ";" /
>                        "@" / "\" /
>                        "," / "." /
>                        DQUOTE
>
> See especially the last rule which says that ":" cannot appear
> in atext.
>
> Wietse



Viktor and Wietse: Thank you.

https://bugzilla.mozilla.org/show_bug.cgi?id=1438590

azur