* [Comm] Проблема с sa-learn (spamassassin)
@ 2005-06-03 2:26 Pavel Stoliarov
2005-06-03 3:47 ` Pavel Stoliarov
2005-06-03 7:28 ` Alexey Morsov
0 siblings, 2 replies; 4+ messages in thread
From: Pavel Stoliarov @ 2005-06-03 2:26 UTC (permalink / raw)
To: community
Всем привет.
Имею Master2.4 , postfix + amavisd + clamav + spamassassin-3.0.0-alt1.pre3
Пытаюсь обучить spamassassin , в каталоге /var/spool/spam лежат письма ,
которые я считаю спамом :
sa-learn -D 3 --spam -C /etc/mail/spamassassin --showdots
--dir /var/spool/spam/
В итоге получаю :
debug: SpamAssassin version 3.0.0-pre3
debug: Score set 0 chosen.
debug: running in taint mode? yes
debug: Running in taint mode, removing unsafe env vars, and resetting PATH
debug: PATH included '/root/bin', which doesn't exist, dropping.
debug: PATH included '/sbin', keeping.
debug: PATH included '/usr/sbin', keeping.
debug: PATH included '/usr/local/sbin', keeping.
debug: PATH included '/bin', keeping.
debug: PATH included '/usr/bin', keeping.
debug: PATH included '/usr/local/bin', keeping.
debug: PATH included '/usr/X11R6/bin', keeping.
debug: Final PATH set
to: /sbin:/usr/sbin:/usr/local/sbin:/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
debug: using "/etc/mail/spamassassin/init.pre" for site rules init.pre
debug: config: read file /etc/mail/spamassassin/init.pre
debug: using "/etc/mail/spamassassin" for default rules dir
debug: config: read file /etc/mail/spamassassin/local.cf
debug: using "/etc/mail/spamassassin" for site rules dir
debug: config: read file /etc/mail/spamassassin/local.cf
debug: using "/root/.spamassassin/user_prefs" for user prefs file
debug: config: read file /root/.spamassassin/user_prefs
debug: plugin: loading Mail::SpamAssassin::Plugin::URIDNSBL from @INC
debug: plugin: registered Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x847f1f8)
debug: plugin: loading Mail::SpamAssassin::Plugin::Hashcash from @INC
debug: plugin: registered Mail::SpamAssassin::Plugin::Hashcash=HASH(0x8b380c0)
debug: plugin: loading Mail::SpamAssassin::Plugin::SPF from @INC
debug: plugin: registered Mail::SpamAssassin::Plugin::SPF=HASH(0x8b452ac)
debug: plugin: Mail::SpamAssassin::Plugin::Hashcash=HASH(0x8b380c0) implements
'parse_config'
debug: plugin: Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x847f1f8) implements
'parse_config'
debug: Failed to parse line in SpamAssassin configuration, skipping:
rewrite_subject 0
debug: Failed to parse line in SpamAssassin configuration, skipping:
subject_tag [* SPAM? *]
debug: Failed to parse line in SpamAssassin configuration, skipping:
use_terse_report 0
debug: Failed to parse line in SpamAssassin configuration, skipping:
auto_learn 1
debug: Failed to parse line in SpamAssassin configuration, skipping:
rewrite_subject 0
debug: Failed to parse line in SpamAssassin configuration, skipping:
subject_tag [* SPAM? *]
debug: Failed to parse line in SpamAssassin configuration, skipping:
use_terse_report 0
debug: Failed to parse line in SpamAssassin configuration, skipping:
auto_learn 1
debug: bayes: 13762 tie-ing to DB file R/O /var/spool/spamassassin/bayes_toks
debug: bayes: 13762 tie-ing to DB file R/O /var/spool/spamassassin/bayes_seen
debug: bayes: found bayes db version 3
debug: bayes: Not available for scanning, only 27 spam(s) in Bayes DB < 200
debug: bayes: 13762 untie-ing
debug: bayes: 13762 untie-ing db_toks
debug: bayes: 13762 untie-ing db_seen
debug: Score set 0 chosen.
debug: Initialising learner
debug: Syncing Bayes and expiring old tokens...
debug: lock: 13762 created /var/spool/spamassassin/bayes.lock.gate.13762
debug: lock: 13762 trying to get lock on /var/spool/spamassassin/bayes with 0
retries
debug: lock: 13762 trying to get lock on /var/spool/spamassassin/bayes with 1
retries
debug: lock: 13762 trying to get lock on /var/spool/spamassassin/bayes with 2
retries
......
......
debug: lock: 13762 trying to get lock on /var/spool/spamassassin/bayes with 29
retries
debug: lock: 13762 trying to get lock on /var/spool/spamassassin/bayes with 30
retries
......
......
И так до безконечности пока не прервешь
В чем может быть проблема ?
--
Best regards
Pavel Stoliarov
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Comm] Проблема с sa-learn (spamassassin)
2005-06-03 2:26 [Comm] Проблема с sa-learn (spamassassin) Pavel Stoliarov
@ 2005-06-03 3:47 ` Pavel Stoliarov
2005-06-03 6:25 ` Slava Dubrovskiy
2005-06-03 7:28 ` Alexey Morsov
1 sibling, 1 reply; 4+ messages in thread
From: Pavel Stoliarov @ 2005-06-03 3:47 UTC (permalink / raw)
To: community
В сообщении от Пятница 03 Июнь 2005 07:26 Pavel Stoliarov написал(a):
Помоему разобрался
> debug: bayes: Not available for scanning, only 27 spam(s) in Bayes DB < 200
т.е. нужно не менее 200 писем содержащих спам, для анализа, верно ?
--
Best regards
Pavel Stoliarov
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Comm] Проблема с sa-learn (spamassassin)
2005-06-03 3:47 ` Pavel Stoliarov
@ 2005-06-03 6:25 ` Slava Dubrovskiy
0 siblings, 0 replies; 4+ messages in thread
From: Slava Dubrovskiy @ 2005-06-03 6:25 UTC (permalink / raw)
To: community
Pavel Stoliarov пишет:
>Помоему разобрался
>
>
>>debug: bayes: Not available for scanning, only 27 spam(s) in Bayes DB < 200
>>
>>
>
>т.е. нужно не менее 200 писем содержащих спам, для анализа, верно ?
>
>
Да вроде нет, я иногда и по одному скармливаю.
# sa-learn --showdots --mbox --spam /home/slava/mail/SPAM
--
С уважением,
Дубровский Вячеслав.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Comm] Проблема с sa-learn (spamassassin)
2005-06-03 2:26 [Comm] Проблема с sa-learn (spamassassin) Pavel Stoliarov
2005-06-03 3:47 ` Pavel Stoliarov
@ 2005-06-03 7:28 ` Alexey Morsov
1 sibling, 0 replies; 4+ messages in thread
From: Alexey Morsov @ 2005-06-03 7:28 UTC (permalink / raw)
To: community
Pavel Stoliarov wrote:
> sa-learn -D 3 --spam -C /etc/mail/spamassassin --showdots
> --dir /var/spool/spam/
>
> В итоге получаю :
попробуй sudo sa-learn --spam --mbox /your/spam/folder/*
--
Всего наилучшего,
Системный Администратор ЗАО "ИК "РИКОМ-ТРАСТ"
Алексей Морсов
ICQ: 196766290
Jabber: Samurai@jabber.pibhe.com
http://www.ricom.ru
http://www.fondmarket.ru
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2005-06-03 7:28 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-06-03 2:26 [Comm] Проблема с sa-learn (spamassassin) Pavel Stoliarov
2005-06-03 3:47 ` Pavel Stoliarov
2005-06-03 6:25 ` Slava Dubrovskiy
2005-06-03 7:28 ` Alexey Morsov
ALT Linux Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git