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.
sh: cannot use & in command
554 "|IFS=' '&&exec /usr/bin/procmail -f-||exit 75 #joe" ... Service
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.