All,

I'm trying to setup spamassassin and I'm having trouble getting the simcontrol file correct.

Ultimately, I would like flag anything with a spam level > 5 as SPAM in the subject line, and flat out reject anything with a spam level > 10.

According to documentation, spam_hits overrides spam_passthru, but my experience is that the reverse is true.

with the following simcontrol:
:clam=yes,spam=yes,spam_passthru=yes,spam_hits=10
everything is getting through - I had a mail with 12 hits come through (the subject line was flagged correctly)

with the following:
:clam=yes,spam=yes,spam_hits=10
everything with a level of 5 or above is getting rejected.

FWIW, my /etc/mail/spamassassin/local.cf:
skip_rbl_checks 1
required_hits 5
use_bayes 1
bayes_file_mode 0700
bayes_path /etc/mail/spamassassin/.spamassassin/bayes
bayes_auto_learn_threshold_spam 8.0
ok_languages all
ok_locales all
add_header spam Flag _YESNOCAPS_
rewrite_header Subject ****SPAM****


Has anyone gotten this to work? Or is it simply a case of me trying to have my cake and eat it too?

Reply via email to