From 27183bd846c843a61354e346d55f5214d041f866 Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Sun, 17 Jul 2022 04:06:00 +0400 Subject: [PATCH] Added setting changed in SpamAssassin's *.pre files. --- homepage/views/articles/setting_up_a_mail_server.pug | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/homepage/views/articles/setting_up_a_mail_server.pug b/homepage/views/articles/setting_up_a_mail_server.pug index 823301a..8808629 100644 --- a/homepage/views/articles/setting_up_a_mail_server.pug +++ b/homepage/views/articles/setting_up_a_mail_server.pug @@ -343,8 +343,8 @@ block article h3#art-5 #[a(href='#art-5') 5. SpamAssassin spam filter] - p Here we are working with a #[code local.cf] file to configure SpamAssassin. - p I didn't any fancy tweaking, didn't make any custom rules. I just changed options presented in file. + p First, we'll work with a #[code local.cf] file to configure SpamAssassin. + p I didn't any fancy tweaking here, didn't make any custom rules. I just changed options presented in file. p I left #[code rewrite_header] option commented since I don't want to append anything to a Subject header of spam messages. p Option #[code report_safe] I set to 2 to save spam messages as a text/plain attachment instead of modifying original message. p #[code trusted_networks] sets networks and hosts that are considered trusted, i.e. not spammers. @@ -352,6 +352,9 @@ block article p #[code required_score] left to be its default value of 5.0. p I use Bayesian classifier, so options #[code use_bayes] and #[code bayes_auto_learn] are set to 1. p I chose to normalise charset to UTF-8 with option #[code normalize_charset 1]. + p Next we move to #[code *.pre] files. + p In #[code init.pre] I commented out URIDNSBL plugin, since I don't use them. + p In #[code v342.pre] I enabled #[code FromNameSpoof] and #[code Phishing] plugins. h4#art-5-1 #[a(href='#art-5-1') 5.1. Updating built-in rule set] p I sometimes run #[code sa-update] util to update built-in rules and pre-compile them with #[code sa-compile] util. After that restart SpamAssassin.