procmail
[Top] [All Lists]

Puzzling "Cannot Execute" error is driving me nuts.

2002-08-31 16:13:17
I'm trying to deploy procmail on a university computer with my student 
account.  The admins do not provide procmail, so I had to compile my own 
copy.  Everything works manually if I invoke procmail from the commandline.  
But as soon as I use a .forward file to invoke procmail, nothing I do seems 
to work.

My .forward file looks like this:

"|IFS=' ' && hm=/home/users/mhoward205 && P=$hm/procmail/procmail && test -f 
$P && exec $P -f- || echo ++procmail_not_found_or_fails++ >> 
$hm/.mailspool/raw_in && exit 75 # mhoward205" 

(that's all one line because the \\ linebreaks don't work.)

The error message that bounces back to the sender is:

The original message was received at Sat, 31 Aug 2002 15:09:54 -0700 (PDT)
from IDENT:mirapoint(_at_)puffin(_dot_)csun(_dot_)edu [130.166.1.21]
 
   ----- The following addresses had permanent fatal errors -----
"|IFS=' ' && hm=/home/users/mhoward205 && P=$hm/procmail/procmail && test 
-f $P && exec $P -f- || echo ++procmail_not_found_or_fails++
$hm/.mailspool/raw_in && exit 75 # mhoward205"
    (expanded from: <mhoward205(_at_)krusty(_dot_)csun(_dot_)edu>)
 
   ----- Transcript of session follows -----
sh: /home/users/mhoward205/procmail/procmail: cannot execute
554 "|IFS=' ' && hm=/home/users/mhoward205 && P=$hm/procmail/procmail && 
test -f $P && exec $P -f- || echo
++procmail_not_found_or_fails++ >> $hm/.mailspool/raw_in && exit 75 # 
mhoward205"... unknown mailer error 126

When I replace the procmail command with something that will cat >> somefile, 
my mail does get dumped to the file.  So I know sendmail on this system is 
equipped to execute other programs in the .forward file.  My suspicion is 
that because I compiled procmail as a user, the sendmail tool is smart enough 
not to trust it.

Now what's really interesting is if I remove the word "exec" from the 
.forward file.  Then no error bounced back, but the error message from 
.forward is written to my raw_in file:

++procmail_not_found_or_fails++                                               
             
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>