spamassassin autolearn не хочет рабоать

Статус
В этой теме нельзя размещать новые ответы.

mikie

Постоялец
Регистрация
10 Фев 2007
Сообщения
107
Реакции
5
Настроил включил спамассассин, вот конфиг юзвера
cat /home/admin/.spamassassin/user_prefs
required_score 6
rewrite_header subject *****SPAM*****
# Enable Bayes auto-learning
bayes_auto_learn 1
bayes_auto_learn_threshold_nonspam -2
bayes_auto_learn_threshold_spam 9
tflags learn
report_safe 1
bayes_auto_expire 0

вот основной конфиг
cat /usr/share/spamassassin/10_default_prefs.cf

# SpamAssassin basic config file
#
# Please don't modify this file as your changes will be overwritten with
# the next update. Use /etc/mail/spamassassin/local.cf instead.
# See 'perldoc Mail::SpamAssassin::Conf' for details.
#
# <@LICENSE>
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to you under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at:
#
# Для просмотра ссылки Войди или Зарегистрируйся
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# </@LICENSE>
#
###########################################################################

# Default template. Try to keep it under 78 columns (inside the the dots below).
# ........................................................................
clear_report_template
report Spam detection software, running on the system "_HOSTNAME_", has
report identified this incoming email as possible spam. The original message
report has been attached to this so you can view it (if it isn't spam) or label
report similar future email. If you have any questions, see
report _CONTACTADDRESS_ for details.
report
report Content preview: _PREVIEW_
report
report Content analysis details: (_SCORE_ points, _REQD_ required)
report
report " pts rule name description"
report ---- ---------------------- -------------------------------------------- ------
report _SUMMARY_

# ........................................................................

# A 'contact address' users should contact for more info. (replaces
# _CONTACTADDRESS_ above if present)
report_contact the administrator of that system

###########################################################################

# Unsafe-for-viewing message report template.
#
# .................................................................. ....
clear_unsafe_report_template
unsafe_report The original message was not completely plain text, and may be uns afe to
unsafe_report open with some email clients; in particular, it may contain a viru s,
unsafe_report or confirm that your address can receive spam. If you wish to vie w
unsafe_report it, it may be safer to save it to a file and open it with an edito r.
# .................................................................. ....

###########################################################################
# Database configuration options.
#
# user_scores_dsn MUST be in the form:
# DBI:databasetype:databasename:hostname:port
# ex. DBI:mysql:spamassassin:localhost
#
# user_scores_sql_username is the authorized username to connect to DSN
# user_scores_sql_password is the password for the database username

#user_scores_dsn DBI:mysql:spamassassin:localhost
#user_scores_sql_username spam
#user_scores_sql_password spamfilter

##########################################################################
# Headers to be added to mail (can be overriden by users in
# ~/.spamassassin/user_prefs)
# Make sure the header stays entirely on one line here

clear_headers

#X-Spam-Checker-Version: SpamAssassin 2.60-cvs (1.188-2003-05-24-exp)
add_header all Checker-Version SpamAssassin _VERSION_ (_SUBVERSION_) on _HOSTNAM E_

#X-Spam-Flag: YES
add_header spam Flag _YESNOCAPS_

#X-Spam-Level: *************
add_header all Level _STARS(*)_

#X-Spam-Status: Yes, score=14.0 required=5.0 tests=BAYES_99,CALL_FREE
# DATE_IN_PAST_12_24,DCC_CHECK,DRASTIC_REDUCED,FROM_HAS_MIXED_NUMS
# FROM_HAS_MIXED_NUMS3,HOME_EMPLOYMENT,INVALID_DATE,INVALID_MSGID
# LINES_OF_YELLING,MSGID_HAS_NO_AT,NO_REAL_NAME,ONCE_IN_LIFETIME
# UNDISC_RECIPS autolearn=spam version=2.60-cvs
add_header all Status "_YESNO_, score=_SCORE_ required=_REQD_ tests=_TESTS_ auto learn=_AUTOLEARN_ version=_VERSION_"

###########################################################################
# Default prefs values: users can override these in their
# ~/.spamassassin/user_prefs files.

# How many points before a mail is considered spam.
required_score 5

# Mail using locales used in these country codes will not be marked
# as being possibly spam in a foreign language.
ok_locales all

# Mail using languages used in these country codes will not be marked
# as being possibly spam in a foreign language. This is an expensive
# classification, so it is is disabled in init.pre by default.
ifplugin Mail::SpamAssassin::plugin::TextCat
ok_languages all
endif # Mail::SpamAssassin::plugin::TextCat

# Mail which scores outside this range will be fed back into SpamAssassin's
# learning system automatically, to train the Bayesian scanner.
ifplugin Mail::SpamAssassin::plugin::AutoLearnThreshold
bayes_auto_learn_threshold_nonspam 0.1
bayes_auto_learn_threshold_spam 8.0
endif # Mail::SpamAssassin::plugin::AutoLearnThreshold

# Set this to 0 to turn off auto-learning.
bayes_auto_learn 1

# report_safe controls the markup of spam. If you set it to 0, the message
# body of spam messages will not be modified
report_safe 1

А в заголовках писем всеравно пишет
X-Spam-Status: No, score=4.0 required=6.0 tests=AWL,BAYES_50,MIME_BASE64_TEXT, URIBL_JP_SURBL autolearn=no version=3.2.5
 
exim CentOS5, DA
 
вы баес изначально обучили 200-ми хорошими и плохими письмами?
- ему изначальную базу нужно составить.

настройки для баеса:

auto_learn 1
use_bayes 1
use_bayes_rules 1
bayes_learn_to_journal 1
bayes_auto_learn 1
bayes_auto_learn_threshold_spam 9.0
bayes_auto_learn_threshold_nospam -2
bayes_path /var/lib/nobody/.spamassassin #ваш путь
bayes_min_ham_num 1
bayes_min_spam_num 1
bayes_journal_max_size 0
bayes_expiry_max_db_size 200000
bayes_file_mode 0666
 
по мере поступления спама скармливаю ему, уже где-то 2000 штук скормил в течении недели, и хороших тоже около тыщи.

Добавлено через 44 минуты
УРЯ !!!!!!!! заработало :yahoo:

X-Spam-Status: Yes, score=7.8 required=6.0 tests=BAYES_80,
DYN_RDNS_SHORT_HELO_HTML,HTML_FONT_SIZE_LARGE,HTML_MESSAGE,MIME_HTML_ONLY,
RCVD_IN_PBL,RCVD_IN_SORBS_DUL,RDNS_DYNAMIC,RU_SPAM_KOI8 autolearn=spam
version=3.2.5
 
Статус
В этой теме нельзя размещать новые ответы.
Назад
Сверху