Hello,
I am trying to do a relatively straightforward invocation of SpamAssassin using
procmail. But it seems that no matter what I try, I get "Error while writing to
/usr/local/bin/spamc".
If I use the "i" flag on my rule, when I run ps I can see that the program has
started, but it stays running and then after 10 minutes procmail times out and
kills the process.
I've also tried running different programs (e.g. /usr/local/bin/sort) just to
see if I can make any pipe work, but with the same results.
I can successfully invoke the program with a shell escape (ie.
LOG="`/usr/local/bin/spamc`") so I know it's not a problem with paths or
permissions, unless procmail does a chroot right before it uses the pipe.
Any ideas? Details below.
----------------------------
uname -a
Linux vjxnet.com 2.4.9-31enterprise #1 SMP Tue Feb 26 06:25:36 EST 2002 i686
unknown
Sendmail (8.12.10) calls Procmail like this in sendmail.cf:
Mlocal, P=/bin/procmail, F=lsDFMAw5:/|@qSPfhn9, S=EnvFromL/HdrFromL,
R=EnvToL/HdrToL,
T=DNS/RFC822/X-Unix,
A=procmail -Y -a $h -d $u
Procmail is v 3.14
My procmailrc:
PATH=/bin:/usr/bin:/usr/local/bin
SHELL=/bin/sh
MAILDIR=/var/spool/mail
#Troubleshooting:
LOGFILE=/var/spool/mail/procmail.log
VERBOSE=yes
LOGABSTRACT=all
# Pass everything through SpamAssassin first
:0fw
* < 256000
* ^TO_test
| /usr/local/bin/spamc -U /var/run/spamd
My procmail.log:
procmail: [25866] Wed Nov 17 12:37:19 2004
procmail: Assigning "LOGABSTRACT=all"
procmail: Match on "< 256000"
procmail: Match on
"(^((Original-)?(Resent-)?(To|Cc|Bcc)|(X-Envelope|Apparently(-Resent)?)-To):(.*[^-a-zA-Z0-9_.])?)test"
procmail: Error while writing to "/usr/local/bin/spamc"
procmail: Rescue of unfiltered data failed
procmail: Rescue of unfiltered data failed
Folder: /var/spool/mail/verelita 1
____________________________________________________________
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