Bug 21493 - procmail example forward file does not work
Summary: procmail example forward file does not work
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: procmail (Show other bugs)
(Show other bugs)
Version: 6.2
Hardware: i386 Linux
Target Milestone: ---
Assignee: Trond Eivind Glomsrxd
QA Contact: Dale Lovelace
Depends On:
TreeView+ depends on / blocked
Reported: 2000-11-29 17:50 UTC by Stephen Walton
Modified: 2007-04-18 16:30 UTC (History)
0 users

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

Attachments (Terms of Use)

Description Stephen Walton 2000-11-29 17:50:24 UTC
(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 19:32:46 UTC
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 20:26:01 UTC
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 20:34:52 UTC
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 20:55:35 UTC
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.