[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Amavis, Spamassassin, and delivering Spam



Mark Maas wrote:

I've installed a mailserver with the following:
Exim 3.35, Amavis using clamav-daemon, Spamassassin and Razor.

Everything works great, as expected, and my follwing question is just to
extend this functionality:

All spam is now placed in the same quarantine directory as all virus-emails.
I want these Spam emails to be delivered to my Inbox (and using the .forward
to redirect it to a special spam-folder)

Does anyone know where to set this option? I would think somewhere in
amavis, but I cannot find it...

Not sure about the amavis side of things, but the Exim filter you are looking for is as follows:

if $h_X-Spam-Status: contains Yes
 then
   save "Maildir/.Spam/"
endif

Hope that helps.

--
+===============================================================+
| Greg Bolshaw           E-Mail:  greg@linuxtechnologies.co.uk  |
| Director             Web Site:  www.linuxtechnologies.co.uk   |
| Linux Technologies    PGP Key:  0x3DE51D89                    |
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+
|            Linux and Open Source Solutions Provider           |
+===============================================================+




Reply to: