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

we have some outgoing mail server with latest postfix and amavis.

I would need to intercept some outgoing email for some given senders and forward them to a "logging" account + the regular receivers.

From what I read looks like this job could be only done by a custom filter, since we already have amavis in place I was wondering if this could be done directly by amavis.

Any custom postfix filter example with filtering by sender would be welcome too.


share|improve this question
up vote 1 down vote accepted

Most, if not all, of what you want to do can be done with Sender BCC maps, and a simple filter on the BCC account, .procmail or sieve being quite simple ways to do the secondary filtering.

share|improve this answer
Cool! Sender BCC maps looks like what I probably need, I'll check it out thanks – golemwashere Jun 13 '13 at 10:33
You are THE MAN... it did work! Thanks again – golemwashere Jun 13 '13 at 12:15
Glad to have been of assistance! – NickW Jun 13 '13 at 12:44

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.