Date: Tue, 18 Jun 2002 15:30:03 -0700 (PDT) From: "Jin Guojun[DSD]" <j_guojun@lbl.gov> To: freebsd-bugs@FreeBSD.org Subject: Re: conf/39444: rc.sendmail syntax error: cannot disable sendmail Message-ID: <200206182230.g5IMU3x24519@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR conf/39444; it has been noted by GNATS. From: "Jin Guojun[DSD]" <j_guojun@lbl.gov> To: "Crist J. Clark" <cjc@FreeBSD.ORG> Cc: FreeBSD-gnats-submit@FreeBSD.ORG, dougb@FreeBSD.ORG Subject: Re: conf/39444: rc.sendmail syntax error: cannot disable sendmail Date: Tue, 18 Jun 2002 15:28:22 -0700 "Crist J. Clark" wrote: > > On Mon, Jun 17, 2002 at 03:00:31PM -0700, Jin Guojun wrote: > [snip] > > > /etc/defaults/rc.conf says: > > sendmail_enable="YES" # Run the sendmail inbound daemon (YES/NO/NONE). > > > > > > /etc/rc.sendmail does: (only working for NONE, but not NO) > > > > case ${sendmail_enable} in > > [Nn][Oo][Nn][Ee]) > > > > > > The correct syntax is: > > > > case ${sendmail_enable} in > > [Nn][Oo][Nn][Ee] | [Nn][Oo]) > > > > > > If No/NO/no/nO cannot be used, please state so. But, this is not a usual way > > to disable something. > > So, please apply the patch to rc.sendmail. > > "NO" _can_ be used. It's meaning is different than "NONE." "NO" means > not to run the sendmail(8) listener, but the submitting and 'outbound' > daemons can still be run. sendmail does not need to run on background to send/submit outbound mail. The backgrounding daemon is solely for receiving inbound message. I like your explanation of the way to use "NO", but I do not know if rc.sendmail does it correctly. Below is what sendmail_enable="NO" does: freebsd: ps xaugww | grep sendmail root 122 0.0 1.8 2760 2228 ?? Ss 3:28PM 0:02.90 sendmail: accepting connections (sendmail) smmsp 125 0.0 1.7 2652 2192 ?? Is 3:28PM 0:00.07 sendmail: Queue runner@00:30:00 for /var/spool/clientmqueue (sendmail) Does process 122 accept message only from localhost or from anywhere? Is this really "NO" action, or "YES" action? > See rc.sendmail(8) for details. If you feel the documentation is > lacking, please submit a new PR with your ideas for improvements, but > the code works as desired. Nop, the manual page does not say "NO" can be used any where. If "NO" cannot be used, then, it is not compatible to existing sys-admin syntax. It forces to use "NONE" instead of "NO" as Doug's message in closing this case: : While it's not totally clear in the script, setting : sendmail_enable to NONE will indeed prevent anything : in that script from running. His message is negtive on using "NO". I think the current situation is very unclear. If "NO" is out of scope, what is the extreme reason to use "NONE"? If "NO" can be used, then things will be correct if process 122 accepts message from localhost only. Is this true? If so, the document needs to reflect this situation. Otherwise, people will get confused because sendmail is no required to run on the background for outbound traffic in the past. # man rc.sendmail ... sendmail_enable (str) If set to ``YES'', run the sendmail(8) daemon at system boot time. If set to ``NONE'', do not run any sendmail(8) dae- mons at system boot time. These variables are used to determine how the sendmail(8) daemons are started: # MTA if (${sendmail_enable} == NONE) # Do nothing else if (${sendmail_enable} == YES) start sendmail with ${sendmail_flags} else if (${sendmail_submit_enable} == YES) start sendmail with ${sendmail_submit_flags} else if (${sendmail_outbound_enable} == YES) start sendmail with ${sendmail_outbound_flags} endif -- ------------ Jin Guojun ----------- v --- j_guojun@lbl.gov --- Distributed Systems Department http://www.itg.lbl.gov/~jin M/S 50B-2239 Ph#:(510) 486-7531 Fax: 486-6363 Lawrence Berkeley National Laboratory, Berkeley, CA 94720 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200206182230.g5IMU3x24519>