Home › Forums › OS X Server and Client Discussion › Mail › Tuning SPAMASSASSIN
- This topic has 14 replies, 2 voices, and was last updated 17 years, 4 months ago by
pterobyte.
-
AuthorPosts
-
December 6, 2007 at 3:18 pm #370738
gw1500se
ParticipantI am trying to tune Spamassassin but seem to be missing something. While server admin lets me set the the mail score to an integer value, that is insufficient. I edited /etc/mail/spamassassin/local.cf and made the ‘required_hits’ value 2.2 then did the postfix reload (although I am not sure that is really right but there is no reload for spamassassin I could find). I am now getting rejected mail with a score of 2.11 so obviously it is not really using my setting. Can someone help set this up properly? TIA.
December 17, 2007 at 1:48 pm #370820pterobyte
ParticipantOn OS X Server, spamassassin is controlled by amavisd. So you must edit /etc/amavisd.conf and modify sa_tag_level, sa_tag2_level and sa_kill_level
December 17, 2007 at 4:32 pm #370823gw1500se
ParticipantThanks for the reply. That explains a lot of problems I was having with Spamassassin parameters.
December 18, 2007 at 12:06 pm #370834gw1500se
ParticipantOne additional question. When I look at the ‘X-Spam-Status’ header, the ‘required’ parameter still says 2. Is that due to rounding or did my amavis.conf change not get read in because I didn’t reload the right service? TIA.
December 18, 2007 at 12:11 pm #370835pterobyte
ParticipantAfter any changes to amavisd.conf, issue:
sudo /bin/launchctl unload /System/Library/LaunchDaemons/org.amavis.amavisd.plist
sudo /bin/launchctl load /System/Library/LaunchDaemons/org.amavis.amavisd.plistDecember 19, 2007 at 1:33 pm #370844gw1500se
ParticipantThat did it. Thanks. Now, if I may, an additional question:
How do I do the equivalent of the Spamassassin parameter,
add_header all Status _YESNO_, score=_SCORE_ required=_REQD_ tests=_TESTSSCORES(,)_
Thanks again.
December 19, 2007 at 1:44 pm #370845pterobyte
ParticipantThat should already be enabled (albeit limited on the version that comes with Tiger Server). Make sure $sa_tag_level_deflt is set to -999 so that all mail gets the headers added.
If you make heavy use of amavisd and spamassassin, and like to tweak it, I suggest you update to the latest versions.
And in case you use virtual domains or local host aliases, add:
@local_domains_maps = ( 1 );
below:
@local_domains_acl = ( “.$mydomain” );to include all domains.
December 19, 2007 at 2:01 pm #370846gw1500se
ParticipantThanks. Where do I find the documentation for the amavis.conf file? I’ve been all over the amavis web site and did all kinds of google searches but I cannot find the description of those parameters anywhere.
December 19, 2007 at 2:05 pm #370847gw1500se
ParticipantThat parameter was set to -999. I get the header but it is not telling me the totals. It is the tests=_TESTSSCORES(,)_ that I need and am not getting. TIA.
December 19, 2007 at 2:05 pm #370848pterobyte
ParticipantAlthough not Mac specific, but still 95% applicable, here is a good overview:
http://www200.pair.com/mecham/spam/amavisd-settings.htmlThe amavisd.conf itself also contains lots of information.
December 19, 2007 at 2:23 pm #370849pterobyte
Participant[QUOTE][u]Quote by: gw1500se[/u][p]That parameter was set to -999. I get the header but it is not telling me the totals. It is the tests=_TESTSSCORES(,)_ that I need and am not getting. TIA.[/p][/QUOTE]
If you have the “old” stock version that came with Tiger, you will have to modify /usr/bin/amavisd itself if I recall correctly.
Best to update to 2.5.3 (for many reasons)
December 19, 2007 at 2:39 pm #370850gw1500se
ParticipantThanks again. Will upgrading solve this problem or will I still need to modify amavis? This might be more then I want to do. I am always leery of upgrading these things because if something goes wrong Apple tech support will be of no help.
December 19, 2007 at 2:42 pm #370851pterobyte
ParticipantIf you update, everything is taken care of in amavisd.conf
Good point, but has Apple ever been able to help with amavisd issues?
December 19, 2007 at 3:12 pm #370852gw1500se
ParticipantOnly to the extent of what can be changed via admin server. However, if it breaks something else then I’m in trouble. I’ll think about it. Thanks.
December 19, 2007 at 3:17 pm #370853pterobyte
ParticipantUnfortunately, if you are serious about properly configuring mail services, you will have to ditch Server Admin. Be it for postfix, be it for amavis and spamassassin.
-
AuthorPosts
- You must be logged in to reply to this topic.
Comments are closed