Ok..

       preference        |         value
-------------------------+------------------------
 required_score          | 4.0
 blacklist_from          | [EMAIL PROTECTED]
 blacklist_from          | [EMAIL PROTECTED]
 score USER_IN_BLACKLIST | 100
 required_score          | 3.0
 report_safe             | 0
 use_razor2              | 1
 use_pyzor               | 1
 use_dcc                 | 1
 score USER_IN_WHITELIST | -10

Now the run produces...

(spamd)
spamd -x -q -C /etc/mail/test/ --siteconfigpath=/etc/mail/test -p
9898 -D
trying to connect to syslog/unix...
no error connecting to syslog/unix
logging enabled:
        facility: mail
        socket:   unix
        output:   syslog
creating INET socket:
        Listen: 128
        LocalAddr: 127.0.0.1
        LocalPort: 9898
        Proto: 6
        ReuseAddr: 1
        Type: 1
debug: SpamAssassin version 3.0.2
debug: Score set 0 chosen.
debug: Storable module v2.13 found
debug: Preloading modules with HOME=/tmp/spamd-31429-init
debug: ignore: test message to precompile patterns and load modules
debug: using "/etc/mail/test/init.pre" for site rules init.pre
debug: config: read file /etc/mail/test/init.pre
debug: using "/etc/mail/test" for default rules dir
debug: config: read file /etc/mail/test/local.cf
debug: using "/etc/mail/test" for site rules dir
debug: config: read file /etc/mail/test/local.cf
debug: plugin: loading Mail::SpamAssassin::Plugin::URIDNSBL from @INC
debug: plugin: registered
Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x91dcb14)
debug: plugin: loading Mail::SpamAssassin::Plugin::Hashcash from @INC
debug: plugin: registered
Mail::SpamAssassin::Plugin::Hashcash=HASH(0x91f8550)
debug: plugin: loading Mail::SpamAssassin::Plugin::SPF from @INC
debug: plugin: registered Mail::SpamAssassin::Plugin::SPF=HASH(0x920cce4)
debug: bayes: no dbs present, cannot tie DB R/O:
/tmp/spamd-31429-init/.spamassassi
n/bayes_toks
debug: Score set 1 chosen.
debug: ---- MIME PARSER START ----
debug: main message type: text/plain
debug: parsing normal part
debug: added part, type: text/plain
debug: ---- MIME PARSER END ----
debug: bayes: no dbs present, cannot tie DB R/O:
/tmp/spamd-31429-init/.spamassassi
n/bayes_toks
debug: metadata: X-Spam-Relays-Trusted:
debug: metadata: X-Spam-Relays-Untrusted:
debug: plugin: Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x91dcb14)
implements 'par
sed_metadata'
debug: is Net::DNS::Resolver available? yes
debug: Net::DNS version: 0.48
debug: trying (3) linux.org...
debug: looking up NS for 'linux.org'
debug: NS lookup of linux.org succeeded => Dns available (set dns_available
to hard
code)
debug: is DNS available? 1
debug: decoding: no encoding detected
debug: URIDNSBL: domains to query:
debug: plugin: Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x91dcb14)
implements 'che
ck_post_dnsbl'
debug: is spam? score=0 required=5
debug: tests=
debug: subtests=
server started on port 9898/tcp (running version 3.0.2)
logmsg: server started on port 9898/tcp (running version 3.0.2)
logmsg: server successfully spawned child process, pid 31431
logmsg: server successfully spawned child process, pid 31432
logmsg: server successfully spawned child process, pid 31433
logmsg: server successfully spawned child process, pid 31435
logmsg: server successfully spawned child process, pid 31436
server pid: 31429
logmsg: connection from Safe02 [127.0.0.1] at port 51427
debug: Conf::SQL: executing SQL: SELECT preference, value FROM userpref
WHERE usern
ame = '[EMAIL PROTECTED]' OR username = '$GLOBAL' OR username =
'%'||'architel.com
' ORDER BY username ASC, prefid ASC
debug: retrieving prefs for [EMAIL PROTECTED] from SQL server
debug: user has changed
debug: bayes: 31431 tie-ing to DB file R/O
/usr/exim/.spamassassin/bayes_toks
debug: bayes: 31431 tie-ing to DB file R/O
/usr/exim/.spamassassin/bayes_seen
debug: bayes: found bayes db version 3
debug: bayes: Not available for scanning, only 0 spam(s) in Bayes DB < 200
debug: bayes: 31431 untie-ing
debug: bayes: 31431 untie-ing db_toks
debug: bayes: 31431 untie-ing db_seen
debug: Score set 1 chosen.
logmsg: processing message (unknown) for [EMAIL PROTECTED]:501.
debug: bayes: 31431 tie-ing to DB file R/O
/usr/exim/.spamassassin/bayes_toks
debug: bayes: 31431 tie-ing to DB file R/O
/usr/exim/.spamassassin/bayes_seen
debug: bayes: found bayes db version 3
debug: bayes: Not available for scanning, only 0 spam(s) in Bayes DB < 200
debug: bayes: 31431 untie-ing
debug: bayes: 31431 untie-ing db_toks
debug: bayes: 31431 untie-ing db_seen
debug: metadata: X-Spam-Relays-Trusted:
debug: metadata: X-Spam-Relays-Untrusted:
debug: ---- MIME PARSER START ----
debug: main message type: text/plain
debug: parsing normal part
debug: added part, type: text/plain
debug: ---- MIME PARSER END ----
debug: decoding: no encoding detected
debug: URIDNSBL: domains to query:
debug: auto-learn: currently using scoreset 1.
debug: auto-learn: message score: 0, computed score for autolearn: 0
debug: auto-learn? ham=0.1, spam=12, body-points=0, head-points=0,
learned-points=0
debug: auto-learn? yes, ham (0 < 0.1)
debug: Learning Ham
debug: all '*From' addrs: [EMAIL PROTECTED]
debug: all '*To' addrs: [EMAIL PROTECTED]
debug: lock: 31431 created
/usr/exim/.spamassassin/bayes.lock.Safe02.architel.com.3
1431
debug: lock: 31431 trying to get lock on /usr/exim/.spamassassin/bayes with
0 retri
es
debug: lock: 31431 link to /usr/exim/.spamassassin/bayes.lock: link ok
debug: bayes: 31431 tie-ing to DB file R/W
/usr/exim/.spamassassin/bayes_toks
debug: bayes: 31431 tie-ing to DB file R/W
/usr/exim/.spamassassin/bayes_seen
debug: bayes: found bayes db version 3
debug: [EMAIL PROTECTED]: already learnt
correc
tly, not learning twice
debug: bayes: 31431 untie-ing
debug: bayes: 31431 untie-ing db_toks
debug: bayes: 31431 untie-ing db_seen
debug: bayes: files locked, now unlocking lock
debug: unlock: 31431 unlink /usr/exim/.spamassassin/bayes.lock
debug: is spam? score=0 required=3
debug: tests=
debug: subtests=
logmsg: clean message (0.0/3.0) for [EMAIL PROTECTED]:501 in 0.2 seconds,
670 byte
s.
logmsg: result: .  0 -
scantime=0.2,size=670,mid=(unknown),autolearn=unavailable


And spamc produces:

 spamc -u [EMAIL PROTECTED] -p 9898 < mb2
>From [EMAIL PROTECTED]  Wed Feb  2 10:10:15 2005
Return-Path: <[EMAIL PROTECTED]>
X-Originating-IP: [66.194.13.227]
X-Originating-Email: [EMAIL PROTECTED]
X-Sender: [EMAIL PROTECTED]
From: "Kevin Marvin" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Test Message from CLI
Date: Wed, 02 Feb 2005 16:09:21 +0000
Mime-Version: 1.0
Content-Type: text/plain; format=flowed
X-OriginalArrivalTime: 02 Feb 2005 16:10:02.0339 (UTC)
FILETIME=[A6A6A330:01C50941]
X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on
Safe02.architel.com



This is a test / demo message.  It should / should not get tagged based on
the SQL settings.  I used this message from another mailbox as a template
for the header content.

- Kevin



On 6/7/05 12:50 PM, "Michael Parker" <[EMAIL PROTECTED]> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Kevin Marvin wrote:
> 
>> preference | value
>> -------------------------+------------------------ required_score
>> | 4.0 blacklist_from | [EMAIL PROTECTED]
>> blacklist_from | [EMAIL PROTECTED] score USER_IN_BLACKLIST |
>> 100 required_score | 3.0 report_safe | 0
>> use_razor2 | 1 use_pyzor | 1 use_dcc
>> | 1 score USER_IN_WHITELIST | -10 use_auto_whitelist | 0
>> 
> 
> I'm not sure if this is it, and I don't have time to test it and see,
> but it might be the fact that you've got the use_auto_whitelist there
> which is admin only, and only allowed in a .cf file.  Try removing
> that and see if it helps.
> 
> Michael
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.4 (Darwin)
> 
> iD8DBQFCpd53G4km+uS4gOIRAgxhAJ4tC0i4IxAMWin38mOQ8h3mXy6xawCaA1Du
> VxMoh/jZTugWVNIexAurj24=
> =HcDs
> -----END PGP SIGNATURE-----
> 

Reply via email to