Forçando o endereço de quando postfix relays over smtp
/etc/postfix/main.cf:
smtp_header_checks = regexp:/etc/postfix/header_check
/ etc / postfix / header_check:
/From:.*/ REPLACE From: [email protected]
Testado com:
mail -s test -a 'Reply-To: [email protected]' [email protected] <<< test
Cabeçalho no lado do cliente:
From: [email protected]
Reply-To: [email protected]
To: <[email protected]>
No syslog você então vê
Nov 1 17:20:50 huuu postfix/smtp[4716]: 1B65481FAB18: replace: header From: root@huuu (root): From: [email protected]