On Fri, Feb 19, 2010 at 09:16:37PM +0100, Ralf Hildebrandt wrote:

> * Victor Duchovni <victor.ducho...@morganstanley.com>:
> 
> > Well, Postfix just executes "procmail" via your shell (when mailbox_command
> > contains shell metacharacters). Don't blame the messenger. The error message
> > is from your shell, which clearly reports not being able to run the
> > /usr/bin/procmail executable.
> 
> Maybe smrsh?

Not at all likely. Postfix does not use "smrsh". With mailbox_command,
Postfix explicitly uses the compiled-in path of the Bourne shell:

        (void) execl(_PATH_BSHELL, "sh", "-c", command, (char *) 0);
        msg_fatal("execl %s: %m", _PATH_BSHELL);

It is mostly pointless to use smrsh with procmail, as procmail allows
users to bypass the restrictions imposed by smrsh. This is explained
in the smrsh manpage:

       Also, including mail filtering programs such as procmail(1)
       is a very bad idea.  procmail(1) allows users to run arbitrary
       programs in their procmailrc(5).

-- 
        Viktor.

P.S. Morgan Stanley is looking for a New York City based, Senior Unix
system/email administrator to architect and sustain our perimeter email
environment.  If you are interested, please drop me a note.

Reply via email to