Winston wrote: > Hello,
> I'm running amavisd-new-2.4.1 (20060508) and spamassassin 3.0.5. > I was messing with SA scores and added the following to > /etc/mail/spamassassin/local.cf: > score DCC_CHECK 4 > I then restarted amavisd. I was surprised to find that it had no effect > on spam messages - they had the default score of 1.373. > So... I added the same line to /var/amavisd/.spamassassin/user_prefs and > restarted amavisd. This had the desired effect of changing the score to > 4. > I'm confused as to why this is not working in > /etc/mail/spamassassin/local.cf. When I do spamassassin -D --lint, I > don't see anything too wrong. > Here is my local.cf if it matters: > required_hits 5 > report_safe 0 > rewrite_header Subject [SPAM] > dcc_home /var/dcc > razor_config /var/amavis/.razor/razor-agent.conf > bayes_path /var/amavis/.spamassassin/bayes > auto_whitelist_path /var/amavis/.spamassassin/auto-whitelist > lock_method flock > add_header all Status _YESNO_, score=_SCORE_ required=_REQD_ > tests=_TESTSSCORES(,)_ _DCCR_ _PYZOR_ _RBL_ autolearn=_AUTOLEARN_ > version=_VERSION > score DCC_CHECK 4 > Any help greatly appreciated. > Jeff Not related, but: amavisd-new will ignore some of these settings, read: http://www.ijs.si/software/amavisd/#faq-spam Run amavisd-new in debug mode in order to get this part of the output (actually version 3.0.5 will be a little different) amavisd stop amavisd debug-sa <...> [2361] dbg: config: using "/etc/mail/spamassassin" for site rules dir [2361] dbg: config: read file /etc/mail/spamassassin/local.cf <...> This will tell us where amavisd-new is expecting to find local.cf. It may not be reading the one you think it is reading. If it says the "site rules dir" is for example /usr/local/etc/mail/spamassassin, then you should take a look in that directory and see if there is anything worth keeping. If not, and you would like to instead use what is in /etc/mail/spamassassin, one option is to rename /usr/local/etc/mail/spamassassin (maybe something like /usr/local/etc/mail/spamassassin-old would do) so spamassassin no longer looks for files there. Then try again. BTW, DCC detects bulk mail. Much, but not all bulk mail is spam. Many people subscribe to newsletters and the like, and may not appreciate getting them flagged as spam or discarded. Running 'amavisd debug-sa' may give you a different answers than running 'spamassassin --lint -D' (which BTW, you should always run as your amavisd-new user). Gary V _______________________________________________ AMaViS-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/amavis-user AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3 AMaViS-HowTos:http://www.amavis.org/howto/
