Using amavisd-new, I'm successfully marking multiple headers and accurately reporting most spam.
However, right now I'm delivering it to the inbox and I would like to have a Junk folder instead. From time to time I will run sa-learn on these boxes (one for each account). So false negatives could be placed there and the system would learn from that.
I'm not sure if postfix, amavis or policyd is the right place to begin. As I'm using virtual domains, there would be a different folder for each user@domain, and not a general quarantine.
Any thoughts on how to set this up? I guess I want it to function like gmail or yahoo mail do today, automatically moving suspected SPAM into a junk folder.
Best Answer
There are several options to accomplish this, and they all largely depend on the delivery agent you are using to do the final delivery to a user's virtual mailbox.
recipient_delimiter = +
in Postfix' main.cf and have a look at the redirect documentation for amavisd-new).A wholly different approach, given that either your mail volume is low or you have access to some serious hardware, would be to run amavisd-new as a before queue filter, thereby eleminating the need for spam/junk folders or quarantine completely: If a legitimate mail is rejected as spam, the sender will be notified by it's own mail server - since you technically never accepted the mail, you won't be responsible for anything.