Код: Выделить всё
# These values can be overridden by editing ~/.spamassassin/user_prefs.cf
# (see spamassassin(1) for details)
# These should be safe assumptions and allow for simple visual sifting
# without risking lost emails.
trusted_networks 192.168.0.0/19
trusted_networks 127.
rewrite_header Subject *****SPAM*(_SCORE_)****
subject_tag *SPAM*_HITS_ points*
# Разрешаем автообучение антиспама
auto_learn 1
# Разрешаем использовать Bayes
use_bayes 1
# Путь к базам Bayes
bayes_path /etc/mail/spamassassin/bayes
# Автоматически назначать права на файлы Bayes
bayes_file_mode 0666
bayes_learn_to_journal 1
# Количество НЕспам-писем,после которого демон начинает использовать Bayes
bayes_min_ham_num 1
# Количество спам-писем,после которого демон начинает использовать Bayes
bayes_min_spam_num 1
# “Очки” писем, по которым они проходят или не проходят антиспам
# required_hits - та самая “серединка по очкам”
required_hits 2.0
#scores
header SEND_FROM_INSIDE X-Envelope-From =~ /\@(?:$localdomain\.ru)>$/
describe SEND_FROM_INSIDE Sent mail from inside
#score SEND_FROM_INSIDE -100
score SUBJ_FULL_OF8BITS 0.1
score IN_REP_TO -0.1
score HTML_WITH_BGCOLOR 3.6
score CTYPE_JUST_HTML 3.9
score BIG_FONT 2.7
score MONEY_MAKING 2.0
score WEB_BUGS 0.2
score MAILTO_LINK 1.3
score MAILTO_WITH_SUBJ 1.6
score MAILTO_WITH_SUBJ_REMOVE 2.2
score MAILTO_TO_SPAM_ADDR 2.0
score PORN_1 1.353
score PORN_10 0.266
score PORN_11 0.879
score PORN_12 0.826
score PORN_13 4.194
score PORN_3 0.805
score PORN_4 1.491
score PORN_6 3.319
score PORN_7 1.514
score PORN_8 0.2
score PORN_9 2.692
score INVALID_DATE_ODD_MONTH 1.9
score CHARSET_FARAWAY 2.0
score CHARSET_FARAWAY_HEADERS 1.8
score CHARSET_FARAWAY_BODY 1.9
score SUBJ_HAS_UNIQ_ID 2.5
score SUBJ_ENDS_IN_Q_MARK 0.2
score SUBJ_HAS_Q_MARK 0.5
score SUPERLONG_LINE 0.9
score LINES_OF_YELLING 0.5
score LINES_OF_YELLING_2 0.7
score LINES_OF_YELLING_3 0.8
score NO_REAL_NAME 0.9
score TO_LOCALPART_EQ_REAL 0.8
score FROM_ENDS_IN_NUMS 1.0
score FROM_HAS_MIXED_NUMS 2.3
score SUBJ_ALL_CAPS 0.5
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 BAYES_80 9.0
score BAYES_70 7.5
score BAYES_60 6.0
score BAYES_50 5.0
score BAYES_40 3.0
#score BAYES_80 5.0
#score BAYES_70 4.5
#score BAYES_60 4.0
#score BAYES_50 3.0
#score BAYES_40 2.0
ok_languages en ru
ok_locales en ru
report_safe 0
# Разрешаем переписывать заголовки
rewrite_subject 1
subject_tag MESSAGE_MARKED_AS_SPAM
auto_whitelist_path /etc/mail/spamassassin/auto-whitelist
auto_whitelist_file_mode 0666
auto_learn_threshold_nonspam -2
auto_learn_threshold_spam 9
# А с этих разрешаем принимать почту и никогда не блокируем ее
whitelist_from *@itland.ru
# С этих адресов/хостов не принимать почту
blacklist_from *@odnoklassniki.ru
blacklist_from *@hotmail.com
blacklist_from *@ymail.com
blacklist_from *@msn.com
blacklist_from *@aol.com
blacklist_from *@cat.es
blacklist_from *@pmail.gen.nz
blacklist_from *@femenino.com
blacklist_from *@infonium.com
blacklist_from *@outblaze.com
# DOMAIN
blacklist_from *.au
blacklist_from *.gov
blacklist_from *.jp
blacklist_from *.it
blacklist_from *.at
blacklist_from *.kr
blacklist_from *.org
blacklist_from *.net
blacklist_from *.nz
Код: Выделить всё
spamd_address = /var/run/spamassassin/spamd.sock
acl_check_data:
........
## spamassassin, spams are never big and spamassassin can die on big emails, so we
## limit its use under 500ko.
accept
condition = ${if >={$message_size}{500k}{yes}{no}}
warn
message = X-SA-Score: $spam_score
spam = nobody:true
warn
message = X-SA-Report: $spam_report
spam = nobody:true
condition = ${if >{$spam_score_int}{0}{true}{false}}
warn
message = X-SA-Status: Yes
spam = nobody:true
condition = ${if >{$spam_score_int}{50}{true}{false}}
deny
message = This message scored $spam_score spam points.
spam = nobody:true
condition = ${if >{$spam_score_int}{70}{true}{false}}
Код: Выделить всё
# Options to spamd
SPAMDOPTIONS=" -l -d -c -m5 -H -m 10 --socketpath=/var/run/spamassassin/spamd.sock --socketowner=exim"
Код: Выделить всё
Content-Transfer-Encoding: 8bit
Content-Type: text/plain; format=flowed; charset="koi8-r"; reply-type=original
Date: Wed, 30 Nov 2011 12:29:27 +0300 [16:29:27 NOVT]
From: "Без наценки!" <graphic24@be.bm.com>
MIME-Version: 1.0
Message-ID: <000d01ccaf42$8e3545a0$6400a8c0@graphic24>
Received:
from gw.pi-ngp.ru ([unix socket]) by TDS-IMAP/POP3 (Cyrus v2.3.7-Invoca-RPM-2.3.7-12.el5_7.1) with LMTPA; Wed, 30 Nov 2011 16:29:38 +0700
from [85.234.19.228] (helo=85.234.19.228.info-link.ru) by gw.pi-ngp.ru with esmtp (Exim 4.69) (envelope-from <graphic24@be.bm.com>) id 1RVgTx-0007ga-VZ; Wed, 30 Nov 2011 16:29:38 +0700
from 85.234.19.228 by mail.global.sprint.com; Wed, 30 Nov 2011 12:29:27 +0300
Return-Path: <graphic24@be.bm.com>
Subject: Срочно продам землю(1281кв.м.) со строением! 2 км от МКАД
To: <mab@pi-ngp.ru>
X-MSMail-Priority: Normal
X-Mail-Check:
Mail Check System
Mail Check System
X-Mailer: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-Priority: 3
X-Sieve: CMU Sieve 2.3
X-Warrning:
Your Mail was checked
Your Mail was checked
Заголовки: Скрыть заголовки
Участок(1281кв.м.)огорожен забором.
Здание-жилое Общая площадь363кв. м.
ул. Большая Косинская.
Ближайшая станция метро - Выхино 10 минут общественным транспортом).
Собственник
ТЕЛ.7 8 О .О3 :.23