[ Patrick Ben Koetter wrote on Fri 14.Sep'12 at 7:31:10 +0200 ]
> * Chris Adams <cmad...@hiwaay.net>: > > I'm configuring Postfix with SpamAssassin, using Spampd as a > > before-queue filter. I put "/^X-Spam-Flag: YES/ REJECT Spam detected" > > in /etc/postfix/header_checks, and that works (spam is rejected during > > SMTP as desired). > > > > However, it would be nice to _also_ keep a copy of the rejected messages > > somewhere for later analysis. Either deliver them to a special local > > user, hold in the queue, or whatever else is convenient. Is there an > > easy way to do this? > > > > I guess I could modify Spampd to save a copy of spam messages, but I was > > hoping there might be a way to configure Postfix to do this. > > > > If it matters, this is Postfix 2.6.6 on CentOS 6. > > Postfix can't do that. amavis can do if you run it pre-queue. > > p@rick +1 - use amavisd-new. It's the best tool to achieve what you need and a lot more.