Re: postfix & spamassassin

From: Gerardo Herzig (no email)
Date: Mon Sep 03 2007 - 09:16:56 EDT

  • Next message: Wietse Venema: "Re: check_policy_service and several envelope rcpt's"

    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


  • Next message: Wietse Venema: "Re: check_policy_service and several envelope rcpt's"





    Hosted Email Solutions

    Invaluement Anti-Spam DNSBLs



    Powered By FreeBSD   Powered By FreeBSD