procmail
[Top] [All Lists]

Re: Setting up Procmail

1999-01-24 22:40:04
Mary Prabha Ng <maryng(_at_)acsu(_dot_)buffalo(_dot_)edu> writes:
the thing is i do not know how to do the .forward everytime i do that it
gives the sender a mailer deamon response
this is what i write in the .forward file
"|IFS=' ' &&exec /usr/local/bin/procmail || exit 75 #maryng"

If you system is running a newer version of sendmail it may have been
configured with "smrsh", the sendmail restricted shell.  You can tell
whether this is the case by examining the mailer daemon responses that
someone received when they tried to email to you.  If it contains the
phrase "cannot use & in command", then smrsh is in use.

If smrsh is in use, it may have already been configured to allow use of
procmail.  To test this, put the following in your .forward file:

        "|/usr/local/bin/procmail"

If it works, that it; you're done.  If it doesn't work, procmail would
have to be added to the list of commands that are allowed to be run
from sendmail.  This is done by putting a copy of the procmail binary,
or a link to it, in a specific directory.  The exact location depends
on what was compiled into the smrsh program.  Regardless, you'll need
to talk to the sysadmin, as only they will have the privileges to do
so.


Philip Guenther

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