Hello postfix users!

I need your advice.

I have to rewrite every occurence of @sender-foo.com domain to @sender-bar.com. 
Both in envelope and header from fields.

I did it with a smtp_generic_maps regexp but I'm not sure this is the best way 
(these are outbound only emails).

Also it messes up the dkim signing because it happens before the masquerading 
with smtpd_milters.

My questions are:
* what's the best way to replace all occurences of the sender domain?
* if smtp_generic_maps is the way, can it happen before the smtpd_milters 
somehow?


Thank you in advance!
Gino

Reply via email to