Freebsd6,postfix,amavisd-new,spamassasin+dcc+razor2
Только что пришлось доставать важное письмо из спама от домена, который у меня в белом листе!
Что у меня не так настроено?
/usr/local/etc/mail/spamassassin/local.cf
trusted_networks 192.168/16 # all in 192.168.*.* and 127.*.*.*
trusted_networks 127. # all in 127.*.*.*
whitelist_from @domain.ru
whitelist_from @domain2.ru
whitelist_from ivanov@domain3.ru
...
#rewrite_subject 1
report_safe 0
#use_terse_report 0
use_bayes 1
use_auto_whitelist 1
auto_whitelist_path /var/amavis/.spamassassin/auto-whitelist
#bayes_path /var/amavis/.spamassassin/bayes
#auto_learn 1
skip_rbl_checks 0
use_razor2 1
dcc_path /usr/local/bin/dccproc
use_dcc 1
use_pyzor 0
ok_languages ru en
ok_locales ru en
report_charset windows-1251
lang ru
#dcc_add_header 1
#dns_available yes
#header LOCAL_RCVD Received =~ /.*\(\S+\.domain\.com\s+\[.*\]\)/
#describe LOCAL_RCVD Received from local machine
#score LOCAL_RCVD -50
# Optional Score Increases
score DCC_CHECK 4.000
score RAZOR2_CHECK 2.500
score BAYES_99 4.300
score BAYES_90 3.500
score BAYES_80 3.000
score FORGED_MUA_OUTLOOK 2
score SUBJECT_IN_WHITELIST -100 # тестировал как-то
score SUBJ_ILLEGAL_CHARS 2
amavisd.conf
# SpamAssassin settings
$sa_local_tests_only = 0; # (default: false)
$sa_auto_whitelist = 1; # turn on AWL in SA 2.63 or older (irrelevant
# for SA 3.0, its cf option is use_auto_whitelist)
$sa_mail_body_size_limit = 200*1024; # don't waste time on SA if mail is larger
# (less than 1% of spam is > 64k)
# default: undef, no limitations
# default values, customarily used in the @spam_*_level_maps as the last entry
$sa_tag_level_deflt = 2.0; # add spam info headers if at, or above that level;
# undef is interpreted as lower than any spam level
$sa_tag2_level_deflt = 6.31;# add 'spam detected' headers at that level to
# passed mail (e.g. when $final_spam_destiny=D_PASS
# or for spam_lovers or when below kill_level)
$sa_kill_level_deflt = $sa_tag2_level_deflt; # triggers spam evasive actions
# at or above that level: bounce/reject/drop,
# quarantine, and adding mail address extension
$sa_dsn_cutoff_level = 9; # spam level beyond which a DSN is not sent,
# effectively turning D_BOUNCE into D_DISCARD;
# undef disables this feature and is a default;
# see also $sa_quarantine_cutoff_level above, which only controls quarantining
остальное закоментировано.
из самого письма:
X-Spam-Status: Yes, score=8.716 tag=2 tag2=6.31 kill=6.31 tests=[BAYES_95=3,
HTML_90_100=0.113, HTML_MESSAGE=0.001, MIME_HTML_MOSTLY=1.102,
RAZOR2_CF_RANGE_51_100=0.5, RAZOR2_CF_RANGE_E4_51_100=1.5, RAZOR2_CHECK=2.5]
X-Spam-Score: 8.716
X-Spam-Level: ********
X-Spam-Flag: YES