Bob McClure Jr wrote:
On Mon, Jul 26, 2004 at 02:16:24PM -0600, Scott C. Villinski wrote:
I've got SA running with Postfix and it's working just fine. However, I wanted to modify spamd so that any detected SPAM would be routed to a different user. How can I go about modifying the envelope information? Right now I'm able to modify the headers, but Postfix still routes the message onto the original recipient.
Thanks!
Scott
SpamAssassin doesn't do that. Assuming you are using procmail for a local delivery agent, just put a .procmailrc in the HOME directory of the original recipient with a recipe like this:
:0: * ^X-Spam-Status: Yes /var/spool/mail/otheruser
The .procmailrc should be owned by the (first) user and have perms 644.
Cheers,
In my case, I'm running this on my Mailman server - so there are no locally delivered messages (except to Mailman). I guess I could modify mailman to look for the Spam flags and then just drop the message.
Scott
