(This may be a bash or sendmail bug.)
I am trying to set up procmail on my RedHat 6.2 system. I copied the
example /usr/doc/procmail/examples/forward file to .forward in my home
directory. All attempts to receive e-mail with this setup were bounced
with the following e-mail error sent to root:
----- The following addresses had permanent fatal errors -----
"|IFS=' ' && p=/usr/bin/procmail && test -f $p && exec $p -Yf- || exit 75
(expanded from: swalton)
----- Transcript of session follows -----
sh: cannot use & in command
554 "|IFS=' ' && p=/usr/bin/procmail && test -f $p && exec $p -Yf- || exit
75 #swalton"... Service
I have been using procmail successfully on HP-UX with a nearly identical
Have you tried
ln -s ../../usr/bin/procmail /etc/smrsh/procmail
and using relative paths in sendmail.cf?
I'm not sure what "using relative paths in sendmail.cf" means. I made the
suggested symbolic link and changed the occurence of /usr/bin/procmail in my
.forward file to simply "procmail" . I also used linuxconf to check the box to
have sendmail use smrsh (which I assume is also needed) and rebuilt
sendmail.cf. I get a similar message in /var/log/maillog: "smrsh: uid nnn:
attempt to use & in command."
I mean changing the path appropriately so that the procmail executable can be
even with sendmail using a restricted shell.
Presumably you are trying to use your own sendmail.cf. Have you looked at the
default sendmail.cf distributed with the Red Hat distro, as that already uses
for delivery -- it just "works" if you create ~/.procmailrc
I'll be d****d. It's been working behind my back all this time I've had my
.forward file renamed. I am using the RedHat default sendmail.cf, BTW. Thanks
for your time. I guess I'm still a little concerned that a standard .forward
file used on other platforms for procmail doesn't work, though.