Results 1 to 2 of 2

Thread: HOWTO: Setup Spam Assassin to delete SPAM email

  1. #1
    Join Date
    Jul 2002
    Location
    JNB, ZA
    Posts
    1,775

    HOWTO: Setup Spam Assassin to delete SPAM email

    You can do this Aggressively or not. It's up to you. Aggressive SPAM filtering will remove [almost] all SPAM and every now and so often, legitimate email as well. Moderate filtering will remove most spam ald hardly ever remove legitimate email.

    Moderate SPAM Filtering

    This setup will:
    1) Do nothing to emails with a SPAM score below 5
    2) Move messages to the spambox if they have a score of between 5-15
    3) Remove messages with a score of 16 or above

    According to the SpamAssassin website, 99.95% of emails with a score of 15 or above are genuine spam, so we'll set it to 16 (the umber of "*" below) to be safe.

    Procedure:

    1) Enable SpamAssassin from cPanel Control Panel (under "Email")
    2) Enable Spambox (same place)
    3) Click on "Email filtering"
    4) Select "Add Filter" and create a filter using "Any header" & "Contains" with the text below as the search string:
    X-Spam-Level: ****************
    (Note the 16 "*" 's)
    5) Leave the destination as "Discard".

    Hey presto. All done!

    Aggressive SPAM filtering

    This will move ALL mail on all accounts on a domain to one mailbox or trash them:

    Procedure:

    1. In Cpanel goto Mail, then click Spam Assassin.
    2. Enable Spam Assassin
    3. Click Configure Spam Assassin.
    4. Set rewrite_subject to : *****SPAM*****
    5. Go back to mail. Click on the E-mail Filtering link.
    6. Click Add Filter
    7. Select SpamAssassin Spam Header in the drop down box.
    8. Select Subject Contains in the next drop down box.
    9. In the blank box, type *****SPAM***** (must be identical text to what you entered in 4 above).
    10. Under Destination, enter either:
    a) An email address you want to send the spam to OR
    b) Discard to trash it.
    Done. All email tagged as spam will be either sent to a spam box of your choice or it will be deleted.

    WARNING: DO NOT enable Spam box unless you plan on checking your spam folder (with Horde only!!. It does not work with the other webmail clients) at least once / week and clearing it out.

    If you do not do this, your mailbox fills up real quick and all mail gets bounced back to the sender with a "mail could not be delivered - mailbox full" error.
    Jesus alone saves

  2. #2
    Join Date
    Jul 2002
    Location
    JNB, ZA
    Posts
    1,775

    AUTOMATICALLY DELETE ALL MAIL WITH A SPAM SCORE OF 5 OR MORE

    AUTOMATICALLY DELETE ALL MAIL WITH A SPAM SCORE OF 5 OR MORE

    1. Open your Control panel
    2. Click Email -> Spam Assassin
    3. Click Enable Spam Assasin
    4. Click Email -> Spam Assassin
    5. Click Configure (required to rewrite subjects)
    6. In the box rewrite_header subject enter this: *****SPAM*****
    7. Click Email -> Spam Filters
    8. In the drop down boxes under Block mails when Select Subject and Contains.
    9. In the box, type *****SPAM*****
    10. In the Destination box type Discard.
    What this all does:

    • Any mail with a spam score of over 5 will have the word *****SPAM***** added to the subject header (step 6).
    • The filter will delete any mail with the word *****SPAM***** in the subject line.

    If you DO NOT want to delete the SPAM mail omit steps 7,8,9 and 10. All spam mail will now be delivered to the corresponding mailboxes BUT it will have the word *****SPAM**** in the subject line. You can setup a mail filter on your mail client to move all emails containing this word to a folder (spam typically) of your choice.
    Jesus alone saves

Thread Information

Users Browsing this Thread

There are currently 2 users browsing this thread. (0 members and 2 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •