Bug 39887

Summary: /stand/sysinstall doesn't set sendmail_enable correctly in rc.conf
Product: Base System Reporter: Phillip Nordwall <coldfire-freebsd>
Component: confAssignee: matusita
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.6-RELEASE   
Hardware: Any   
OS: Any   

Description Phillip Nordwall 2002-06-26 16:20:02 UTC
     If you try to make it so that sendmail doesn't run using /stand/sysinstall, configure, networking, Sendmail (This machine wants to run sendmail) it puts an entry into /etc/rc.conf of
sendmail_enable="NO".
     Upon startup of the machine sendmail still runs. If you change the entry from
     sendmail_enable="NO"
to
     sendmail_enable="NONE"
sendmail won't start at startup.

Fix: 

Change what /stand/sysinstall writes to /etc/rc.conf or change rc.sendmail to accept sendmail_enable="NO"
How-To-Repeat:      Use /stand/sysinstall to make sure sendmail doesn't run. Take a look in /etc/rc.conf for
sendmail_enable="NO"
restart the machine, and sendmail will run.
Comment 1 Makoto Matsushita 2002-06-26 17:03:44 UTC
coldfire-freebsd> If you try to make it so that sendmail doesn't run
coldfire-freebsd> using /stand/sysinstall, configure, networking,
coldfire-freebsd> Sendmail (This machine wants to run sendmail) it
coldfire-freebsd> puts an entry into /etc/rc.conf of
coldfire-freebsd> sendmail_enable="NO".

I doubt if you are NOT using sysinstall bundled with 4.6-RELEASE.
Would you please check where your sysinstall comes from?

In 4.6-RELEASE's sysinstall, "Sendmail" item in "Network" menu is not
a toggle option.  You can choice YES, NO, and NONE with additional menu.

-- -
Makoto `MAR' Matsushita
Comment 2 matusita freebsd_committer freebsd_triage 2002-06-26 17:04:07 UTC
State Changed
From-To: open->feedback

It seems that originator doesn't use sysinstall as of 4.6-RELEASE. 
Waiting feedbacks. 


Comment 3 matusita freebsd_committer freebsd_triage 2002-06-26 17:04:07 UTC
Responsible Changed
From-To: freebsd-bugs->matusita

I'll handle this.
Comment 4 rees 2003-03-26 21:19:28 UTC
This bug still exists in 5.0.  Phillip Nordwall's
<coldfire-freebsd@wcug.wwu.edu> analysis and suggested solution is correct.

I bought a FreeBSD 5.0 CD and installed it on a virgin machine, so there is
no question as to which version of sysinstall I have.

During the install, I said that I did not want sendmail, but when I
rebooted, it was running.

I suggest fixing /etc/rc.d/sendmail so it will accept "NO" in addition to
"NONE".

% grep sendmail /etc/rc.conf
sendmail_enable="NO"
% ps ax |grep sendmail
  406  ??  Ss     0:00.01 sendmail: accepting connections (sendmail)
  409  ??  Is     0:00.00 sendmail: Queue runner@00:30:00 for /var/spool/client
% cat /var/run/sendmail.pid
406
/usr/sbin/sendmail -L sm-mta -bd -q30m -ODaemonPortOptions=Addr=localhost
Comment 5 Matteo Riondato 2005-03-28 20:32:22 UTC
I think this PR can be closed: I tried to reproduce it and I didn't
suceeded. If I choose not to enable sendmail, I get
"sendmail_enable="NONE" in rc.conf.
I think this was fixed on 2003/07/12 by throdes with revision 1.374 of
src/usr.sbin/sysinstall/menus.c

Best Regards

-- 
Rionda aka Matteo Riondato
G.U.F.I. Staff Member (http://www.gufi.org)
FreeSBIE Developer (http://www.freesbie.org)
Comment 6 Mark Linimon freebsd_committer freebsd_triage 2005-03-28 23:30:03 UTC
State Changed
From-To: feedback->closed

Reportedly fixed way back in 2003.