Line 16: |
Line 16: |
| | | |
| This happens because by default, no mail (except for viruses) gets rejected without the admin doing something first. | | This happens because by default, no mail (except for viruses) gets rejected without the admin doing something first. |
| + | ======Custom Rule Scores====== |
| + | You can customize the score assigned by a specific Spamassassin rule (SARE_ADULT2 in this case) as follows: |
| + | mkdir -p /etc/e-smith/templates-custom/etc/mail/spamassassin/local.cf |
| + | cd /etc/e-smith/templates-custom/etc/mail/spamassassin/local.cf |
| + | echo "score SARE_ADULT2 20.000" >> 20localscores |
| + | signal-event email-update |
| + | |
| + | You can now add additional tests and custom scores by editing the newly-created template fragment ''20localscores'' and adding new custom scores. |
| + | pico -w /etc/e-smith/templates-custom/etc/mail/spamassassin/local.cf/20localscores |
| + | signal-event email-update |
| + | Each custom score goes on its own line. If you enter a score surrounded by parentheses, the "custom" score will be added to the default score for the specified test (use ''score TEST_NAME (-1)'' to reduce the score for 'TEST_NAME' by 1) |
| + | |
| + | You can remove these customizations using: |
| + | rm -f /etc/e-smith/templates-custom/etc/mail/spamassassin/local.cf/20localscores |
| + | signal-event email-update |
| + | |
| + | References: |
| + | * http://spamassassin.apache.org/full/3.1.x/dist/doc/Mail_SpamAssassin_Conf.html#scoring_options |
| + | * http://spamassassin.apache.org/tests_3_2_x.html |
| + | * http://www.rulesemporium.com/ |
| | | |
| =====Real-time Blackhole List (RBL)===== | | =====Real-time Blackhole List (RBL)===== |