Skip to content

Spamaassassin

База правил: /var/db/spamassassin/[номер версии]

Конфигурация

local.cf
trusted_networks 192.168.100/24
required_score 7.0

report_safe 0
#rewrite_header subject [***SPAM***]

#Добавляет развернутый рапорт в заголовок X-Spam-Report
add_header all Report _REPORT_

use_bayes 1
bayes_path /usr/local/etc/mail/spamassassin/bayes/
bayes_file_mode 0666
bayes_min_spam_num 1
bayes_min_ham_num 1
bayes_learn_to_journal 1

skip_rbl_checks 0
bayes_auto_learn 0

#ok_languages ru en
ok_locales ru en

score BAYES_00 0.0001 0.0001 -6.0 -6.0
score BAYES_05 0.0001 0.0001 -3.0 -3.0
score BAYES_20 0.0001 0.0001 -1.0 -1.0
score BAYES_50 0.0001 0.0001 1.6 1.6
score BAYES_60 0.0001 0.0001 2.0 2.0
score BAYES_80 0.0001 0.0001 4.0 4.0
score BAYES_95 0.0001 0.0001 6.5 6.5
score BAYES_99 0.0001 0.0001 10.0 10.0
score RDNS_NONE 0.0001 0.0001 3.0 3.0

score SUBJ_FULL_OF_8BITS 0.00
score HTML_COMMENT_8BITS 0.01
score HEADER_8BITS 0.00
score TO_NO_USER 0.01
score FORGED_MUA_OUTLOOK 0.5
score X_AUTH_WARNING 0.01
score SUBJ_HAS_UNIQ_ID 9.99
score HTTP_USERNAME_USED 9.99
score FORGED_YAHOO_RCVD 9.99
score FORGED_JUNO_RCVD 16
score UNWANTED_LANGUAGE_BODY 1.02
score MLM 5.55
score RCVD_NUMERIC_HELO 4.95

#
score HTML_IMAGE_ONLY_04 5.0
score HTML_IMAGE_ONLY_08 5.0
score HTML_IMAGE_ONLY_12 5.0
score HTML_IMAGE_ONLY_16 5.0
score HTML_IMAGE_ONLY_20 5.0
score HTML_IMAGE_ONLY_24 5.0
score HTML_IMAGE_ONLY_28 5.0
score HTML_IMAGE_ONLY_32 5.0