Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 9 of 9
  1. #1
    cPanel Staff cpanelnick's Avatar
    Join Date
    Feb 2003
    Location
    Houston, TX
    Posts
    4,597

    Default HOWTO: Show the spam score in the subject line of spam taged messages

    Enter WHM Main >> Service Configuration >> Exim Configuration Editor.

    Change the value for "Text to add to the subject header for messages spamassassin marks as spam."

    to

    Code:
    ***SPAM*** Score:$spam_score

    You could also use $spam_score_int if you do not want to see the decimal value.

  2. #2
    Member Stefaans's Avatar
    Join Date
    Mar 2002
    Location
    Vancouver, Canada
    Posts
    445

    Default

    Thank you for the tip

  3. #3
    Member rpmws's Avatar
    Join Date
    Aug 2001
    Location
    back woods of NC, USA
    Posts
    1,858

    Default

    Quote Originally Posted by cpanelnick View Post
    Enter WHM Main >> Service Configuration >> Exim Configuration Editor.

    Change the value for "Text to add to the subject header for messages spamassassin marks as spam."

    to

    Code:
    ***SPAM*** Score:$spam_score

    You could also use $spam_score_int if you do not want to see the decimal value.
    Thanks Nick!!! cool deal. You need to cut back on the mind reading though, freaking me out .. I swear I almost asked you about this on phone yesterday!!! that's freaky man
    Just keeping my "eye" on things....
    R. Paul Mathews
    RPMWS - diehard cPanel Nutcase

  4. #4
    Member
    Join Date
    Jan 2008
    Posts
    10

    Default

    Quote Originally Posted by cpanelnick View Post
    Enter WHM Main >> Service Configuration >> Exim Configuration Editor.
    ...
    Code:
    ***SPAM*** Score:$spam_score
    Awesome! I have spent hours trying to get "**SPAM (_SCORE_)**" to work, which apparently doesn't work any more! Your solution got it to work for me. Thanks so much for sharing.

    - JPM.

  5. #5
    Member FrankyKnife's Avatar
    Join Date
    Mar 2004
    Location
    Zurich (CH)
    Posts
    16

    Default

    Where can i find the option "Text to add to the subject header for messages spamassassin marks as spam" ?

    If i go here (WHM Main >> Service Configuration >> Exim Configuration Editor) there is not such an option. (version: cPanel 11.24.4-R33609 - WHM 11.24.2 - X 3.9)

    thx

  6. #6
    Member
    Join Date
    Jan 2008
    Posts
    10

    Default

    Quote Originally Posted by FrankyKnife View Post
    If i go here (WHM Main >> Service Configuration >> Exim Configuration Editor) there is not such an option. (version: cPanel 11.24.4-R33609 - WHM 11.24.2 - X 3.9)
    I have version: WHM 11.23.0 cPanel 11.23.3-R25133

    And it's listed for me under "Filters" as "SpamAssassinTM: Text to be added Subject line for messages marked as spam. [?]". I'm not sure about other cPanel updates (HOPEFULLY when I update to 11.24, I won't lose the option!).
    I have it set as: ***SPAM? ($spam_score)***

    - Jim.

  7. #7
    Member FrankyKnife's Avatar
    Join Date
    Mar 2004
    Location
    Zurich (CH)
    Posts
    16

    Default

    you mean WHM >> Exim >> Filters ?
    i only have the option "System Filter File" there. nothing with spamassassin!

    or do you mean Cpanel >> Spamassassin / E-mail Filtering ?
    i have no "SpamAssassinTM: Text to be added Subject line for messages marked as spam" option there anywhere.


    strange! what's going on??? :-(

  8. #8
    Member
    Join Date
    Jan 2008
    Posts
    10

    Default

    It's in WHM.

    I am not sure if the order of your WHM menu sections on the left is the same as mine, but it is my 7th section from the top: "Services Configuration".

    The option for Exim Configuration Editor should be listed there.

    Under the "Standard Options" bullet, mine lists "Filters" Under it is "SpamAssassinTM: Text to be added Subject line for messages marked as spam.", where I added the text: ***SPAM? ($spam_score)***

    If you can't find it, do you have Spam Assassin installed? Is that something you have to install separately first?? (I didn't think of that until after I wrote the above). My VPS had it installed already, so I didn't have to do anything extra.... But, I'm wondering if that might be the reason you don't see the option....

    I hope that helps.
    Jim
    Last edited by jpmohr; 02-06-2009 at 08:20 AM.

  9. #9
    Member FrankyKnife's Avatar
    Join Date
    Mar 2004
    Location
    Zurich (CH)
    Posts
    16

    Default

    WHM:
    i have spamassassin 3.2.4 installed. tried to do a rpm force re-install, but it prompted back: already installed - no update/changes done!


    Cpanel:
    "Please note that SpamAssassin is not configured for rewrites. You should check the X-Spam-Bar header for the spam bar in your filter, or for simplicity, you can also check the X-Spam-Status header for Yes or No."
    Code:
    X-Spam-Flag: YES
    X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on
    	domain.com
    X-Spam-Level: *******
    X-Spam-Status: Yes, score=7.2 required=4.0 tests=BAYES_20,DCC_CHECK,
    	FH_FROMEML_NOTLD,MISSING_DATE,MISSING_HEADERS,MISSING_MID,MISSING_SUBJECT,
    	NO_HEADERS_MESSAGE,NO_RECEIVED,NO_RELAYS shortcircuit=no autolearn=no
    	version=3.2.4
    X-Spam-Report: 
    	*  0.0 MISSING_MID Missing Message-Id: header
    	*  2.7 FH_FROMEML_NOTLD E-mail address doesn't have TLD (.com, etc.)
    	*  0.0 MISSING_DATE Missing Date: header
    	* -0.0 NO_RELAYS Informational: message was not relayed via SMTP
    	*  1.3 MISSING_HEADERS Missing To: header
    	* -0.7 BAYES_20 BODY: Bayesian spam probability is 5 to 20%
    	*      [score: 0.0759]
    	*  2.2 DCC_CHECK Listed in DCC (http://rhyolite.com/anti-spam/dcc/)
    	*  1.8 MISSING_SUBJECT Missing Subject: header
    	* -0.0 NO_RECEIVED Informational: message has no Received headers
    	*  0.0 NO_HEADERS_MESSAGE Message appears to be missing most RFC-822
    	*      headers
    From: "Spam Assassin" 
    
    Spam Assassin has been enabled on this account

    WHM >> exim config >> filters = NO spamassassin (see picture)


    @cpanel team:
    is this the standard? looks like there is something wrong?!
    where and how is the config for?
    Attached Thumbnails Attached Thumbnails HOWTO: Show the spam score in the subject line of spam taged messages-exim_config.jpg  

Similar Threads & Tags
Similar threads

  1. Replies: 1
    Last Post: 06-17-2011, 05:49 AM
  2. Adding score in the spam tagged subject
    By patrique in forum E-mail Discussions
    Replies: 0
    Last Post: 10-25-2007, 12:11 PM
  3. SPAM Messages with Subject: "wrote: "
    By jonyzinho in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 12-01-2006, 09:07 AM
  4. spam assassin not flagging subject of messages
    By EdRooney in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 11-22-2004, 04:23 PM
  5. ISO encoded string subject line spam
    By tvcnet in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 09-28-2004, 12:13 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube