On Mar 23, 2006, at 11:37 AM, Jim C. Nasby wrote:
On Thu, Mar 23, 2006 at 10:54:10AM +0100, Klaus Johannes Rusch wrote:
Jim Nasby wrote:
I just ended up with a bunch of spam in my inbox because
Spamassassin
went belly-up for some reason. In my procmail log I see:
procmail: Program failure (-25) of "spamassassin"
What I don't understand is why procmail continued delivering the
email instead of bouncing back to the mailer/exiting with an error.
I'm calling spamassassin like this:
:0fw : spamassassin.lck
| spamassassin
You can check if the spamassassin step was successful by looking
for the
SpamAssassin headers, e.g.
:0fw: spamassassin.lck
| spamassassin
:0
* !^X-Spam-Status:
{
EXITCODE=75
}
Ahh, outstanding! I new there had to be an easy way to do that.
Are you sure though that you want to bounce legitimate mail if your
spamassassin fails for some reason ?
Well, exitcode 75 shouldn't bounce anything, it should just cause mail
to queue up in postfix. Given the volume of email I normally deal
with,
I'll very quickly realize if that's happening...
Ok, I've now at least got things setup so that if SA doesn't run the
email stays in queue. Here's the next problem...
I'm now getting this back via postfix:
(temporary failure. Command output: procmail: [64030] Thu Mar 23
10:54:39 2006 procmail: Assigning "LOGABSTRACT=all" procmail:
Assigning "UMASK=077" procmail: Assigning "MAILDIR=/home/decibel/
Maildir" procmail: Assigning "DEFAULT=/home/decibel/Maildir/"
procmail: Assigning "PMDIR=/home/decibel/procmail" procmail:
Assigning "LOGFILE=/home/decibel/procmail/log" procmail: Opening "/
home/decibel/procmail/log")
The problem is that there's absolutely no activity at all showing up
in /home/decibel/procmail/log. If I force postfix to flush the queue,
I can see procmail processes running:
decibel 64108 0.0 0.1 5036 1376 ?? Ss 4:58AM 0:00.00 sh -
c /usr/local/bin/procmail -t || exit 75
decibel 64109 0.0 0.1 3680 1156 ?? S 4:58AM 0:00.00 /usr/
local/bin/procmail -t
decibel 64110 0.0 0.1 3680 1156 ?? S 4:58AM 0:00.00 /usr/
local/bin/procmail -t
But nothing shows up in the logfile. But if I run something manually,
ie:
decibel(_at_)noel(_dot_)2[4:58]~:62>echo test|/usr/local/bin/procmail -t
procmail: [64167] Thu Mar 23 04:58:53 2006
procmail: Assigning "LOGABSTRACT=all"
procmail: Assigning "UMASK=077"
procmail: Assigning "MAILDIR=/home/decibel/Maildir"
procmail: Assigning "DEFAULT=/home/decibel/Maildir/"
procmail: Assigning "PMDIR=/home/decibel/procmail"
procmail: Assigning "LOGFILE=/home/decibel/procmail/log"
procmail: Opening "/home/decibel/procmail/log"
decibel(_at_)noel(_dot_)2[4:58]~:63>
I will get activity in the logfile:
procmail: Assigning "INCLUDERC=/home/decibel/procmail/g1.rc"
procmail: No match on "^From:(_dot_)*(_at_)g1(_dot_)com"
procmail: Assigning "INCLUDERC=/home/decibel/procmail/symbiot.rc"
procmail: No match on "(^((Original-)?(Resent-)?(To|Cc|Bcc)|(X-
Envelope|Apparently(-Resent)?)-To
):(.*[^a-zA-Z])?)symbiot.com"
procmail: Assigning "INCLUDERC=/home/decibel/procmail/freeproject.rc"
procmail: No match on "(^((Original-)?(Resent-)?(To|Cc|Bcc)|(X-
Envelope|Apparently(-Resent)?)-To
):(.*[^a-zA-Z])?)decibel+freeproject(_at_)decibel(_dot_)org"
procmail: Locking "spamassassin.lck"
procmail: Executing "spamassassin"
procmail: [64184] Thu Mar 23 04:59:55 2006
procmail: Unlocking "spamassassin.lck"
procmail: No match on ! "^X-Spam-Status:"
procmail: No match on "^X-Spam-Flag: YES"
procmail: Match on "^X-Spam-Level: \*\*\*"
procmail: Assigning "LASTFOLDER=.probablespam/new/
1143111594.64184_1.noel.decibel.org"
procmail: Notified comsat: "decibel(_at_)0:/home/decibel/
Maildir/.probablespam/new/1143111594.64184_1
.noel.decibel.org"
Folder: .probablespam/new/
1143111594.64184_1.noel.decibel.org 241
Any ideas why I'm not getting any apparent activity when postfix runs
procmail?
--
Jim C. Nasby, Database Architect decibel(_at_)decibel(_dot_)org
Give your computer some brain candy! www.distributed.net Team #1828
Windows: "Where do you want to go today?"
Linux: "Where do you want to go tomorrow?"
FreeBSD: "Are you guys coming, or what?"
____________________________________________________________
procmail mailing list Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail