On 5/22/2019 4:02 PM, VB wrote:
Hello Community
we were tasked at routing all outbound email from our mail relay postfix
server through an Anti-SPAM gateway and this introduces a requirement to
insert a custom header with a unique value ( shared by the Anti-SPAM vendor
) to let email relay thorough them.
so we want to insert a header
X-AUTH-TOKEN : xyz123
in every email leaving our postfix server.
Could any one of you please suggest how we can achieve this .
--
Sent from: http://postfix.1071664.n5.nabble.com/Postfix-Users-f2.html
something like:
# main.cf
smtp_header_checks = pcre:/etc/postfix/smtp_header_checks.pcre
# smtp_header_checks.pcre
/^Message-ID: / PREPEND X-AUTH-TOKEN: SecretKey
http://www.postfix.org/postconf.5.html#smtp_header_checks
http://www.postfix.org/header_checks.5.html
-- Noel Jones