Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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 have a problem with spam and postfix + postgray. Generally it works fine, but I have these problems:

  • false-positives.
  • good emails get rejected.

Can I configure postfix (and postgray) so that when an email is rejected, then redirect to (change recipients).

Or maybe copy each emailand send it to, and then apply filtering? If hit restriction than just reject (another copy is in

How to do it?

share|improve this question
up vote 2 down vote accepted

You can't do it. You can either REJECT (or DEFER) the mail or ACCEPT (or REDIRECT) the mail. If you REJECT the mail, then the mail doesn't even arrive at your server as it is canceled right away during connection attempt. When you ACCEPT the mail then you can analyze the mail content but then it is impossible to REJECT the mail afterwards. So you can only have the one or the other. But not both.

share|improve this answer
Thank you for answer. Can you give me any advice what should I do in postfix? My target is the same: fight with spam without lost email ? Alone spamassasin was to weak because I get huge count of spams. – Bartosz Kowalczyk Jul 5 '12 at 8:32

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.