SpamAssassin

Материал из OpenWiki
Перейти к: навигация, поиск

local.cf

# Минимальный неблокируемый вес.
required_hits   5.0

# не удаляем спам, но переписываем тему письма
rewrite_header Subject ***SPAM***
rewrite_subject 1

report_safe 0

# trusted_networks 10.10.11.
# internal_networks x.x.x.x/x.x.x.x

# ok_languages en ru uk
ok_locales en ru

# Отключаем баесовский фильтр, на массовых системах он только мешает
use_bayes 0
# bayes_path /path
# auto_learn 1

report_charset koi8-r

# Автоматическое формирование белого списка
use_auto_whitelist 1
auto_whitelist_path /usr/local/amavis/db/auto_whitelist

# Дольше всего работает, отключаем DNSBL проверки.
# dns_available no
skip_rbl_checks 1
# num_check_received 0
# bl_timeout 1
dns_available test: 10.10.11.2 10.10.12.2

use_razor2 0
use_dcc 0
use_pyzor 0

score MIME_HTML_ONLY 3.0
score HTML_MESSAGE 0.5
score MIME_HTML_MOSTLY 2.5
score FORGED_OUTLOOK_TAGS 1.8
score SUBJ_ILLEGAL_CHARS 1.5
score FROM_ILLEGAL_CHARS 1.0
score HTML_FONTCOLOR_RED 1.0
score HTML_FONTCOLOR_GREEN 1.0
score HTML_FONTCOLOR_BLUE 1.0
score HTML_FONT_INVISIBLE 1.5
score HTML_IMAGE_ONLY_06 3.5

score HTML_FONTCOLOR_UNSAFE 1.5
score HTML_MIME_NO_HTML_TAG 0.1
score HTML_TAG_EXIST_TBODY 1.0
score HTML_TAG_BALANCE_BODY 0.4
score HTML_FONT_BIG 0.8
score RCVD_NUMERIC_HELO 2.0
score MSGID_FROM_MTA_ID 1.8
score MSGID_FROM_MTA_HEADER 1.5
score MPART_ALT_DIFF 2.0

score HTML_IMAGE_ONLY_04 3.120
score HTML_IMAGE_ONLY_08 2.881
score HTML_IMAGE_ONLY_12 2.360
score HTML_IMAGE_ONLY_16 1.352
score HTML_IMAGE_ONLY_20 1.567
score HTML_IMAGE_ONLY_24 1.088

score HTML_00_10 0.985
score HTML_10_20 1.050
score HTML_20_30 1.241
score HTML_30_40 0.879
score HTML_40_50 0.6
score HTML_50_60 1.053
score HTML_60_70 0.516

score HTML_TEXT_AFTER_HTML 0.5
score HTML_TEXT_AFTER_BODY 0.4
score EXTRA_MPART_TYPE 0.3
score RCVD_HELO_IP_MISMATCH 3.0

score HELO_DYNAMIC_ADELPHIA 2
score HELO_DYNAMIC_ATTBI 4
score HELO_DYNAMIC_CHELLO_NL 2
score HELO_DYNAMIC_CHELLO_NO 2
score HELO_DYNAMIC_COMCAST 4
score HELO_DYNAMIC_DHCP 3.5
score HELO_DYNAMIC_DIALIN 3.5
score HELO_DYNAMIC_HCC 4
score HELO_DYNAMIC_HEXIP 3
score HELO_DYNAMIC_HOME_NL 3
score HELO_DYNAMIC_IPADDR 4
score HELO_DYNAMIC_IPADDR2 4
score HELO_DYNAMIC_NTL 3
score HELO_DYNAMIC_OOL 4
score HELO_DYNAMIC_ROGERS 3
score HELO_DYNAMIC_RR2 3
score HELO_DYNAMIC_SPLIT_IP 4
score HELO_DYNAMIC_TELIA 3
score HELO_DYNAMIC_VELOX 3
score HELO_DYNAMIC_VTR 3
score HELO_DYNAMIC_YAHOOBB 4

score FROM_ENDS_IN_NUMS 1.0
score FROM_HAS_MIXED_NUMS 2.3
score SUBJ_ALL_CAPS 0.5
score DATE_IN_FUTURE_96_XX 2.0
score UPPERCASE_25_50 0.8
score RCVD_BY_IP 0.5
score EXTRA_MPART_TYPE 1.0


# Правила для исключения ошибочно помеченных писем
header FOREX_SUBJECT    Subject =~ /^Forex Trading/
describe FOREX_NIGERIAN_SUBJECT Subject is Forex Trading Strategies
score FOREX_SUBJECT -2