Bug 21493 - procmail example forward file does not work
procmail example forward file does not work
Product: Red Hat Linux
Classification: Retired
Component: procmail (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Trond Eivind Glomsrxd
Dale Lovelace
Depends On:
  Show dependency treegraph
Reported: 2000-11-29 12:50 EST by Stephen Walton
Modified: 2007-04-18 12:30 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2000-11-29 15:34:55 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Stephen Walton 2000-11-29 12:50:24 EST
(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
Comment 1 Jeff Johnson 2000-11-29 14:32:46 EST
Have you tried
	ln -s ../../usr/bin/procmail /etc/smrsh/procmail
and using relative paths in sendmail.cf?
Comment 2 Stephen Walton 2000-11-29 15:26:01 EST
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."
Comment 3 Jeff Johnson 2000-11-29 15:34:52 EST
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
Comment 4 Stephen Walton 2000-11-29 15:55:35 EST
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.

Thanks again.

Note You need to log in before you can comment on or make changes to this bug.