OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Re: postfix & spamassassin

From: Gerardo Herzig (gherzigfmed.uba.ar)
Date: Mon Sep 03 2007 - 08:16:56 CDT


infolistas listas wrote:

>HI people is it possible to automaticly delete all mail flagged as spam?how?
>
>Is it possible to create something like google or yahoo that locate the mail
>flagged as spam in a specific directory where the user will be able or to
>read it or delete it ? how?
>
>I searched google a little but didnt find it.
>
>THanks
>
>
>
If you are working with procmail, a simple procmail rule can delete (not
very recomended off course) a spam flagged mail:
(After spamassassin do his work, a special X-* field is generated, so
you just `grep' it with procmail)

:0
* ^X-Spam-Status: Yes
/dev/null

The last line is the one who `deletes' the mail. If you want to put the
mail in one specific directory, just replace the last line with the
desired directory. You may need extra work in adding (to your webmail
system) the folders where spam tagged emails should stay.

Cheers.
Gerardo