Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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/ :

header_checks = regexp:/etc/postfix/header_checks

And here is header_checks :

/From: .*/ REPLACE From:

To test out regexp :

#postmap -q "From: <werwe>" regexp:/etc/postfix/header_checks

which evaluates correctly and give me return output of :


However, when I try to send email from commandline or from php webpage, postfix will not replace the From header. I'm stumped.

I want to rewrite all outgoing emails:

From: Confirmation Email<>   

-- changed to --

From: Confirmation Email<>

Any help will be greatly appreciated.

share|improve this question
up vote 2 down vote accepted

Solved - Following line in /etc/postfix/ was causing conflict :

pickup    fifo  n       -       -       60      1       pickup
    -o content_filter=
#   -o receive_override_options=no_header_body_checks  //commented this line out
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.