Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 13th March 2010, 22:10
billcouper81 billcouper81 is offline
Junior Member
 
Join Date: Dec 2009
Posts: 29
Thanks: 2
Thanked 4 Times in 3 Posts
Default spamassassin local.cf processing and forcing x-spam-status

I am trying to tune the spam filtering on a mail server that I manage

The mail server uses ISPConfig3 (with Postfix and SpamAssassin). ISPConfig is 3.0.16. SpamAssassin is 3.2.5 running on Perl 5.10.0.

There are a number of DNS Blacklists setup in the postfix main.cf but spam is getting through still so I wanted to customise the spamassassin settings

I am trying to implement some basic filter rules via local.cf

Another problem is that non-spam doesn't have any x-spam-status header to help tune the scoring


I have added the following to the /etc/spamassassin/local.cf file and restarted spamd (/etc/init.d/spamassassin restart), but nothing seems to have changed. When I send test emails that contain the specified search-words (from an address that is not white-listed) it doesn't get detected as spam and there is no x-spam-status header to see what scores it was given




body LOCAL_LONELY_HOUSE_WIFE_RULE /Lonely House Wife/i
score LOCAL_LONELY_HOUSE_WIFE_RULE 1.0

body LOCAL_DATE_RULE /Date/i
score LOCAL_DATE_RULE 0.5

body LOCAL_DATING_RULE /Dating/i
score LOCAL_DATING_RULE 0.5

body LOCAL_FACEBOOK_PASHION_RULE /FacebookPassion.com/i
score LOCAL_FACEBOOK_PASHION_RULE 1.0

body LOCAL_DATINGHACKERS1_RULE /DatingHacker/i
score LOCAL_DATINGHACKERS1_RULE 1.0

header LOCAL_DATINGHACKERS2_RULE Subject =~ /DatingHacker/i
score LOCAL_DATINGHACKERS2_RULE 1.0

add_header spam Flag _YESNOCAPS_
add_header all Status _YESNO_, score=_SCORE_ required=_REQD_ tests=_TESTS_ autolearn=_AUTOLEARN_ version=_VERSION_
add_header all Level _STARS(*)_
add_header all Checker-Version SpamAssassin _VERSION_ (_SUBVERSION_) on _HOSTNAME_
Reply With Quote
Sponsored Links
  #2  
Old 15th March 2010, 14:31
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 34,624
Thanks: 793
Thanked 4,997 Times in 3,909 Posts
Default

ISPConfig uses amavisd for spam scanning and not spamd. If you want to reconfigure email spam scanning, please restart amavisd and not spamd.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 16th March 2010, 07:30
billcouper81 billcouper81 is offline
Junior Member
 
Join Date: Dec 2009
Posts: 29
Thanks: 2
Thanked 4 Times in 3 Posts
Default

Thanks till

Restarting amavis has made it pick up the changes I made to /etc/spamassassin/local.cf

But it still won't show the scoring for emails that pass as being clean, is there any way to force the x-spam headers on ALL mail, not just spam ones?
Reply With Quote
  #4  
Old 16th March 2010, 08:50
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 34,624
Thanks: 793
Thanked 4,997 Times in 3,909 Posts
Default

Set the spam score (1) in the spamfilter policy that you use in ispconfig to -100
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 17th March 2010, 06:30
billcouper81 billcouper81 is offline
Junior Member
 
Join Date: Dec 2009
Posts: 29
Thanks: 2
Thanked 4 Times in 3 Posts
Default

I cannot find such an option as "spam score"
Reply With Quote
  #6  
Old 17th March 2010, 08:27
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 34,624
Thanks: 793
Thanked 4,997 Times in 3,909 Posts
Default

The field is named SPAM tag level.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
The Following User Says Thank You to till For This Useful Post:
djbill (4th March 2013)
  #7  
Old 18th March 2010, 08:02
billcouper81 billcouper81 is offline
Junior Member
 
Join Date: Dec 2009
Posts: 29
Thanks: 2
Thanked 4 Times in 3 Posts
 
Default

thanks till

I have adjusted that field and it has the desired effect

thankyou
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 08:12.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.