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 88154 - default /etc/mail/Makefile makes unreadable by smmsp
Summary: default /etc/mail/Makefile makes unreadable by smmsp
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: sendmail
Version: 8.0
Hardware: i386
OS: Linux
Target Milestone: ---
Assignee: Florian La Roche
QA Contact: David Lawrence
Depends On:
TreeView+ depends on / blocked
Reported: 2003-04-07 03:37 UTC by Dave Miller
Modified: 2007-04-18 16:52 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2003-04-15 09:09:07 UTC

Attachments (Terms of Use)

Description Dave Miller 2003-04-07 03:37:58 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.4a)

Description of problem:
When running make in /etc/mail, the file becomes owned by root:root,
and permissions set to whatever umask the root user was operating in at the
time.  I'm not sure whether ours is using the default or not, but our root
user's default umask is 77.  This produces a file that is mode 600,
owned by root, and thus can't be read by the smmsp user when users submit mail

I fixed this locally with the following changes to the Makefile: :
+       @if test -f /usr/share/sendmail-cf/m4/cf.m4; then \
+               mv -f $@ $@.bak; \
+               m4 $< > $@; \
+       fi;
+ :
        @if test -f /usr/share/sendmail-cf/m4/cf.m4; then \
+                umask 22; \
                mv -f $@ $@.bak; \
                m4 $< > $@; \

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

How reproducible:

Steps to Reproduce:
1. umask 77
2. cd /etc/mail
3. make
4. sendmail -ti (or submit a webform that emails)
5. (submit an email)

Actual Results:  Apr  6 19:28:44 sinclair sendmail[14608]: NOQUEUE:
SYSERR(apache): /etc/mail/ line 0: cannot open: Permission denied

Expected Results:  mail is delivered.

Additional info:

classifying as "loss of data" since this causes locally submitted mail to fail.

Comment 1 Florian La Roche 2003-04-15 09:09:07 UTC
I have added a "umask 022" before building .cf files.

Thanks a lot for this bug-report,

Florian La Roche

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