Questions and answers about how to do stuff
mattch
Posts: 49 Joined: 28 Mar 2018 22:26
Post
by mattch » 08 Apr 2020 16:52
Hello everyone!
does anyone know if it's possible to change the default score on DCC_CHECK?
i found some examples for custom rule but then results in two "DCC_CHECKS" in rule descriptions.
So where does the default one hide, or how to change or remove default dcc_check rule?
custom example cf:
Code: Select all
ifplugin Mail::SpamAssassin::Plugin::DCC
full DCC_CHECK eval:check_dcc()
describe DCC_CHECK Listed in DCC (http://rhyolite.com/anti-spam/dcc/) -- custom rule
score DCC_CHECK 2.5 # please adjust the score value
endif
pdwalker
Posts: 1581 Joined: 18 Mar 2015 09:16
Post
by pdwalker » 15 Apr 2020 06:54
more specifically, anytime you want to override any of the spamassassin scores, you can edit the /etc/mail/spamassassin/local.cf and add in your value
e.g. I copied the BAYES scores from one of the spamassassin cf files and changed the values to something that worked better for me:
Code: Select all
# scoring too low. Increase
score BAYES_99 4.0 4.0 4.0 4.0
score BAYES_999 2.0 2.0 2.0 2.0
score BAYES_00 -6.0 -6.0 -6.0 -6.0
You can verify the updated scoring by running the following command
spamassassin -D -t < $MAILFILE
where $MAILFILE is a stored message file somewhere under your /var/spool/MailScanner/quarantine/<DATE>/spam directory
mattch
Posts: 49 Joined: 28 Mar 2018 22:26
Post
by mattch » 22 Apr 2020 18:32
Thank you that is very clear and precise. i will be customing some more scores now.
adding dcc_check in local.cf did the trick. thanks guys you rock!