Bug 41365

Summary: Case statement in "start_mta()" function in rc.sendmail conflicts with rc.conf
Product: Base System Reporter: Evan Reisman <ebreis>
Component: miscAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   

Description Evan Reisman 2002-08-06 04:10:01 UTC
      The case statement in the start_mta() and start_mspq() functions in rc.sendmail requires the condition [Nn][Oo][Nn][Ee] instead of the condition [Nn][Oo] which is established during the install in rc.conf.  Thus, sendmail starts even if configure as sendmail_enable="NO'' in rc.conf.  In the case of a machine that does not have a domain name, the startup hangs while sendmail tries to resolve name - must press control-c to pass hangup.

Fix: 

Change both case statements in the functions to act on the condition [Nn][Oo] instead of [Nn][Oo][Nn][Ee]
How-To-Repeat:       N/A
Comment 1 Crist J. Clark freebsd_committer freebsd_triage 2002-08-09 06:55:12 UTC
State Changed
From-To: open->closed

This is the desired behavior. It is well documented. See the _long_ 
threads on various mailing lists discussing the change, see UPDATING 
(the 20020404 entry), see rc.sendmail(8), etc.