Filtering spam with SpamAssassin header

Mehmet Tolga Avcioglu mehmet at
Wed Aug 16 21:23:34 CEST 2006

Yes. You could edit .procmailrc on a per user basis and have it do
whatever you need based on the Header fields (X-Spam). I have not used
procmail for some time now. I use maildrop and my .mailfilter looks
something like below which Trashes anything with Spam-Level of 6 or more
and puts anything with Spam-Level 4 or more into the Junk folder. Check
procmail documentation.

if(/^X-Spam-Level: $SEVERITY/)
to "./Maildir/.Trash"
if(/^X-Spam-Level: $SEVERITY/)
to "./Maildir/.Junk"

Mehmet Tolga Avcioglu

Brennan Stehling wrote:
> Can I even configure procmail to move potential spam into my IMAP Junk folder?  I have not seen how that can be done.
> Brennan
> On Wed, 16 Aug 2006 21:03:50 +0200, Michael Bueker <m.bueker at> wrote:
>> Brennan Stehling wrote:
>>> I would like to adjust RoundCube to automatically place new mail into
>> the Junk folder if it has a spam ranking from SpamAssassin.
>>> [...]
>>> Thoughts?
>> IMHO, this is not Roundcube's task, but that of your MDA (procmail,
>> maildrop, whichever).
>> ~Mik
>> --
>> A: Why don't they just launch an arial attack?
>> B: An _arial_ attack! For a moment I was worried it might be a
>>     Times New Roman one!
>> C: As long as they don't fight a war on two fonts...
>> - seen on /.
> --
> Brennan Stehling
> brennan at

More information about the Dev mailing list