The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Procmail and Spamassassin

Discussion in 'E-mail Discussions' started by Crundy, Jan 9, 2004.

  1. Crundy

    Crundy Active Member

    Joined:
    Oct 9, 2003
    Messages:
    29
    Likes Received:
    0
    Trophy Points:
    1
    I have Spamassassin running on one of my personal mail servers (without cPanel) and I have set my .procmailrc script to send anything with a spam score of 16 or above to /dev/null:

    :0:
    * ^X-Spam-Level: \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
    /dev/null

    I heard somewhere here that spamassasin runs after procmail on cPanel, so does anyone know how I can do the above or similar in my cPanel account? I am not the system admin for the cPanel server, I just have a hosting account.
     
  2. Crundy

    Crundy Active Member

    Joined:
    Oct 9, 2003
    Messages:
    29
    Likes Received:
    0
    Trophy Points:
    1
    OK, so I managed to solve my own problem again.

    If anyone else is interested, here's how to ditch all spam emails with a Spamassassin score of 16 or more:

    1) In the mail section of cPanel, click on 'Email filtering'
    2) Select 'Add Filter' and create a filter using 'Any header' & 'Contains' with the below as the search string:

    X-Spam-Level: ****************

    and leave destination as 'Discard'.

    Hey presto! All the rubbish that is definitely spam won't bother you anymore, and you can still check the emails that only just make it into spam bounderies.
     
Loading...

Share This Page