теперь начальство стало напрягает что плоховато работает зарезка спама. уж много не отсивается.
вот конфиг spamassasin'а:
Код: Выделить всё
# This is the right place to customize your installation of SpamAssassin.
#
# See 'perldoc Mail::SpamAssassin::Conf' for details of what can be
# tweaked.
#
# Only a small subset of options are listed below
#
###########################################################################
# Add *****SPAM***** to the Subject header of spam e-mails
#
rewrite_header Subject *****SPAM*****
whitelist_from *@mydomen.com
# Save spam messages as a message/rfc822 MIME attachment instead of
# modifying the original message (0: off, 2: use text/plain instead)
#
report_safe 2
# Set which networks or hosts are considered 'trusted' by your mail
# server (i.e. not spammers)
#
trusted_networks <моя подсетка>
use_pyzor 1
use_razor2 1
skip_rbl_checks 0
dns_available yes
# Set the threshold at which a message is considered spam (default: 5.0)
#
required_score 7.3
# Use Bayesian classifier (default: 1)
#
auto_learn 1
use_bayes 1
use_bayes_rules 1
# Bayesian classifier auto-learning (default: 1)
#
bayes_auto_learn 1
# Set headers which may provide inappropriate cues to the Bayesian
# classifier
#
bayes_ignore_header X-Bogosity
bayes_ignore_header X-Spam-Flag
bayes_ignore_header X-Spam-Status
bayes_auto_learn_threshold_spam 5.8
bayes_auto_learn_threshold_nonspam 0.3
bayes_min_spam_num 1
bayes_min_ham_num 1
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
ok_languages en ru ua
ok_locales en ru ua
#clear_report_template
#report ====================
#report ====== S P A M =====
#report ====================
auto_whitelist_factory Mail::SpamAssassin::SQLBasedAddrList
user_awl_dsn DBI:mysql:spamassassin:localhost
user_awl_sql_username spamassassin
user_awl_sql_password spamassassin
bayes_store_module Mail::SpamAssassin::BayesStore::SQL
bayes_sql_dsn DBI:mysql:spamassassin:localhost
bayes_sql_username spamassassin
bayes_sql_password spamassassin
user_scores_dsn DBI:mysql:spamassassin:localhost
user_scores_sql_username spamassassin
user_scores_sql_password spamassassin
[root@sa /#/spamassassin]#
решил проверить работоспособность. с левого ящика отправил на свой спам-писмь
Код: Выделить всё
...
X-Spam-Status: No, score=6.8 required=7.3 tests=AWL,BAYES_99,DNS_FROM_RFC_DSN,
HTML_MESSAGE autolearn=no version=3.2.5
X-Spam-Level: ******
...
Код: Выделить всё
[root@sa /#/spamassassin]# sa-learn --spam /home/savio/spam/
Learned tokens from 1 message(s) (1 message(s) examined)
[root@sa /#/spamassassin]#
Код: Выделить всё
X-Spam-Status: No, score=5.9 required=7.3 tests=AWL,BAYES_99,DNS_FROM_RFC_DSN,
HTML_MESSAGE autolearn=no version=3.2.5
X-Spam-Level: *****
Код: Выделить всё
X-Spam-Status: No, score=5.6 required=7.3 tests=AWL,BAYES_99,DNS_FROM_RFC_DSN,
HTML_MESSAGE autolearn=no version=3.2.5
X-Spam-Level: *****
во первых после скармливания письмо вообще не должно было дойти до меня, так как оно спам.
во вторых как видно вес письма как спама вместо того чтобы увеличивался, он тока уменьшается.
что тут не так?