При прохождении письма через фильтр, теги пишутся. Но тесты не проходятся.Return-Path: <crystal@yandex.ru>
X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on gate.ptslab.int
X-Spam-Status: No, score=0.0 required=5.0 tests=none testsscore=none
scorebayes=0.5 autolearn=ham version=3.2.5
Delivered-To: gayunovdv@testlab.ru
Вот лог spamd:
Thu Oct 2 19:41:00 2008 [23654] dbg: prefork: ordered 23657 to accept
Thu Oct 2 19:41:00 2008 [23654] dbg: prefork: sysread(9) not ready, wait max 300 secs
Thu Oct 2 19:41:00 2008 [23657] info: spamd: got connection over /var/run/spamd/spamd.sock
Thu Oct 2 19:41:00 2008 [23657] dbg: conf: finish parsing
Thu Oct 2 19:41:00 2008 [23657] dbg: replacetags: replacing tags
Thu Oct 2 19:41:00 2008 [23657] dbg: replacetags: done replacing tags
Thu Oct 2 19:41:00 2008 [23657] dbg: info: user has changed
Thu Oct 2 19:41:00 2008 [23657] dbg: bayes: tie-ing to DB file R/O /home/spamd/.spamassassin/bayes_toks
Thu Oct 2 19:41:00 2008 [23657] dbg: bayes: tie-ing to DB file R/O /home/spamd/.spamassassin/bayes_seen
Thu Oct 2 19:41:00 2008 [23657] dbg: bayes: found bayes db version 3
Thu Oct 2 19:41:00 2008 [23657] dbg: bayes: DB journal sync: last sync: 0
Thu Oct 2 19:41:00 2008 [23657] dbg: config: score set 3 chosen.
Thu Oct 2 19:41:00 2008 [23657] dbg: spamd: running as uid 1003
Thu Oct 2 19:41:00 2008 [23657] dbg: message: main message type: text/plain
Thu Oct 2 19:41:00 2008 [23657] info: spamd: processing message <352031222936843@webmail35.yandex.ru> for spamd:1003
Thu Oct 2 19:41:00 2008 [23657] dbg: conf: trusted_networks are not configured; it is recommended that you configure trusted_networks manually
Thu Oct 2 19:41:00 2008 [23657] dbg: received-header: parsed as [ ip=213.180.223.184 rdns=webmail35.yandex.ru helo=webmail35.yandex.ru by=mail.ptslab.ru ident= envfrom= intl=0 id=93710223619 auth= msa=0 ]
Thu Oct 2 19:41:00 2008 [23657] dbg: received-header: do not trust any hosts from here on
Thu Oct 2 19:41:00 2008 [23657] dbg: received-header: relay 213.180.223.184 trusted? no internal? no msa? no
Thu Oct 2 19:41:00 2008 [23657] dbg: received-header: unparseable: from YAMAIL (webmail35) by mail.yandex.ru id S3047457AbYJBIkn for <gayunovdv@testlab.ru>; Thu, 2 Oct 2008 12:40:43 +0400
Thu Oct 2 19:41:00 2008 [23657] dbg: received-header: parsed as [ ip=82.194.167.210 rdns= helo=!82.194.167.210! by=mail.yandex.ru ident= envfrom= intl=0 id= auth=HTTP msa=0 ]
Thu Oct 2 19:41:00 2008 [23657] dbg: received-header: relay 82.194.167.210 trusted? no internal? no msa? no
Thu Oct 2 19:41:00 2008 [23657] dbg: metadata: X-Spam-Relays-Trusted:
Thu Oct 2 19:41:00 2008 [23657] dbg: metadata: X-Spam-Relays-Untrusted: [ ip=213.180.223.184 rdns=webmail35.yandex.ru helo=webmail35.yandex.ru by=mail.ptslab.ru ident= envfrom= intl=0 id=93710223619 auth= msa=0 ] [ ip=82.194.167.210 rdns= helo=!82.194.167.210! by=mail.yandex.ru ident= envfrom= intl=0 id= auth=HTTP msa=0 ]
Thu Oct 2 19:41:00 2008 [23657] dbg: metadata: X-Spam-Relays-Internal:
Thu Oct 2 19:41:00 2008 [23657] dbg: metadata: X-Spam-Relays-External: [ ip=213.180.223.184 rdns=webmail35.yandex.ru helo=webmail35.yandex.ru by=mail.ptslab.ru ident= envfrom= intl=0 id=93710223619 auth= msa=0 ] [ ip=82.194.167.210 rdns= helo=!82.194.167.210! by=mail.yandex.ru ident= envfrom= intl=0 id= auth=HTTP msa=0 ]
Thu Oct 2 19:41:00 2008 [23657] dbg: message: ---- MIME PARSER START ----
Thu Oct 2 19:41:00 2008 [23657] dbg: message: parsing normal part
Thu Oct 2 19:41:00 2008 [23657] dbg: message: ---- MIME PARSER END ----
Thu Oct 2 19:41:00 2008 [23657] dbg: message: decoding other encoding type (8bit), ignoring
Thu Oct 2 19:41:00 2008 [23657] dbg: dns: is_dns_available() last checked 802.0 seconds ago; re-checking
Thu Oct 2 19:41:00 2008 [23654] dbg: prefork: child 23657: entering state 2
Thu Oct 2 19:41:00 2008 [23654] dbg: prefork: new lowest idle kid: 23659
Thu Oct 2 19:41:00 2008 [23657] dbg: dns: no ipv6
Thu Oct 2 19:41:00 2008 [23657] dbg: dns: is Net::DNS::Resolver available? yes
Thu Oct 2 19:41:00 2008 [23657] dbg: dns: Net::DNS version: 0.63
Thu Oct 2 19:41:00 2008 [23657] dbg: dns: testing resolver nameservers: 127.0.0.1
Thu Oct 2 19:41:00 2008 [23657] dbg: dns: trying (3) msn.com...
Thu Oct 2 19:41:00 2008 [23657] dbg: dns: looking up NS for 'msn.com'
Thu Oct 2 19:41:00 2008 [23657] dbg: dns: NS lookup of msn.com using 127.0.0.1 succeeded => DNS available (set dns_available to override)
Thu Oct 2 19:41:00 2008 [23657] dbg: dns: name server: 127.0.0.1, LocalAddr: 0.0.0.0
Thu Oct 2 19:41:00 2008 [23657] dbg: dns: resolver socket rx buffer size is 110592 bytes
Thu Oct 2 19:41:00 2008 [23657] dbg: dns: NS list: 127.0.0.1
Thu Oct 2 19:41:00 2008 [23657] dbg: dns: name server: 127.0.0.1, LocalAddr: 0.0.0.0
Thu Oct 2 19:41:00 2008 [23657] dbg: dns: resolver socket rx buffer size is 110592 bytes
Thu Oct 2 19:41:00 2008 [23657] dbg: dns: is DNS available? 1
Thu Oct 2 19:41:00 2008 [23657] dbg: uridnsbl: domains to query:
Thu Oct 2 19:41:00 2008 [23657] dbg: dns: harvest_dnsbl_queries
Thu Oct 2 19:41:00 2008 [23657] dbg: learn: auto-learn: currently using scoreset 3, recomputing score based on scoreset 1
Thu Oct 2 19:41:00 2008 [23657] dbg: learn: auto-learn: message score: 0, computed score for autolearn: 0
Thu Oct 2 19:41:00 2008 [23657] dbg: learn: auto-learn? ham=0.1, spam=12, body-points=0, head-points=0, learned-points=0
Thu Oct 2 19:41:00 2008 [23657] dbg: learn: auto-learn? yes, ham (0 < 0.1)
Thu Oct 2 19:41:00 2008 [23657] dbg: learn: initializing learner
Thu Oct 2 19:41:00 2008 [23657] dbg: learn: learning ham
Thu Oct 2 19:41:00 2008 [23657] dbg: eval: all '*From' addrs: crystal@yandex.ru
Thu Oct 2 19:41:00 2008 [23657] dbg: eval: all '*To' addrs: gayunovdv@testlab.ru
Thu Oct 2 19:41:00 2008 [23657] dbg: locker: safe_lock: created /home/spamd/.spamassassin/bayes.lock.gate.ptslab.int.23657
Thu Oct 2 19:41:00 2008 [23657] dbg: locker: safe_lock: trying to get lock on /home/spamd/.spamassassin/bayes with 0 retries
Thu Oct 2 19:41:00 2008 [23657] dbg: locker: safe_lock: link to /home/spamd/.spamassassin/bayes.lock: link ok
Thu Oct 2 19:41:00 2008 [23657] dbg: bayes: tie-ing to DB file R/W /home/spamd/.spamassassin/bayes_toks
Thu Oct 2 19:41:00 2008 [23657] dbg: bayes: tie-ing to DB file R/W /home/spamd/.spamassassin/bayes_seen
Thu Oct 2 19:41:00 2008 [23657] dbg: bayes: found bayes db version 3
Thu Oct 2 19:41:00 2008 [23657] dbg: bayes: learned '415c951568f7a968b00910c36dc217847baa8af5@sa_generated', atime: 1222936847
Thu Oct 2 19:41:00 2008 [23657] dbg: bayes: untie-ing
Thu Oct 2 19:41:00 2008 [23657] dbg: bayes: files locked, now unlocking lock
Thu Oct 2 19:41:00 2008 [23657] dbg: locker: safe_unlock: unlink /home/spamd/.spamassassin/bayes.lock
Thu Oct 2 19:41:00 2008 [23657] dbg: learn: initializing learner
Thu Oct 2 19:41:00 2008 [23657] dbg: check: is spam? score=0 required=5
Thu Oct 2 19:41:00 2008 [23657] dbg: check: tests=
Thu Oct 2 19:41:00 2008 [23657] dbg: check: subtests=
Thu Oct 2 19:41:00 2008 [23657] info: spamd: clean message (0.0/5.0) for spamd:1003 in 0.2 seconds, 1472 bytes.
Thu Oct 2 19:41:00 2008 [23657] info: spamd: result: . 0 - scantime=0.2,size=1472,user=spamd,uid=1003,required_score=5.0,rhost=localhost,raddr=127.0.0.1,rport=/var/run/spamd/spamd.sock,mid=<352031222936843@webmail35.yandex.ru>,autolearn=ham
Thu Oct 2 19:41:00 2008 [23657] dbg: config: copying current conf from backup
Thu Oct 2 19:41:00 2008 [23654] dbg: prefork: child 23657: entering state 1
Thu Oct 2 19:41:00 2008 [23654] dbg: prefork: new lowest idle kid: 23657
Thu Oct 2 19:41:00 2008 [23654] dbg: prefork: child reports idle
Thu Oct 2 19:41:00 2008 [23654] info: prefork: child states: II
Если выполнить:
Mail-SpamAssassin-3.2.5# /usr/local/bin/spamassassin -t < sample-spam.txt > test_message.log
test_message.log:
X-Spam-Flag: YES
X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on gate.ptslab.int
X-Spam-Level: **************************************************
X-Spam-Status: Yes, score=1004.5 required=5.0 tests= AWL,BAYES_50,GTUBE,
NO_RECEIVED,NO_RELAYS,RAZOR2_CF_RANGE_51_100,RAZOR2_CF_RANGE_E4_51_100,
RAZOR2_CHECK testsscore=AWL=-0.000,BAYES_50=0.001,GTUBE=1000,
NO_RECEIVED=-0.001,NO_RELAYS=-0.001,RAZOR2_CF_RANGE_51_100=0.5,
RAZOR2_CF_RANGE_E4_51_100=1.5,RAZOR2_CHECK=2.5 scorebayes=0.5860 autolearn=no
version=3.2.5
X-Spam-Report:
* -0.0 NO_RELAYS Informational: message was not relayed via SMTP
* 1000 GTUBE BODY: Generic Test for Unsolicited Bulk Email
* 0.0 BAYES_50 BODY: Bayesian spam probability is 40 to 60%
* [score: 0.5860]
* 1.5 RAZOR2_CF_RANGE_E4_51_100 Razor2 gives engine 4 confidence level
* above 50%
* [cf: 100]
* 2.5 RAZOR2_CHECK Listed in Razor2 (http://razor.sf.net/)
* 0.5 RAZOR2_CF_RANGE_51_100 Razor2 gives confidence level above 50%
* [cf: 100]
* -0.0 NO_RECEIVED Informational: message has no Received headers
* -0.0 AWL AWL: From: address is in the auto white-list
Subject: ****SPAM(1004.5)**** Test spam mail (GTUBE)
Message-ID: <GTUBE1.1010101@example.net>
Date: Wed, 23 Jul 2003 23:30:00 +0200
From: Sender <sender@example.net>
To: Recipient <recipient@example.net>
Precedence: junk
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Spam-Prev-Subject: Test spam mail (GTUBE)
This is the GTUBE, the
Generic
Test for
Unsolicited
Bulk
Email
If your spam filter supports it, the GTUBE provides a test by which you
can verify that the filter is installed correctly and is detecting incoming
spam. You can send yourself a test mail containing the following string of
characters (in upper case and with no white spaces and line breaks):
XJS*C4JDBQADN1.NSBN3*2IDNEN*GTUBE-STANDARD-ANTI-UBE-TEST-EMAIL*C.34X
You should send this test mail from an account outside of your network.
Spam detection software, running on the system "gate.ptslab.int", has
identified this incoming email as possible spam. The original message
has been attached to this so you can view it (if it isn't spam) or label
similar future email. If you have any questions, see
gayunovdv@ptslab.ru for details.
Content preview: This is the GTUBE, the Generic Test for Unsolicited Bulk Email
If your spam filter supports it, the GTUBE provides a test by which you can
verify that the filter is installed correctly and is detecting incoming spam.
You can send yourself a test mail containing the following string of characters
(in upper case and with no white spaces and line breaks): [...]
Content analysis details: (1004.5 points, 5.0 required)
pts rule name description
---- ---------------------- --------------------------------------------------
-0.0 NO_RELAYS Informational: message was not relayed via SMTP
1000 GTUBE BODY: Generic Test for Unsolicited Bulk Email
0.0 BAYES_50 BODY: Bayesian spam probability is 40 to 60%
[score: 0.5860]
1.5 RAZOR2_CF_RANGE_E4_51_100 Razor2 gives engine 4 confidence level
above 50%
[cf: 100]
2.5 RAZOR2_CHECK Listed in Razor2 (http://razor.sf.net/)
0.5 RAZOR2_CF_RANGE_51_100 Razor2 gives confidence level above 50%
[cf: 100]
-0.0 NO_RECEIVED Informational: message has no Received headers
-0.0 AWL AWL: From: address is in the auto white-list