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

I have problem with spam and postfix + postgray. It generally good works but I have false-positive still and reject good email. And now I have problems.

Can I configure postfix (and postgray) that: if_reject than redirect to (change recipients).

Or I don't know maybe: Each email have to copy and send to Then filtering? If hit restriction than just reject (another copy is in

How to do it?

Sorry for my english. Can you help me?

Thank you

share|improve this question

1 Answer 1

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.