1

I have setup postfix and spamassassin on Ubuntu 14.04.

I would like to set it up such that if the score of a message is above 5.0, it goes to one email account on my mailserver. If it's less that 5.0 it continues to the original destination.

I have tried rewrite_header To [email protected] but this just adds "[email protected]" to the To address and it doesn't actually go to the spam account.

I can't figure out what I need to do next. From what I have read I think I need either another program to do this, or I have to configure postfix to do this, but I can't find any information on how to do it.

Thanks!

2
  • What method did you use to integrate postfix and spamassassin? amavisd? spamd? others?
    – masegaloeh
    Jan 31, 2015 at 14:22
  • I used spamd to integrate them Jan 31, 2015 at 14:35

1 Answer 1

2

Configure your spamassasin to a header like X-Spam-Status: Yes after that you can redirect mails with:

 /^X-Spam-Status: Yes/ REDIRECT [email protected]

in header_checks to a new destination.

0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .