SA not being run

2006-06-11 Thread Eben King

Hi, I have Postfix 2.2.4, Procmail 3.2.2, Perl 5.8.7, and Spamassassin
3.0.4 .  Various files look like this:

[EMAIL PROTECTED]:~$ ls -l ~/.forward ~/.procmailrc
4.0K -rw-r--r--  1 eben eben   35 2006-06-10 19:06 /home/eben/.forward
4.0K -rw-r--r--  1 eben eben 1.2K 2006-02-02 01:31 /home/eben/.procmailrc

[EMAIL PROTECTED]:~$ cat ~/.forward
| /usr/bin/procmail -f- || exit 75

[EMAIL PROTECTED]:~$ cat ~/.procmailrc
# SpamAssassin sample procmailrc
#
# Pipe the mail through spamassassin (replace 'spamassassin' with 'spamc'
# if you use the spamc/spamd combination)
#
# The condition line ensures that only messages smaller than 250 kB
# (250 * 1024 = 256000 bytes) are processed by SpamAssassin. Most spam
# isn't bigger than a few k and working with big messages can bring
# SpamAssassin to its knees.
#
# The lock file ensures that only 1 spamassassin invocation happens
# at 1 time, to keep the load down.
#
:0fw: spamassassin.lock
* < 256000
| spamassassin -D rulesrun=255

# Mails with a score of 15 or higher are almost certainly spam (with 0.05%
# false positives according to rules/STATISTICS.txt). Let's put them in a
# different mbox. (This one is optional.)
:0:
* ^X-Spam-Level: \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
almost-certainly-spam

# All mail tagged as spam (eg. with a score higher than the set threshold)
# is moved to "probably-spam".
:0:
* ^X-Spam-Status: Yes
probably-spam

# Work around procmail bug: any output on stderr will cause the "F" in  "From"
# to be dropped.  This will re-add it.
:0
* ^^rom[ ]
{
LOG="*** Dropped F off From_ header! Fixing up. "

:0 fhw
| sed -e '1s/^/F/'
}

[EMAIL PROTECTED]:~$ ls `which procmail`
72K /usr/bin/procmail*

I think I've trained it enough too:

[EMAIL PROTECTED]:~$ sa-learn --backup | head -3
v   3   db_version # this must be the first line!!!
v   401 num_spam
v   961 num_nonspam

But incoming mail doesn't get tagged by SA unless I manually pipe it
through.  What should I look at?

--
-eben  [EMAIL PROTECTED]  http://royalty.no-ip.org:81
AQUARIUS:  There's travel in your future when your tongue freezes to the
back of a speeding bus.  Fill the void in your pathetic life by playing
Whack-a-Mole 17 hours a day.  -- Weird Al, _Your Horoscope for Today_


SA not being run

2006-06-11 Thread Eben King
Hi, I have Postfix 2.2.4, Procmail 3.2.2, Perl 5.8.7, and Spamassassin 3.0.4 
.  Various files look like this:


[EMAIL PROTECTED]:~$ ls -l ~/.forward ~/.procmailrc
4.0K -rw-r--r--  1 eben eben   35 2006-06-10 19:06 /home/eben/.forward
4.0K -rw-r--r--  1 eben eben 1.2K 2006-02-02 01:31 /home/eben/.procmailrc
[EMAIL PROTECTED]:~$ cat ~/.forward
| /usr/bin/procmail -f- || exit 75
[EMAIL PROTECTED]:~$ cat ~/.procmailrc
# SpamAssassin sample procmailrc
#
# Pipe the mail through spamassassin (replace 'spamassassin' with 'spamc'
# if you use the spamc/spamd combination)
#
# The condition line ensures that only messages smaller than 250 kB
# (250 * 1024 = 256000 bytes) are processed by SpamAssassin. Most spam
# isn't bigger than a few k and working with big messages can bring
# SpamAssassin to its knees.
#
# The lock file ensures that only 1 spamassassin invocation happens
# at 1 time, to keep the load down.
#
:0fw: spamassassin.lock
* < 256000
| spamassassin -D rulesrun=255

# Mails with a score of 15 or higher are almost certainly spam (with 0.05%
# false positives according to rules/STATISTICS.txt). Let's put them in a
# different mbox. (This one is optional.)
:0:
* ^X-Spam-Level: \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
almost-certainly-spam

# All mail tagged as spam (eg. with a score higher than the set threshold)
# is moved to "probably-spam".
:0:
* ^X-Spam-Status: Yes
probably-spam

# Work around procmail bug: any output on stderr will cause the "F" in 
"From"

# to be dropped.  This will re-add it.
:0
* ^^rom[ ]
{
LOG="*** Dropped F off From_ header! Fixing up. "

:0 fhw
| sed -e '1s/^/F/'
}
[EMAIL PROTECTED]:~$ ls `which procmail`
72K /usr/bin/procmail*

I think I've trained it enough:

[EMAIL PROTECTED]:~$ sa-learn --backup | head -3
v   3   db_version # this must be the first line!!!
v   401 num_spam
v   961 num_nonspam

But incoming mail doesn't get tagged by SA unless I manually pipe it 
through.  What should I look at?


--
-eben [EMAIL PROTECTED] http://royalty.no-ip.org:81
Are you confident that you appear to be professional in your electronic
communication?  Consider this: A: No
   Q: Can I top post? from [EMAIL PROTECTED]