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 know about body_checks directive in postfix and i tried to do the following in my pcre:/etc/postfix/body_check

/some string/ BCC

But it is not working. Action BCC cannot probably be here. Is there any solution to this? Send blind copy of email if it contains specific string.

Thank you.

share|improve this question
up vote 1 down vote accepted

You can solve this by reversing your logic: set up always_bcc to deliver to a specified filtering recipient, and then check for the string in the body.

Of course, the amount of extra traffic you will generate is significant (you're going to double the number of messages sent), but you can't use always_bcc with internally-generated mail; postfix will refuse to copy them to prevent routing loops.

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.