On 2024-09-10 at 08:05:21 UTC-0400 (Tue, 10 Sep 2024 14:05:21 +0200)
natan via Postfix-users <na...@epf.pl>
is rumored to have said:

Hi
Is avilable to run thats setup use postfix+milter ?

For test I run thats setup:
1)enable addheaders on dovecot
2)create special rules in sieve like:
if allof (header :contains "return-path" "@domain.ltd",
          header :contains "Received" "domai",
          header :contains "X-HEADERS" "domain")
{
    if header :matches "Subject" "*" {
        set "subject" "${1}";
    }
    deleteheader "Subject";
    addheader :last "Subject" "[INT] ${subject}";
    addheader "X-INFO" "email INT";
}

All of that should only apply on incoming messages, as dovecot and its sieve tool are only involved in final local delivery and IMAP.

When sending mail my smtp adds the header "X-HEADERS domain"

3)other options I create a milter....

all works fine with options 2 or options 3 but ........

The problem is with DKIM signing when I try to reply to a message and the external recipient has DMARC verification

If I have a p=none policy in DMARC it works correctly but if p=reject it is known - the message is rejected due to an error for DKIM Because DKIM also signs the subject and it is changed by sieve

How are you configured that you are passing locally-submitted mail through sieve? That shouldn't be possible...



For the time being I have only left tagging the addheader header itself and I leave it on the mail client side (e.g. label)

Is there another way ?
Or is it such a stupid idea that it is worth abandoning?


--

_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org


--
Bill Cole
b...@scconsult.com or billc...@apache.org
(AKA @grumpybozo@toad.social and many *@billmail.scconsult.com addresses)
Not Currently Available For Hire
_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org

Reply via email to