EXIM + SpamAssassin - помогите разобраться

EXIM, sendmail, postfix, Dovecot и прочие. Решение проблем связанных с работой электронной почты

Модератор: xM

Правила форума
Убедительная просьба юзать теги [code] при оформлении листингов.
Сообщения не оформленные должным образом имеют все шансы быть незамеченными.
UDAR_nick
рядовой
Сообщения: 12
Зарегистрирован: 2009-12-22 11:27:22

EXIM + SpamAssassin - помогите разобраться

Непрочитанное сообщение UDAR_nick » 2010-03-10 11:58:00

Приветствую уважаемый форум!
Прошу помочь разобраться в настройках и обучении SpamAssassina

SpamAssassin работает - начисляет балы, отшивает если баллов много... Народ пересылает мне пролезший спам и я обучал демона
из под рута:

Код: Выделить всё

#sa-learn --spam --dir /root/spam
о чем он говорил что столько-то обработано, столько-то токенов...
в папку /root/spam письма складывал руками
после обучения удалял....

Теперь есть ощущение что:
1. Обучение ему пофигу, то есть он не учится, так как иной раз пролезают такой же спам с аналогичным (близким) значением начисленный баллов
2. Так как обучал от рута - он наделал мне файлов в:

Код: Выделить всё

~/.spamassassin# ll
total 628
-rw-------  1 root  wheel      12 10 мар 11:02 bayes.mutex
-rw-r--r--  1 root  wheel   49152 10 мар 11:02 bayes_seen
-rw-r--r--  1 root  wheel  643072 10 мар 11:02 bayes_toks
drwxr-xr-x  2 root  wheel     512  5 мар 15:59 sa-compile.cache
Надо оговорится что ставил я Exim по http://www.opennet.ru/base/net/exim_xams_setup.txt.html , то есть с панелью управления XAMS. Она добавляет свой конфиг-файл sa-exim.conf, который сейчас выглядит так:

Код: Выделить всё

SAEximDebug: 3
SAspamcpath: /usr/local/bin/spamc
SAspamcHost: 127.0.0.1
SAspamcPort: 783
SAEximRunCond: ${if and {{def:sender_host_address} {!eq {$sender_host_address}{127.0.0.1}} {!eq {$h_X-SA-Do-Not-Run:}{Yes}} } {1}{0}}
SAEximRejCond: ${if !eq {$h_X-SA-Do-Not-Rej:}{Yes} {1}{0}}
SAmaxbody: 512000
SATruncBodyCond: 0
SARewriteBody: 0
SAPrependArchiveWithFrom: 1
SAmaxarchivebody: 20971520
SAerrmaxarchivebody: 1073741824
SAmaxrcptlistlength: 0
SAaddSAEheaderBeforeSA: 1
SAtimeoutsave: /var/spool/sa-exim/SAtimeoutsave
SAtimeoutSavCond: 0
SAerrorsave: /var/spool/sa-exim/SAerrorsave
SAerrorSavCond: 0
SAtemprejectonerror: 0
SAteergrubetime: 900
SAteergrubeSavCond: 0
SAteergrubesave: /var/spool/sa-exim/SAteergrube
SAteergrubeoverwrite: 0
SAdevnullSavCond: 0
SAdevnullsave: /var/spool/sa-exim/SAdevnull
SApermreject: 9.0
SApermrejectSavCond: 0
SAtempreject: 15.0
SAtemprejectSavCond: 1
SAtemprejectsave: /var/mail/TEST/rejected_spam
SAtemprejectoverwrite: 0
SAgreylistiswhitestr: GREYLIST_ISWHITE
SAgreylistraisetempreject: 3.0
SAspamacceptsave: /var/spool/sa-exim/SAspamaccept
SAspamacceptSavCond: 0
SAnotspamsave: /var/spool/sa-exim/SAnotspam
SAnotspamSavCond: 0
SAmsgteergrubewait: Sorry, spammers are not welcome here - Enjoy the teergrube! :)
SAmsgteergruberej: Unsolicited spam:  %s  -  Sorry, your message has been rejected and teergrubed by our filtering software due to achieving a high spam score.
SAmsgpermrej: Unsolicited spam:  %s  -  Sorry, looks like spam fo me!
SAmsgtemprej: Please try again later.
SAmsgerror: Temporary local error while processing message, please contact postmaster.
/usr/local/etc/mail/spamassassin/local.cf выглядит так:

Код: Выделить всё

cat /usr/local/etc/mail/spamassassin/local.cf
# 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*****


#   Save spam messages as a message/rfc822 MIME attachment instead of
#   modifying the original message (0: off, 2: use text/plain instead)
#
# report_safe 1


#   Set which networks or hosts are considered 'trusted' by your mail
#   server (i.e. not spammers)
#
# trusted_networks 212.17.35.


#   Set file-locking method (flock is not safe over NFS, but is faster)
#
lock_method flock


#   Set the threshold at which a message is considered spam (default: 5.0)
#
required_hits 5.0
required_score 5.0


#   Use Bayesian classifier (default: 1)
#
use_bayes 1
skip_rbl_checks 0
use_razor2 1
use_dcc 1
use_pyzor 1

##############################################
ok_languages ru en
ok_locales ru en
report_charset windows-1251
##############################################
score FROM_ILLEGAL_CHARS 1.5
score HEAD_ILLEGAL_CHARS 1.5
score SUBJ_ILLEGAL_CHARS 1.5
score FORGED_IMS_TAGS 0.5
#
##############################################

score BAYES_00 -9.8
score BAYES_20 -2.856
score BAYES_40 -0.002
score BAYES_60 0.002
score BAYES_80 3.314
score BAYES_99 10.8

#   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_nonspam -1
bayes_auto_learn_threshold_spam 6.0
use_auto_whitelist  1
вывод sa-learn -D --sync выглядит так:

Код: Выделить всё

[26574] dbg: logger: adding facilities: all
[26574] dbg: logger: logging level is DBG
[26574] dbg: generic: SpamAssassin version 3.2.5
[26574] dbg: config: score set 0 chosen.
[26574] dbg: util: running in taint mode? yes
[26574] dbg: util: taint mode: deleting unsafe environment variables, resetting PATH
[26574] dbg: util: PATH included '/sbin', keeping
[26574] dbg: util: PATH included '/bin', keeping
[26574] dbg: util: PATH included '/usr/sbin', keeping
[26574] dbg: util: PATH included '/usr/bin', keeping
[26574] dbg: util: PATH included '/usr/games', keeping
[26574] dbg: util: PATH included '/usr/local/sbin', keeping
[26574] dbg: util: PATH included '/usr/local/bin', keeping
[26574] dbg: util: PATH included '/root/bin', which doesn't exist, dropping
[26574] dbg: util: final PATH set to: /sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin
[26574] dbg: dns: is Net::DNS::Resolver available? yes
[26574] dbg: dns: Net::DNS version: 0.66
[26574] dbg: config: using "/usr/local/etc/mail/spamassassin" for site rules pre files
[26574] dbg: config: read file /usr/local/etc/mail/spamassassin/init.pre
[26574] dbg: config: read file /usr/local/etc/mail/spamassassin/v310.pre
[26574] dbg: config: read file /usr/local/etc/mail/spamassassin/v312.pre
[26574] dbg: config: read file /usr/local/etc/mail/spamassassin/v320.pre
[26574] dbg: config: using "/var/db/spamassassin/3.002005" for sys rules pre files
[26574] dbg: config: using "/var/db/spamassassin/3.002005" for default rules dir
[26574] dbg: config: read file /var/db/spamassassin/3.002005/updates_spamassassin_org.cf
[26574] dbg: config: using "/usr/local/etc/mail/spamassassin" for site rules dir
[26574] dbg: config: read file /usr/local/etc/mail/spamassassin/local.cf
[26574] dbg: config: read file /usr/local/etc/mail/spamassassin/old.local.cf
[26574] dbg: plugin: loading Mail::SpamAssassin::Plugin::URIDNSBL from @INC
[26574] dbg: plugin: loading Mail::SpamAssassin::Plugin::Hashcash from @INC
[26574] dbg: plugin: loading Mail::SpamAssassin::Plugin::Pyzor from @INC
[26574] dbg: pyzor: network tests on, attempting Pyzor
[26574] dbg: plugin: loading Mail::SpamAssassin::Plugin::Razor2 from @INC
[26574] dbg: razor2: razor2 is not available
[26574] dbg: plugin: loading Mail::SpamAssassin::Plugin::SpamCop from @INC
[26574] dbg: reporter: network tests on, attempting SpamCop
[26574] dbg: plugin: loading Mail::SpamAssassin::Plugin::AWL from @INC
[26574] dbg: plugin: loading Mail::SpamAssassin::Plugin::AutoLearnThreshold from @INC
[26574] dbg: plugin: loading Mail::SpamAssassin::Plugin::WhiteListSubject from @INC
[26574] dbg: plugin: loading Mail::SpamAssassin::Plugin::MIMEHeader from @INC
[26574] dbg: plugin: loading Mail::SpamAssassin::Plugin::ReplaceTags from @INC
[26574] dbg: plugin: loading Mail::SpamAssassin::Plugin::Check from @INC
[26574] dbg: plugin: loading Mail::SpamAssassin::Plugin::HTTPSMismatch from @INC
[26574] dbg: plugin: loading Mail::SpamAssassin::Plugin::URIDetail from @INC
[26574] dbg: plugin: loading Mail::SpamAssassin::Plugin::Bayes from @INC
[26574] dbg: plugin: loading Mail::SpamAssassin::Plugin::BodyEval from @INC
[26574] dbg: plugin: loading Mail::SpamAssassin::Plugin::DNSEval from @INC
[26574] dbg: plugin: loading Mail::SpamAssassin::Plugin::HTMLEval from @INC
[26574] dbg: plugin: loading Mail::SpamAssassin::Plugin::HeaderEval from @INC
[26574] dbg: plugin: loading Mail::SpamAssassin::Plugin::MIMEEval from @INC
[26574] dbg: plugin: loading Mail::SpamAssassin::Plugin::RelayEval from @INC
[26574] dbg: plugin: loading Mail::SpamAssassin::Plugin::URIEval from @INC
[26574] dbg: plugin: loading Mail::SpamAssassin::Plugin::WLBLEval from @INC
[26574] dbg: plugin: loading Mail::SpamAssassin::Plugin::VBounce from @INC
[26574] dbg: plugin: loading Mail::SpamAssassin::Plugin::ImageInfo from @INC
[26574] dbg: config: fixed relative path: /var/db/spamassassin/3.002005/updates_spamassassin_org/10_default_prefs.cf
[26574] dbg: config: using "/var/db/spamassassin/3.002005/updates_spamassassin_org/10_default_prefs.cf" for included file
[26574] dbg: config: read file /var/db/spamassassin/3.002005/updates_spamassassin_org/10_default_prefs.cf
[26574] dbg: config: fixed relative path: /var/db/spamassassin/3.002005/updates_spamassassin_org/20_advance_fee.cf
[26574] dbg: config: using "/var/db/spamassassin/3.002005/updates_spamassassin_org/20_advance_fee.cf" for included file
[26574] dbg: config: read file /var/db/spamassassin/3.002005/updates_spamassassin_org/20_advance_fee.cf
[26574] dbg: config: fixed relative path: /var/db/spamassassin/3.002005/updates_spamassassin_org/20_body_tests.cf
[26574] dbg: config: using "/var/db/spamassassin/3.002005/updates_spamassassin_org/20_body_tests.cf" for included file
[26574] dbg: config: read file /var/db/spamassassin/3.002005/updates_spamassassin_org/20_body_tests.cf
[26574] dbg: config: fixed relative path: /var/db/spamassassin/3.002005/updates_spamassassin_org/20_compensate.cf
[26574] dbg: config: using "/var/db/spamassassin/3.002005/updates_spamassassin_org/20_compensate.cf" for included file
[26574] dbg: config: read file /var/db/spamassassin/3.002005/updates_spamassassin_org/20_compensate.cf
[26574] dbg: config: fixed relative path: /var/db/spamassassin/3.002005/updates_spamassassin_org/20_dnsbl_tests.cf
[26574] dbg: config: using "/var/db/spamassassin/3.002005/updates_spamassassin_org/20_dnsbl_tests.cf" for included file
[26574] dbg: config: read file /var/db/spamassassin/3.002005/updates_spamassassin_org/20_dnsbl_tests.cf
[26574] dbg: config: fixed relative path: /var/db/spamassassin/3.002005/updates_spamassassin_org/20_drugs.cf
[26574] dbg: config: using "/var/db/spamassassin/3.002005/updates_spamassassin_org/20_drugs.cf" for included file
[26574] dbg: config: read file /var/db/spamassassin/3.002005/updates_spamassassin_org/20_drugs.cf
[26574] dbg: config: fixed relative path: /var/db/spamassassin/3.002005/updates_spamassassin_org/20_dynrdns.cf
[26574] dbg: config: using "/var/db/spamassassin/3.002005/updates_spamassassin_org/20_dynrdns.cf" for included file
[26574] dbg: config: read file /var/db/spamassassin/3.002005/updates_spamassassin_org/20_dynrdns.cf
[26574] dbg: config: fixed relative path: /var/db/spamassassin/3.002005/updates_spamassassin_org/20_fake_helo_tests.cf
[26574] dbg: config: using "/var/db/spamassassin/3.002005/updates_spamassassin_org/20_fake_helo_tests.cf" for included file
[26574] dbg: config: read file /var/db/spamassassin/3.002005/updates_spamassassin_org/20_fake_helo_tests.cf
[26574] dbg: config: fixed relative path: /var/db/spamassassin/3.002005/updates_spamassassin_org/20_head_tests.cf
[26574] dbg: config: using "/var/db/spamassassin/3.002005/updates_spamassassin_org/20_head_tests.cf" for included file
[26574] dbg: config: read file /var/db/spamassassin/3.002005/updates_spamassassin_org/20_head_tests.cf
[26574] dbg: config: fixed relative path: /var/db/spamassassin/3.002005/updates_spamassassin_org/20_html_tests.cf
[26574] dbg: config: using "/var/db/spamassassin/3.002005/updates_spamassassin_org/20_html_tests.cf" for included file
[26574] dbg: config: read file /var/db/spamassassin/3.002005/updates_spamassassin_org/20_html_tests.cf
[26574] dbg: config: fixed relative path: /var/db/spamassassin/3.002005/updates_spamassassin_org/20_imageinfo.cf
[26574] dbg: config: using "/var/db/spamassassin/3.002005/updates_spamassassin_org/20_imageinfo.cf" for included file
[26574] dbg: config: read file /var/db/spamassassin/3.002005/updates_spamassassin_org/20_imageinfo.cf
[26574] dbg: config: fixed relative path: /var/db/spamassassin/3.002005/updates_spamassassin_org/20_meta_tests.cf
[26574] dbg: config: using "/var/db/spamassassin/3.002005/updates_spamassassin_org/20_meta_tests.cf" for included file
[26574] dbg: config: read file /var/db/spamassassin/3.002005/updates_spamassassin_org/20_meta_tests.cf
[26574] dbg: config: fixed relative path: /var/db/spamassassin/3.002005/updates_spamassassin_org/20_net_tests.cf
[26574] dbg: config: using "/var/db/spamassassin/3.002005/updates_spamassassin_org/20_net_tests.cf" for included file
[26574] dbg: config: read file /var/db/spamassassin/3.002005/updates_spamassassin_org/20_net_tests.cf
[26574] dbg: config: fixed relative path: /var/db/spamassassin/3.002005/updates_spamassassin_org/20_phrases.cf
[26574] dbg: config: using "/var/db/spamassassin/3.002005/updates_spamassassin_org/20_phrases.cf" for included file
[26574] dbg: config: read file /var/db/spamassassin/3.002005/updates_spamassassin_org/20_phrases.cf
[26574] dbg: config: fixed relative path: /var/db/spamassassin/3.002005/updates_spamassassin_org/20_porn.cf
[26574] dbg: config: using "/var/db/spamassassin/3.002005/updates_spamassassin_org/20_porn.cf" for included file
[26574] dbg: config: read file /var/db/spamassassin/3.002005/updates_spamassassin_org/20_porn.cf
[26574] dbg: config: fixed relative path: /var/db/spamassassin/3.002005/updates_spamassassin_org/20_ratware.cf
[26574] dbg: config: using "/var/db/spamassassin/3.002005/updates_spamassassin_org/20_ratware.cf" for included file
[26574] dbg: config: read file /var/db/spamassassin/3.002005/updates_spamassassin_org/20_ratware.cf
[26574] dbg: config: fixed relative path: /var/db/spamassassin/3.002005/updates_spamassassin_org/20_uri_tests.cf
[26574] dbg: config: using "/var/db/spamassassin/3.002005/updates_spamassassin_org/20_uri_tests.cf" for included file
[26574] dbg: config: read file /var/db/spamassassin/3.002005/updates_spamassassin_org/20_uri_tests.cf
[26574] dbg: config: fixed relative path: /var/db/spamassassin/3.002005/updates_spamassassin_org/20_vbounce.cf
[26574] dbg: config: using "/var/db/spamassassin/3.002005/updates_spamassassin_org/20_vbounce.cf" for included file
[26574] dbg: config: read file /var/db/spamassassin/3.002005/updates_spamassassin_org/20_vbounce.cf
[26574] dbg: config: fixed relative path: /var/db/spamassassin/3.002005/updates_spamassassin_org/23_bayes.cf
[26574] dbg: config: using "/var/db/spamassassin/3.002005/updates_spamassassin_org/23_bayes.cf" for included file
[26574] dbg: config: read file /var/db/spamassassin/3.002005/updates_spamassassin_org/23_bayes.cf
[26574] dbg: config: fixed relative path: /var/db/spamassassin/3.002005/updates_spamassassin_org/25_accessdb.cf
[26574] dbg: config: using "/var/db/spamassassin/3.002005/updates_spamassassin_org/25_accessdb.cf" for included file
[26574] dbg: config: read file /var/db/spamassassin/3.002005/updates_spamassassin_org/25_accessdb.cf
[26574] dbg: config: fixed relative path: /var/db/spamassassin/3.002005/updates_spamassassin_org/25_antivirus.cf
[26574] dbg: config: using "/var/db/spamassassin/3.002005/updates_spamassassin_org/25_antivirus.cf" for included file
[26574] dbg: config: read file /var/db/spamassassin/3.002005/updates_spamassassin_org/25_antivirus.cf
[26574] dbg: config: fixed relative path: /var/db/spamassassin/3.002005/updates_spamassassin_org/25_asn.cf
[26574] dbg: config: using "/var/db/spamassassin/3.002005/updates_spamassassin_org/25_asn.cf" for included file
[26574] dbg: config: read file /var/db/spamassassin/3.002005/updates_spamassassin_org/25_asn.cf
[26574] dbg: config: fixed relative path: /var/db/spamassassin/3.002005/updates_spamassassin_org/25_dcc.cf
[26574] dbg: config: using "/var/db/spamassassin/3.002005/updates_spamassassin_org/25_dcc.cf" for included file
[26574] dbg: config: read file /var/db/spamassassin/3.002005/updates_spamassassin_org/25_dcc.cf
[26574] dbg: config: fixed relative path: /var/db/spamassassin/3.002005/updates_spamassassin_org/25_dkim.cf
[26574] dbg: config: using "/var/db/spamassassin/3.002005/updates_spamassassin_org/25_dkim.cf" for included file
[26574] dbg: config: read file /var/db/spamassassin/3.002005/updates_spamassassin_org/25_dkim.cf
[26574] dbg: config: fixed relative path: /var/db/spamassassin/3.002005/updates_spamassassin_org/25_domainkeys.cf
[26574] dbg: config: using "/var/db/spamassassin/3.002005/updates_spamassassin_org/25_domainkeys.cf" for included file
[26574] dbg: config: read file /var/db/spamassassin/3.002005/updates_spamassassin_org/25_domainkeys.cf
[26574] dbg: config: fixed relative path: /var/db/spamassassin/3.002005/updates_spamassassin_org/25_hashcash.cf
[26574] dbg: config: using "/var/db/spamassassin/3.002005/updates_spamassassin_org/25_hashcash.cf" for included file
[26574] dbg: config: read file /var/db/spamassassin/3.002005/updates_spamassassin_org/25_hashcash.cf
[26574] dbg: config: fixed relative path: /var/db/spamassassin/3.002005/updates_spamassassin_org/25_pyzor.cf
[26574] dbg: config: using "/var/db/spamassassin/3.002005/updates_spamassassin_org/25_pyzor.cf" for included file
[26574] dbg: config: read file /var/db/spamassassin/3.002005/updates_spamassassin_org/25_pyzor.cf
[26574] dbg: config: fixed relative path: /var/db/spamassassin/3.002005/updates_spamassassin_org/25_razor2.cf
[26574] dbg: config: using "/var/db/spamassassin/3.002005/updates_spamassassin_org/25_razor2.cf" for included file
[26574] dbg: config: read file /var/db/spamassassin/3.002005/updates_spamassassin_org/25_razor2.cf
[26574] dbg: config: fixed relative path: /var/db/spamassassin/3.002005/updates_spamassassin_org/25_replace.cf
[26574] dbg: config: using "/var/db/spamassassin/3.002005/updates_spamassassin_org/25_replace.cf" for included file
[26574] dbg: config: read file /var/db/spamassassin/3.002005/updates_spamassassin_org/25_replace.cf
[26574] dbg: config: fixed relative path: /var/db/spamassassin/3.002005/updates_spamassassin_org/25_spf.cf
[26574] dbg: config: using "/var/db/spamassassin/3.002005/updates_spamassassin_org/25_spf.cf" for included file
[26574] dbg: config: read file /var/db/spamassassin/3.002005/updates_spamassassin_org/25_spf.cf
[26574] dbg: config: fixed relative path: /var/db/spamassassin/3.002005/updates_spamassassin_org/25_textcat.cf
[26574] dbg: config: using "/var/db/spamassassin/3.002005/updates_spamassassin_org/25_textcat.cf" for included file
[26574] dbg: config: read file /var/db/spamassassin/3.002005/updates_spamassassin_org/25_textcat.cf
[26574] dbg: config: fixed relative path: /var/db/spamassassin/3.002005/updates_spamassassin_org/25_uribl.cf
[26574] dbg: config: using "/var/db/spamassassin/3.002005/updates_spamassassin_org/25_uribl.cf" for included file
[26574] dbg: config: read file /var/db/spamassassin/3.002005/updates_spamassassin_org/25_uribl.cf
[26574] dbg: config: fixed relative path: /var/db/spamassassin/3.002005/updates_spamassassin_org/30_text_de.cf
[26574] dbg: config: using "/var/db/spamassassin/3.002005/updates_spamassassin_org/30_text_de.cf" for included file
[26574] dbg: config: read file /var/db/spamassassin/3.002005/updates_spamassassin_org/30_text_de.cf
[26574] dbg: config: fixed relative path: /var/db/spamassassin/3.002005/updates_spamassassin_org/30_text_fr.cf
[26574] dbg: config: using "/var/db/spamassassin/3.002005/updates_spamassassin_org/30_text_fr.cf" for included file
[26574] dbg: config: read file /var/db/spamassassin/3.002005/updates_spamassassin_org/30_text_fr.cf
[26574] dbg: config: fixed relative path: /var/db/spamassassin/3.002005/updates_spamassassin_org/30_text_it.cf
[26574] dbg: config: using "/var/db/spamassassin/3.002005/updates_spamassassin_org/30_text_it.cf" for included file
[26574] dbg: config: read file /var/db/spamassassin/3.002005/updates_spamassassin_org/30_text_it.cf
[26574] dbg: config: fixed relative path: /var/db/spamassassin/3.002005/updates_spamassassin_org/30_text_nl.cf
[26574] dbg: config: using "/var/db/spamassassin/3.002005/updates_spamassassin_org/30_text_nl.cf" for included file
[26574] dbg: config: read file /var/db/spamassassin/3.002005/updates_spamassassin_org/30_text_nl.cf
[26574] dbg: config: fixed relative path: /var/db/spamassassin/3.002005/updates_spamassassin_org/30_text_pl.cf
[26574] dbg: config: using "/var/db/spamassassin/3.002005/updates_spamassassin_org/30_text_pl.cf" for included file
[26574] dbg: config: read file /var/db/spamassassin/3.002005/updates_spamassassin_org/30_text_pl.cf
[26574] dbg: config: fixed relative path: /var/db/spamassassin/3.002005/updates_spamassassin_org/30_text_pt_br.cf
[26574] dbg: config: using "/var/db/spamassassin/3.002005/updates_spamassassin_org/30_text_pt_br.cf" for included file
[26574] dbg: config: read file /var/db/spamassassin/3.002005/updates_spamassassin_org/30_text_pt_br.cf
[26574] dbg: config: fixed relative path: /var/db/spamassassin/3.002005/updates_spamassassin_org/50_scores.cf
[26574] dbg: config: using "/var/db/spamassassin/3.002005/updates_spamassassin_org/50_scores.cf" for included file
[26574] dbg: config: read file /var/db/spamassassin/3.002005/updates_spamassassin_org/50_scores.cf
[26574] dbg: config: fixed relative path: /var/db/spamassassin/3.002005/updates_spamassassin_org/60_awl.cf
[26574] dbg: config: using "/var/db/spamassassin/3.002005/updates_spamassassin_org/60_awl.cf" for included file
[26574] dbg: config: read file /var/db/spamassassin/3.002005/updates_spamassassin_org/60_awl.cf
[26574] dbg: config: fixed relative path: /var/db/spamassassin/3.002005/updates_spamassassin_org/60_shortcircuit.cf
[26574] dbg: config: using "/var/db/spamassassin/3.002005/updates_spamassassin_org/60_shortcircuit.cf" for included file
[26574] dbg: config: read file /var/db/spamassassin/3.002005/updates_spamassassin_org/60_shortcircuit.cf
[26574] dbg: config: fixed relative path: /var/db/spamassassin/3.002005/updates_spamassassin_org/60_whitelist.cf
[26574] dbg: config: using "/var/db/spamassassin/3.002005/updates_spamassassin_org/60_whitelist.cf" for included file
[26574] dbg: config: read file /var/db/spamassassin/3.002005/updates_spamassassin_org/60_whitelist.cf
[26574] dbg: config: fixed relative path: /var/db/spamassassin/3.002005/updates_spamassassin_org/60_whitelist_dk.cf
[26574] dbg: config: using "/var/db/spamassassin/3.002005/updates_spamassassin_org/60_whitelist_dk.cf" for included file
[26574] dbg: config: read file /var/db/spamassassin/3.002005/updates_spamassassin_org/60_whitelist_dk.cf
[26574] dbg: config: fixed relative path: /var/db/spamassassin/3.002005/updates_spamassassin_org/60_whitelist_dkim.cf
[26574] dbg: config: using "/var/db/spamassassin/3.002005/updates_spamassassin_org/60_whitelist_dkim.cf" for included file
[26574] dbg: config: read file /var/db/spamassassin/3.002005/updates_spamassassin_org/60_whitelist_dkim.cf
[26574] dbg: config: fixed relative path: /var/db/spamassassin/3.002005/updates_spamassassin_org/60_whitelist_spf.cf
[26574] dbg: config: using "/var/db/spamassassin/3.002005/updates_spamassassin_org/60_whitelist_spf.cf" for included file
[26574] dbg: config: read file /var/db/spamassassin/3.002005/updates_spamassassin_org/60_whitelist_spf.cf
[26574] dbg: config: fixed relative path: /var/db/spamassassin/3.002005/updates_spamassassin_org/60_whitelist_subject.cf
[26574] dbg: config: using "/var/db/spamassassin/3.002005/updates_spamassassin_org/60_whitelist_subject.cf" for included file
[26574] dbg: config: read file /var/db/spamassassin/3.002005/updates_spamassassin_org/60_whitelist_subject.cf
[26574] dbg: config: fixed relative path: /var/db/spamassassin/3.002005/updates_spamassassin_org/72_active.cf
[26574] dbg: config: using "/var/db/spamassassin/3.002005/updates_spamassassin_org/72_active.cf" for included file
[26574] dbg: config: read file /var/db/spamassassin/3.002005/updates_spamassassin_org/72_active.cf
[26574] dbg: config: fixed relative path: /var/db/spamassassin/3.002005/updates_spamassassin_org/72_removed.cf
[26574] dbg: config: using "/var/db/spamassassin/3.002005/updates_spamassassin_org/72_removed.cf" for included file
[26574] dbg: config: read file /var/db/spamassassin/3.002005/updates_spamassassin_org/72_removed.cf
[26574] dbg: config: fixed relative path: /var/db/spamassassin/3.002005/updates_spamassassin_org/72_scores.cf
[26574] dbg: config: using "/var/db/spamassassin/3.002005/updates_spamassassin_org/72_scores.cf" for included file
[26574] dbg: config: read file /var/db/spamassassin/3.002005/updates_spamassassin_org/72_scores.cf
[26574] dbg: config: fixed relative path: /var/db/spamassassin/3.002005/updates_spamassassin_org/80_additional.cf
[26574] dbg: config: using "/var/db/spamassassin/3.002005/updates_spamassassin_org/80_additional.cf" for included file
[26574] dbg: config: read file /var/db/spamassassin/3.002005/updates_spamassassin_org/80_additional.cf
[26574] info: config: failed to parse line, skipping, in "/usr/local/etc/mail/spamassassin/local.cf": use_dcc 1
[26574] info: config: failed to parse, now a plugin, skipping, in "/usr/local/etc/mail/spamassassin/local.cf": ok_languages ru en
[26574] dbg: rules: __MO_OL_9B90B merged duplicates: __MO_OL_C65FA
[26574] dbg: rules: __XM_OL_22B61 merged duplicates: __XM_OL_A842E
[26574] dbg: rules: __MO_OL_07794 merged duplicates: __MO_OL_8627E __MO_OL_F3B05
[26574] dbg: rules: __JM_REACTOR_DATE merged duplicates: __RATWARE_0_TZ_DATE
[26574] dbg: rules: __XM_OL_07794 merged duplicates: __XM_OL_25340 __XM_OL_3857F __XM_OL_4F240 __XM_OL_58CB5 __XM_OL_6554A __XM_OL_812FF __XM_OL_C65FA __XM_OL_CF0C0 __XM_OL_F475E __XM_OL_F6D01
[26574] dbg: rules: FH_MSGID_01C67 merged duplicates: __MSGID_VGA
[26574] dbg: rules: FS_NEW_SOFT_UPLOAD merged duplicates: HS_SUBJ_NEW_SOFTWARE
[26574] dbg: rules: __FH_HAS_XMSMAIL merged duplicates: __HAS_MSMAIL_PRI
[26574] dbg: rules: __MO_OL_015D5 merged duplicates: __MO_OL_6554A
[26574] dbg: rules: __XM_OL_015D5 merged duplicates: __XM_OL_4BF4C __XM_OL_4EEDB __XM_OL_5B79A __XM_OL_9B90B __XM_OL_ADFF7 __XM_OL_B30D1 __XM_OL_B4B40 __XM_OL_BC7E6 __XM_OL_F3B05 __XM_OL_FF5C8
[26574] dbg: rules: __MO_OL_91287 merged duplicates: __MO_OL_B30D1 __MO_OL_CF0C0
[26574] dbg: rules: KAM_STOCKOTC merged duplicates: KAM_STOCKTIP15 KAM_STOCKTIP20 KAM_STOCKTIP21 KAM_STOCKTIP4 KAM_STOCKTIP6
[26574] dbg: rules: __MO_OL_22B61 merged duplicates: __MO_OL_4F240 __MO_OL_ADFF7
[26574] dbg: rules: __MO_OL_812FF merged duplicates: __MO_OL_BC7E6
[26574] dbg: rules: __MO_OL_25340 merged duplicates: __MO_OL_4EEDB __MO_OL_7533E
[26574] dbg: rules: __MO_OL_58CB5 merged duplicates: __MO_OL_B4B40
[26574] dbg: rules: __DOS_HAS_ANY_URI merged duplicates: __HAS_ANY_URI
[26574] dbg: rules: __XM_OL_C9068 merged duplicates: __XM_OL_EF20B
[26574] dbg: rules: AXB_RCVD_ZOOBSEND merged duplicates: BROKEN_RATWARE_BOM CTYPE_001C_A DEAR_HOMEOWNER DIV_CENTER_A_HREF DRUG_RA_PRICE FM_DDDD_TIMES_2 FM_SEX_HOSTDDDD HG_HORMONE HS_PHARMA_1 HS_UPLOADED_SOFTWARE OEBOUND RCVD_IN_DSBL STOX_RCVD_N_NN_N URIBL_RHS_ABUSE URIBL_RHS_BOGUSMX URIBL_RHS_DSN URIBL_RHS_POST URIBL_RHS_TLD_WHOIS URIBL_RHS_WHOIS URIBL_XS_SURBL URI_L_PHP XMAILER_MIMEOLE_OL_5E7ED XMAILER_MIMEOLE_OL_C7C33 XMAILER_MIMEOLE_OL_D03AB X_LIBRARY YOUR_CRD_RATING
[26574] dbg: rules: __MO_OL_72641 merged duplicates: __MO_OL_A842E
[26574] dbg: rules: __MO_OL_F475E merged duplicates: __MO_OL_FF5C8
[26574] dbg: rules: __MO_OL_4BF4C merged duplicates: __MO_OL_F6D01
[26574] dbg: conf: finish parsing
[26574] dbg: plugin: Mail::SpamAssassin::Plugin::ReplaceTags=HASH(0x8b69e14) implements 'finish_parsing_end', priority 0
[26574] dbg: replacetags: replacing tags
[26574] dbg: replacetags: done replacing tags
[26574] dbg: bayes: tie-ing to DB file R/O /root/.spamassassin/bayes_toks
[26574] dbg: bayes: tie-ing to DB file R/O /root/.spamassassin/bayes_seen
[26574] dbg: bayes: found bayes db version 3
[26574] dbg: bayes: DB journal sync: last sync: 0
[26574] dbg: bayes: not available for scanning, only 2 ham(s) in bayes DB < 200
[26574] dbg: bayes: untie-ing
[26574] dbg: config: score set 1 chosen.
[26574] dbg: learn: initializing learner
[26574] dbg: bayes: bayes journal sync starting
[26574] dbg: bayes: bayes journal sync completed
[26574] dbg: bayes: expiry starting
[26574] dbg: locker: safe_lock: created /root/.spamassassin/bayes.mutex
[26574] dbg: locker: safe_lock: trying to get lock on /root/.spamassassin/bayes with 300 timeout
[26574] dbg: locker: safe_lock: link to /root/.spamassassin/bayes.mutex: link ok
[26574] dbg: bayes: tie-ing to DB file R/W /root/.spamassassin/bayes_toks
[26574] dbg: bayes: tie-ing to DB file R/W /root/.spamassassin/bayes_seen
[26574] dbg: bayes: found bayes db version 3
[26574] dbg: locker: refresh_lock: refresh /root/.spamassassin/bayes.mutex
[26574] dbg: bayes: DB expiry: tokens in DB: 26721, Expiry max size: 150000, Oldest atime: 1263293320, Newest atime: 1268201113, Last expire: 0, Current time: 1268210593
[26574] dbg: bayes: expiry completed
[26574] dbg: bayes: untie-ing
[26574] dbg: bayes: files locked, now unlocking lock
[26574] dbg: locker: safe_unlock: unlocked /root/.spamassassin/bayes.mutex
Собственно, самому не до конца получается разобраться в этой каше.... Обучается ли? Правильно ли настроен? как я понимаю не работают некоторые опции в конфиге:

Код: Выделить всё

[26574] info: config: failed to parse line, skipping, in "/usr/local/etc/mail/spamassassin/local.cf": use_dcc 1
[26574] info: config: failed to parse, now a plugin, skipping, in "/usr/local/etc/mail/spamassassin/local.cf": ok_languages ru en
некоторые строки в local.cf "украл" с этого форума... :

Код: Выделить всё

skip_rbl_checks 0
use_razor2 1
use_dcc 1
use_pyzor 1

##############################################
ok_languages ru en
ok_locales ru en
report_charset windows-1251
##############################################
score FROM_ILLEGAL_CHARS 1.5
score HEAD_ILLEGAL_CHARS 1.5
score SUBJ_ILLEGAL_CHARS 1.5
score FORGED_IMS_TAGS 0.5
#
##############################################

score BAYES_00 -9.8
score BAYES_20 -2.856
score BAYES_40 -0.002
score BAYES_60 0.002
score BAYES_80 3.314
score BAYES_99 10.8



ОЧЕНЬ ПРОШУ помочь разобраться мне с этим!
Заранее благодарен,
Александр

P.S. Забыл добавить что в кроне (как и описано в статье по установке) есть периодичное обновление:

Код: Выделить всё

* 1 * * *  /usr/local/bin/sa-update --nogpg && /usr/local/etc/rc.d/sa-spamd restart > /dev/null

Хостинговая компания Host-Food.ru
Хостинг HostFood.ru
 

Услуги хостинговой компании Host-Food.ru

Хостинг HostFood.ru

Тарифы на хостинг в России, от 12 рублей: https://www.host-food.ru/tariffs/hosting/
Тарифы на виртуальные сервера (VPS/VDS/KVM) в РФ, от 189 руб.: https://www.host-food.ru/tariffs/virtualny-server-vps/
Выделенные сервера, Россия, Москва, от 2460 рублей (8 CPU, 8Gb RAM, 2x500Gb HDD, RAID 3ware 9750):
https://www.host-food.ru/tariffs/vydelennyi-server-ds/
Недорогие домены в популярных зонах: https://www.host-food.ru/domains/

Аватара пользователя
Alex Keda
стреляли...
Сообщения: 35066
Зарегистрирован: 2004-10-18 14:25:19
Откуда: Made in USSR
Контактная информация:

Re: EXIM + SpamAssassin - помогите разобраться

Непрочитанное сообщение Alex Keda » 2010-03-10 14:07:28

Код: Выделить всё

* 1 * * *
не нравиться мне эта запись
Убей их всех! Бог потом рассортирует...

UDAR_nick
рядовой
Сообщения: 12
Зарегистрирован: 2009-12-22 11:27:22

Re: EXIM + SpamAssassin - помогите разобраться

Непрочитанное сообщение UDAR_nick » 2010-03-10 14:10:44

lissyara писал(а):

Код: Выделить всё

* 1 * * *
не нравиться мне эта запись
чем именно?

UDAR_nick
рядовой
Сообщения: 12
Зарегистрирован: 2009-12-22 11:27:22

Re: EXIM + SpamAssassin - помогите разобраться

Непрочитанное сообщение UDAR_nick » 2010-03-11 17:50:03

ну товарищи! Ну родимые! ну помогите разобраться!!! :st:

Меня тут товарищ спросил: "а ты с Байесом ставил?"
должно ли быть упоминание о Байесе в выводе:

Код: Выделить всё

exim -bV
Exim version 4.71 #0 (FreeBSD 7.2) built 29-Dec-2009 12:14:53
Copyright (c) University of Cambridge, 1995 - 2007
Probably Berkeley DB version 1.8x (native mode)
Support for: crypteq iconv() IPv6 use_setclassresources PAM Perl Expand_dlfunc OpenSSL Content_Scanning DKIM Old_Demime
Lookups: lsearch wildlsearch nwildlsearch iplsearch cdb dbm dbmnz dnsdb dsearch mysql nis nis0 passwd
Authenticators: cram_md5 dovecot plaintext spa
Routers: accept dnslookup ipliteral manualroute queryprogram redirect
Transports: appendfile/maildir/mailstore/mbx autoreply lmtp pipe smtp
Fixed never_users: 0
Size of off_t: 8
OpenSSL compile-time version: OpenSSL 0.9.8e 23 Feb 2007
OpenSSL runtime version: OpenSSL 0.9.8e 23 Feb 2007
Configuration file is /usr/local/etc/exim/configure