Page 1 of 1

DCC Plugin score

Posted: 08 Apr 2020 16:52
by mattch
Hello everyone! :think: :doh:

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

Re: DCC Plugin score

Posted: 13 Apr 2020 00:15
by smyers119
did you try adding

Code: Select all

score DCC_CHECK 3
In local.cf

Re: DCC Plugin score

Posted: 15 Apr 2020 06:54
by pdwalker
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

Re: DCC Plugin score

Posted: 22 Apr 2020 18:32
by mattch
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!