procmail
[Top] [All Lists]

Re: Binary will not run from rc filter

2007-09-18 06:55:50
At 09:00 2007-09-18 -0400, steve verlander wrote:
I am using sendmail 8.14 and procmail 3.22

I have a filter defined in mailtertable in the form:
<http://mydomain.com>mydomain.com       procmail:/home/someuser/conf/filter.rc

If I use | to execute a shell script in the rc file, it runs fine.

Q: do you specify a SHELL= in the rcfile to ensure that there is a defined 
shell, say, in the event that the user which sendmail is running as 
(possibly "daemon") does not have a shell defined in /etc/passwd ?

  If I try to execute a binary from the rc file, I get:

procmail: Executing "/home/someuser/bin/scripts/filter_app"
/home/someuser/bin/scripts/filter_app: 
/home/someuser/bin/scripts/filter_app: cannot execute binary file

Uhm, do you know for sure that it's a binary file?  Perhaps it is a shell 
script which lacks a proper shell definition on the first line (such as 
#!/bin/sh), and thus isn't comprehended unless you're already running THAT 
shell...

If I run procmail from the command line, everything works fine.

Why won't procmail execute a binary when run by sendmail?

Sounds like your system is running smrsh: sendmail restricted shell

---
  Sean B. Straw / Professional Software Engineering

  Procmail disclaimer: <http://www.professional.org/procmail/disclaimer.html>
  Please DO NOT carbon me on list replies.  I'll get my copy from the list.
____________________________________________________________
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

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