Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.

Bug 78006

Summary: smrsh runs under wrong UID
Product: [Retired] Red Hat Linux Reporter: Nigel Horne <njh>
Component: sendmailAssignee: Florian La Roche <laroche>
Status: CLOSED WORKSFORME QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.3CC: mitr
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2003-05-08 13:15:21 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Description Flags
Sample script in /etc/smrsh none

Description Nigel Horne 2002-11-17 11:20:55 UTC
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 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/

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 11:22:05 UTC
Created attachment 85347 [details]
Sample script in /etc/smrsh

Comment 2 Florian La Roche 2003-02-16 10:14:12 UTC
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 13:15:21 UTC
Closing this now, works ok for me.


Florian La Roche