DCC Plugin score

Questions and answers about how to do stuff
Post Reply
mattch
Posts: 47
Joined: 28 Mar 2018 22:26

DCC Plugin score

Post 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
smyers119
Posts: 108
Joined: 29 Nov 2019 11:36

Re: DCC Plugin score

Post by smyers119 »

did you try adding

Code: Select all

score DCC_CHECK 3
In local.cf
User avatar
pdwalker
Posts: 1553
Joined: 18 Mar 2015 09:16

Re: DCC Plugin score

Post 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
mattch
Posts: 47
Joined: 28 Mar 2018 22:26

Re: DCC Plugin score

Post 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!
Post Reply