Alan Munday:
> As of the 22 Feb 2024 I have been seeing invalid MAIL FROM address from 
> Microsoft:
> 
> In: MAIL FROM: <dmarcrep...@microsoft.com> XATTRDIRECT=Originating
>     XATTRORGID=xorgid:96f9e21d-a1c4-44a3-99e4-37191ac61848

Wietse:
> When I send the above as one line into Postfix, the response is:
> 
>     555 5.5.4 Unsupported option: XATTRDIRECT=Originating

There is no need for Postfix workarounds, they have rolled out a fix.

https://techcommunity.microsoft.com/t5/exchange/microsoft-dmarc-aggregate-report-smtp-issues/m-p/4072531

        Wietse

>    /etc/postfix/main.cf:
>        smtpd_command_filter = pcre:/etc/postfix/command_filter
> 
>    /etc/postfix/command_filter:
>        # Work around clients that send XATTRDIRECT or XATTRORGID
>        # when Postfix announces no such support in the EHLO response.
>        /^(MAIL FROM:\s*<.*>.*)\s+XATTRDIRECT=\S+\s+XATTRORGID=\S+(.*)/ $1$2
> 
> This pattern seems to work with light testing. Do not omit the (.*)
> at the end of the pattern, or the $2 in the result.  These are for
> supported options that they might send after XATTRORGID.
> 
>         Wietse
_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org

Reply via email to