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.

Exim Filter Doesn't Read Spam Assassin Header

Discussion in 'General Discussion' started by TomA, Nov 15, 2003.

  1. TomA

    TomA Well-Known Member

    Joined:
    Apr 14, 2003
    Messages:
    55
    Likes Received:
    0
    Trophy Points:
    6
    I want to be able to sort spam by level. If a spam has more than 12 points, I want to delete it. If it has 12 or less, I want to put it in the spam box. Problem is, Exim doesn't see the "X-Spam-Level:" header. WHY?

    (Note that I have reconfigured Spam Assassin to use X's instead of *'s so that I don't have to escape the *'s in the filters.)

    Here are my filters:

    $h_X-Spam-Level: begins "XXXXXXXXXXXX"+++++++/dev/null
    $h_X-Spam-Status: begins "Yes"+++++++spambox@mydomain.com

    Here is a sample message header:

    From: Amanda H. <TailWaggingOffer@01.brightermail.com>
    Subject: Spam- get out of debt now
    Date: November 15, 2003 9:39:27 PM EST
    To: andrew@mydomain.com
    Return-Path: <john@server1.arteryserver1.net>
    Envelope-To: drew@ mydomain.com
    Delivery-Date: Sun, 16 Nov 2003 02:44:44 +0000
    Received: from mydomain by server1.arteryserver1.net with local-bsmtp (Exim 4.24) id 1ALCu2-0005Sk-VH for drew@mydomain.com; Sun, 16 Nov 2003 02:44:44 +0000
    Received: from localhost [127.0.0.1] by server1.arteryserver1.net with SpamAssassin (2.60 1.212-2003-09-23-exp); Sun, 16 Nov 2003 02:44:44 +0000
    Message-Id: <200311160202.SAA72764@01.brightermail.com>
    X-Spam-Flag: YES
    X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on server1.arteryserver1.net
    X-Spam-Dcc: :
    X-Spam-Pyzor:
    X-Spam-Status: No, hits=26.0 required=5.0 tests=BAYES_99,HTML_IMAGE_ONLY_02, HTML_MESSAGE,HTML_TAG_BALANCE_A,MAILTO_SUBJ_REMOVE,MIME_HTML_ONLY, OFFERS_ETC,RCVD_IN_BL_SPAMCOP_NET,RCVD_IN_NJABL,RCVD_IN_NJABL_SPAM, RCVD_IN_SORBS autolearn=spam version=2.60
    X-Spam-Level: XXXXXXXXXXXXXXXXXXXXXXXXXX
    Mime-Version: 1.0
    Content-Type: multipart/mixed; boundary="----------=_3FB6E49C.D7775F2A"
     
    #1 TomA, Nov 15, 2003
    Last edited: Nov 16, 2003
Loading...

Share This Page