[Mimedefang] spamassassin scores ignored in sa-mimedefang.cf

Christoph Lehmann christoph.lehmann.germany at web.de
Wed Jan 8 08:28:51 EST 2014


I like to use different configuration files for authenticated and 
non-authenticated users.

Inside MD i call SA like

($hits, $req, $names, $report) = 
spam_assassin_check('/etc/mail/sa-mimedefang.cf');

or

($hits, $req, $names, $report) = 
spam_assassin_check('/etc/mail/sa-mimedefang-authuser.cf');

My sa-mimedefang.cf contains

score URIBL_BLACK 5.0 5.0 5.0 5.0
score URIBL_DBL_SPAM 5.0 5.0 5.0 5.0
skip_rbl_checks 0
dns_available 1

Debugging doesn't show warnings...

su defang -s /bin/bash -c 'spamassassin -x -p /etc/mail/sa-mimedefang.cf 
-D config --lint'
Jan  8 13:50:51.537 [1250] dbg: config: score set 0 chosen.
Jan  8 13:50:51.712 [1250] dbg: config: using "/etc/spamassassin" for 
site rules pre files
Jan  8 13:50:51.712 [1250] dbg: config: read file /etc/spamassassin/init.pre
Jan  8 13:50:51.712 [1250] dbg: config: read file /etc/spamassassin/v310.pre
Jan  8 13:50:51.713 [1250] dbg: config: read file /etc/spamassassin/v312.pre
Jan  8 13:50:51.713 [1250] dbg: config: read file /etc/spamassassin/v320.pre
Jan  8 13:50:51.713 [1250] dbg: config: read file /etc/spamassassin/v330.pre
Jan  8 13:50:51.713 [1250] dbg: config: using 
"/var/lib/spamassassin/3.003001" for sys rules pre files
Jan  8 13:50:51.713 [1250] dbg: config: using 
"/var/lib/spamassassin/3.003001" for default rules dir
Jan  8 13:50:51.713 [1250] dbg: config: read file 
/var/lib/spamassassin/3.003001/updates_spamassassin_org.cf
Jan  8 13:50:51.713 [1250] dbg: config: using "/etc/spamassassin" for 
site rules dir
Jan  8 13:50:51.714 [1250] dbg: config: read file 
/etc/spamassassin/65_debian.cf
Jan  8 13:50:51.714 [1250] dbg: config: read file 
/etc/spamassassin/iXhash.cf
Jan  8 13:50:51.714 [1250] dbg: config: read file /etc/spamassassin/local.cf
Jan  8 13:50:51.714 [1250] dbg: config: using 
"/etc/mail/sa-mimedefang.cf" for user prefs file
Jan  8 13:50:51.714 [1250] dbg: config: read file /etc/mail/sa-mimedefang.cf
Jan  8 13:50:51.786 [1250] dbg: config: fixed relative path: 
/var/lib/spamassassin/3.003001/updates_spamassassin_org/10_default_prefs.cf
...
Jan  8 13:50:52.282 [1250] dbg: config: allowing user rules!
...

Hits and names are logged:

mimedefang.pl[22317]: MDLOG,7B9314A8B,mail_in,nouser,5.576 OTHER_RULES 
URIBL_BLACK URIBL_DBL_SPAM,<from at domain.de>,<to at domains.de>,Subject

Why are my given scores ignored?

Thanks for your help.

Christoph Lehmann



More information about the MIMEDefang mailing list