procmail does not run bogofilter
Michael Gass
mgass at unix.csbsju.edu
Sat Aug 2 03:09:44 CEST 2003
Cannot get bogofilter to run under procmail.
My setup is RedHat 9 with procmail as MDA.
Procmail seems to work fine on its own.
I can run bogofilter from the commmand line
on various test files and it seems to work.
The problem is getting procmail to run bogofilter
on my incoming mail. Below is what I am doing and
the results. Any ideas?
If I have the following .procmailrc file
SHELL=/bin/sh
MAILDIR=${HOME}/Mail
PMDIR=${HOME}/Procmail
LOGFILE=${PMDIR}/pmlog
VERBOSE=on
# Insert a blank line in log files.
LOG="
"
:0:
* ? /usr/local/bin/bogofilter
${MAILDIR}/spam
then it does not work and I get something like the following
in my procmail log file for incoming mail
procmail: Executing "/usr/local/bin/bogofilter"
/usr/local/bin/bogofilter: /usr/local/bin/bogofilter: No such file or directory
procmail: Non-zero exitcode (127) from "/usr/local/bin/bogofilter"
procmail: No match on "bogofilter"
procmail: Locking "/var/spool/mail/mgass.lock"
procmail: Assigning "LASTFOLDER=/var/spool/mail/mgass"
procmail: Opening "/var/spool/mail/mgass"
procmail: Acquiring kernel-lock
procmail: Unlocking "/var/spool/mail/mgass.lock"
procmail: Notified comsat: "mgass at 0:/var/spool/mail/mgass"
>From mgass at unix.csbsju.edu Fri Aug 1 11:06:45 2003
Subject: crazy stuff
Folder: /var/spool/mail/mgass 1135
procmail: [18794] Fri Aug 1 11:10:28 2003
procmail: Assigning "LOG=
"
If I have the following .procmailrc file
SHELL=/bin/sh
MAILDIR=${HOME}/Mail
PMDIR=${HOME}/Procmail
LOGFILE=${PMDIR}/pmlog
VERBOSE=on
# Insert a blank line in log files.
LOG="
"
:0fw
| bogofilter -u -e -p
:0e
{ EXITCODE=75 HOST }
:0:
* ^X-Bogosity: Yes, tests=bogofilter
${MAILDIR}/spam
it does not work and I get something like the
following for any incoming mail message.
procmail: Executing "bogofilter,-u,-e,-p"
bogofilter: bogofilter: No such file or directory
procmail: Program failure (127) of "bogofilter"
procmail: Rescue of unfiltered data succeeded
procmail: Assigning "EXITCODE=75"
procmail: Assigning "HOST"
procmail: HOST mismatched "maple"
>From mgass at unix.csbsju.edu Fri Aug 1 18:54:54 2003
Subject: crazy stuff
Folder: 0
procmail: [27722] Fri Aug 1 19:01:15 2003
procmail: Assigning "LOG=
"
Any ideas???
--
Michael Gass Department of Mathematics
phone: 320 363-3090 St. John's University
email: mgass at csbsju.edu Collegeville, MN 56321-3000
More information about the Bogofilter
mailing list