On Mon, Feb 12, 2024 at 04:28:41PM +0100, Aleksandar Ivanisevic via 
Postfix-users wrote:
> 
> Is it true that masquerade_domains does not work for header From: in relayed 
> emails? I have a fairly generic setup:
> 
> masquerade_classes = envelope_sender, header_sender, header_recipient
> masquerade_domains = mydomain.com
> 
> that does indeed rewrite envelope from, but not header from, and subsequently 
> DKIM signer (opendkim) in my relay does not match and does not sign the email.
> 
> if this is true, how do i properly masquerade header from in relayed emails?
> 
> header_checks? Does not seem to have regexp groups replace so
> 
> /From: (.*)@.*?mydomain.com/ <http://mydomain.com/> REPLACE From: 
> $1...@mydomain.com <mailto:1...@mydomain.com>
> 
> does not seem to work and it does not really cover all cases like From: “some 
> name “ <b...@mydomain.com>, etc.

Add the outbound relay domain mail clients (those whose mail should be
DKIM signed, rather than verified) to:

    https://www.postfix.org/postconf.5.html#local_header_rewrite_clients

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

Reply via email to