Rules Customization local.cf File
The local.cf file can be used to customize rules that have set some default values within the appropriate .cf files (<install_dir>/spam/rules).
Warning: Do not modify these files as the next update would overwrite your changes.
The local.cf file is the place where you can e.g. redefine default scores (for some of technologies) that are set to too low values or not set at all.
Warning: In the case you want to create your own rules, create the <install_dir>/spam/rules/custom/ folder and place these rules here. Again, rules placed to the rules/ folder would be overwritten/deleted. The same applies for editing of the existing rules.
Examples
DKIM
Useful to whitelist Facebook, LinkedIn updates.
Warning: Take into account that the Spam - SpamAssassin - Use DKIM option has to be enabled "DKIM" functions to work.
Originally, score values from the rules/25_dkim.cf file are applied.
Part of the file can look like this:
You may want to copy the score DKIM_VERIFIED -0.500 row, paste it into the local.cf file and change the value, say to -1.000.
DNSWL
Warning: Take into account that the Spam SpamAssassin - RBL has to be enabled "check_rbl_sub" functions to work.
Adding these lines to the local.cf file will work:
header __RCVD_IN_DNSWL eval:check_rbl('dnswl-firsttrusted', 'list.dnswl.org.')
header RCVD_IN_DNSWL_LOW eval:check_rbl_sub('dnswl-firsttrusted', '127.0.\d+.1')
describe RCVD_IN_DNSWL_LOW Sender listed at http://www.dnswl.org/, low trust
tflags RCVD_IN_DNSWL_LOW nice net
header RCVD_IN_DNSWL_MED eval:check_rbl_sub('dnswl-firsttrusted', '127.0.\d+.2')
describe RCVD_IN_DNSWL_MED Sender listed at http://www.dnswl.org/, medium trust
tflags RCVD_IN_DNSWL_MED nice net
header RCVD_IN_DNSWL_HI eval:check_rbl_sub('dnswl-firsttrusted', '127.0.\d+.3')
describe RCVD_IN_DNSWL_HI Sender listed at http://www.dnswl.org/, high trust
tflags RCVD_IN_DNSWL_HI nice net
score RCVD_IN_DNSWL_LOW -1
score RCVD_IN_DNSWL_MED -10
score RCVD_IN_DNSWL_HI -100