[pfx] masquerade_domains does not work for relayed domain

2024-02-12 Thread Aleksandar Ivanisevic via Postfix-users

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/  REPLACE From: 
$1...@mydomain.com 

does not seem to work and it does not really cover all cases like From: “some 
name “ , etc.
___
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org


[pfx] masquerade_domains does not work for relayed domain

2024-02-12 Thread Aleksandar Ivanisevic via Postfix-users

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/  REPLACE From: 
$1...@mydomain.com 

does not seem to work and it does not really cover all cases like From: “some 
name “ , etc.
___
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org