procmail
[Top] [All Lists]

Re: .forward not working due to upgrade

1999-05-25 06:53:01
Zhenhua <zhenhua(_at_)megapro(_dot_)com> writes:
I used to have .forward file for my Procmail recipies with text:
|IFS=' '&&exec /usr/bin/procmail -f-||exit 75 #joe

After I upgrade my OS to Redhat 6.0, it does not work anymore.
I got:

sh: cannot use & in command
554 "|IFS=' '&&exec /usr/bin/procmail -f-||exit 75 #joe" ... Service
unavailable

How should I modify the .forward file?

Redhat 6.0 defaults to using smrsh as the "prog" mailer in the
sendmail.cf, so that shell syntax like "&&" and "||" won't work in it.
However, Redhat 6.0 also defaults to using procmail as the local
mailer, so you should be able to simply remove your .forward file, as
sendmail will call procmail itself.


Philip Guenther

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