procmail
[Top] [All Lists]

Re: problems with smrsh

1998-10-06 17:50:50
I want to set up procmail for simplemail filtering. When I set up a .forward  
file with the suggested command, I get console errors like

Oct  6 14:52:26 myserver smrsh: uid 100: attempt to use & in command: IFS='  
'&&p=/usr/local/bin/procmail&&test -f $p&&exec $p -Yf-||exit 75 #kehoe

smrsh is the mailer specified in my sendmail.cf file.

Is there a way to set up procmail with smrsh without changing smrsh or my  
sendmail.cf file?

You could, of course, make procmail an executable binary for smrsh.  But if
it's your LDA (or anyone can add .forward files on your server) then you're
bypassing smrsh's functionality.

I have a patch that I've been using to essentially give procmail the same
functionality as smrsh.  If a binary exists in a predefined directory, then
procmail will allow it to be run.  You can also tell it to allow anything for
UIDs under a certain value (any account with a UID under 'x' can run any
binary).

You can get it at

   http://mirror.ncsa.uiuc.edu/procmail/patches/smrsh-like.patch

Future enhancements probably will include username to allowed file mapping,
so user1 can run a certain subset of programs and user2 can run a different
subset.  But that's harder.  :)

Chris

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