postfix header_checks using regexp proper setup
Posted
by
Philip Rhee
on Server Fault
See other posts from Server Fault
or by Philip Rhee
Published on 2012-12-13T22:51:05Z
Indexed on
2012/12/13
23:05 UTC
Read the original article
Hit count: 343
I just can't seem to figure out why header_checks are not being evaluated. I'm on Ubuntu 12.04, postfix 2.7, dovecote, spamassasin, clamav, amavis.
I add following line to /etc/postfix/main.cf :
header_checks = regexp:/etc/postfix/header_checks
And here is header_checks :
/From: .*/ REPLACE From: [email protected]
To test out regexp :
#postmap -q "From: <werwe>" regexp:/etc/postfix/header_checks
which evaluates correctly and give me return output of :
REPLACE From: [email protected]
However, when I try to send email from commandline or from php webpage, postfix will not replace the From header. I'm stumped.
© Server Fault or respective owner