Bug 78006 - smrsh runs under wrong UID
smrsh runs under wrong UID
Product: Red Hat Linux
Classification: Retired
Component: sendmail (Show other bugs)
i686 Linux
medium Severity medium
: ---
: ---
Assigned To: Florian La Roche
David Lawrence
Depends On:
  Show dependency treegraph
Reported: 2002-11-17 06:20 EST by Nigel Horne
Modified: 2007-04-18 12:48 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2003-05-08 09:15:21 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
Sample script in /etc/smrsh (3.00 KB, text/plain)
2002-11-17 06:22 EST, Nigel Horne
no flags Details

  None (edit)
Description Nigel Horne 2002-11-17 06:20:55 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.0.1) Gecko/20021003

Description of problem:
Your customer support told me to raise this as a bug here.

I am running sendmail-8.11.6-15 on RH7.3. I have not modified the 
sendmail.cf script, but something appears to be wrong. Scripts which 
execute in the /etc/smrsh directory run as the UID mail (from the 
DefaultUser specification) not the UID of the recipient. This is true even 
though the F=o option appears in this line from /etc/sendmail.cf:

Mprog,          P=/usr/sbin/smrsh, F=lsDFMoqeu9, S=EnvFromL/HdrFromL, 
R=EnvToL/HdrToL, D=$z:/,

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1.Create a script in /etc/smrsh that returns a 0 exit code
2.Add a suitable alias to /etc/aliases

Actual Results:  Bounces are sent as mail@localhost

Expected Results:  Bounces should be sent as the recipient

Additional info:

Your customer service people know the background.
Comment 1 Nigel Horne 2002-11-17 06:22:05 EST
Created attachment 85347 [details]
Sample script in /etc/smrsh
Comment 2 Florian La Roche 2003-02-16 05:14:12 EST
smrsh seems to work fine for me with the current sendmail rpm. Could
something be changed on your machine?


Florian La Roche
Comment 3 Florian La Roche 2003-05-08 09:15:21 EDT
Closing this now, works ok for me.


Florian La Roche

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