On Mon, 28 Sep 2009, jmunjr wrote:
Thanks once again.
Here is my procmailrc:
TRAP=/etc/webmin/virtual-server/procmail-logger.pl
LOGFILE=/var/log/procmail.log
DROPPRIVS=yes
:0fw
| /usr/bin/spamassassin
Okay, that will indeed work, but it's a _lot_ of overhead if you have more
than a small email volume. It launches a pristine copy of SA for each
message, which involves parsing all the configs for each message.
I would suggest replacing that with spamc and making sure spamd is
running, if you have that option. Sometimes shared hosting providers won't
let you launch a daemon (i.e. spamd).
Your procmailrc could also use some blank lines, for clarity.
Is webmin generating this for you?
* ^X-Spam-Status: Yes
$DEFAULT
This is syntactically incorrect, it needs to be preceded by a :0 line; it
also occurs *before* $DEFAULT gets set. If it was correct, it would bypass
the "discard at 15+" rule below and put your mail somewhere you weren't
expecting.
DEFAULT=$HOME/Maildir/
ORGMAIL=$HOME/Maildir/
# 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: \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
/dev/null
:0
$DEFAULT
____________________
and the portion of the log for a message that doesn not get scanned:
From j...@xxxxxx.net Mon Sep 28 16:03:05 2009
Subject: Pack for advanced search
Folder: /home/xxxxxx/homes/john/Maildir/new/1254171791.25506_0.www.m
7674
Time:1254171791 From:j...@xxxxxx.net To:j...@xxxxxx.net User:john-xxxxxx.net
Size:7722
Dest:/home/xxxxxx/homes/john/Maildir/new/1254171791.25506_0.www.xxxxxx.com
Mode:None
That's odd. you shouldn't be getting TRAP output at that point. TRAP only
fires when procmail exits, and the spamassassin stanza is a non-delivering
recipe.
procmail: Skipped "* ^X-Spam-Status: Yes"
procmail: Skipped "$DEFAULT"
This points out the syntax error in that stanza.
If you can afford the logging, you might want to put "VERBOSE=YES" right
after DROPPRIVS, for a while.
--
John Hardin KA7OHZ http://www.impsec.org/~jhardin/
jhar...@impsec.org FALaholic #11174 pgpk -a jhar...@impsec.org
key: 0xB8732E79 -- 2D8C 34F4 6411 F507 136C AF76 D822 E6E6 B873 2E79
-----------------------------------------------------------------------
When designing software, any time you think to yourself "a user
would never be stupid enough to do *that*", you're wrong.
-----------------------------------------------------------------------
Approximately 8960340 firearms legally purchased in the U.S. this year