Bug 25639

Summary: /etc/mail/Makefile does not source /etc/rc.conf when starting sendmail
Product: Base System Reporter: Esa Karkkainen <ejk>
Component: confAssignee: Gregory Neil Shapiro <gshapiro>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.2-STABLE   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description Esa Karkkainen 2001-03-09 19:30:01 UTC
	Sendmail starts with incorrect parameters, assuming you have 
added customized sendmail_flags variable to /etc/rc.conf or /etc/rc.conf.local,
when started the following way

# cd /etc/mail
# make start

Fix: Apply the following patch to /etc/mail/Makefile
How-To-Repeat: 
# grep sendmail_flags /etc/rc.conf
# sendmail_flags="-bd -q30m -oOA=127.0.0.1"
# cat /var/run/sendmail.pid 
190
/usr/sbin/sendmail -bd -q30m -oOA=127.0.0.1
# sudo make stop                
/bin/kill -TERM `head -1 /var/run/sendmail.pid`
# make start
(. /etc/defaults/rc.conf; if [ "${sendmail_enable}" = "YES" -a -r 
/etc/mail/sendmail.cf ]; then  /usr/sbin/sendmail ${sendmail_flags};  fi  )
# cat /var/run/sendmail.pid 
11941
/usr/sbin/sendmail -bd -q30m
Comment 1 Esa Karkkainen 2001-03-13 20:06:06 UTC
Hi

	There are couple of typos in the original pr I submitted.r

My e-mail address is ejk@iki.fi

and "# " chars in front of 'sendmail_flags="-bd -q30m -oOA=127.0.0.1"'

-- 
There is no spoon
Comment 2 Gregory Neil Shapiro freebsd_committer freebsd_triage 2001-03-13 21:04:57 UTC
State Changed
From-To: open->feedback

Patch applied to HEAD (-CURRENT).  The PR will be closed when it is 
MFC'ed to RELENG_4 (-STABLE). 


Comment 3 Gregory Neil Shapiro freebsd_committer freebsd_triage 2001-03-13 21:04:57 UTC
Responsible Changed
From-To: freebsd-bugs->gshapiro

Given to sendmail maintainer.
Comment 4 Gregory Neil Shapiro freebsd_committer freebsd_triage 2001-03-19 19:45:17 UTC
State Changed
From-To: feedback->closed

The submitter's fix has been applied to RELENG_4 as well.