From owner-freebsd-questions@FreeBSD.ORG Thu Apr 27 01:37:01 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A5E5A16A401 for ; Thu, 27 Apr 2006 01:37:01 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from igloo.linux.gr (igloo.linux.gr [62.1.205.36]) by mx1.FreeBSD.org (Postfix) with ESMTP id DDB6543D46 for ; Thu, 27 Apr 2006 01:36:58 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from gothmog.pc (aris.bedc.ondsl.gr [62.103.39.226]) (authenticated bits=128) by igloo.linux.gr (8.13.6/8.13.6/Debian-1) with ESMTP id k3R1aU8t021348 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 27 Apr 2006 04:36:37 +0300 Received: from gothmog.pc (gothmog [127.0.0.1]) by gothmog.pc (8.13.6/8.13.6) with ESMTP id k3R1aWjO068340; Thu, 27 Apr 2006 04:36:32 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Received: (from giorgos@localhost) by gothmog.pc (8.13.6/8.13.6/Submit) id k3R1aWCS068339; Thu, 27 Apr 2006 04:36:32 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Date: Thu, 27 Apr 2006 04:36:32 +0300 From: Giorgos Keramidas To: applecom@inbox.ru Message-ID: <20060427013631.GA68213@gothmog.pc> References: <4450132C.2050401@inbox.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4450132C.2050401@inbox.ru> X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (score=-3.39, required 5, autolearn=not spam, ALL_TRUSTED -1.80, AWL 0.81, BAYES_00 -2.60, DNS_FROM_RFC_ABUSE 0.20) X-Hellug-MailScanner-From: keramida@ceid.upatras.gr X-Spam-Status: No Cc: freebsd-questions@freebsd.org Subject: Re: sendmail_enable in rc.conf X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Apr 2006 01:37:01 -0000 On 2006-04-27 06:41, applecom@inbox.ru wrote: > I have FreeBSD 6.0-RELEASE. > It seems there is collision between /etc/defaults/rc.conf and > /etc/rc.sendmail in sendmail startup control. > In /etc/defaults/rc.conf: > sendmail_enable="NO" # Run the sendmail inbound daemon (YES/NO). > In /etc/rc.sendmail: > "<...> > start_mta() > { > case ${sendmail_enable} in > [Nn][Oo][Nn][Ee]) > ;; > <...>". > > So sendmail doesn't startup during system startup only if there is > "sendmail_enable="NONE"" in /etc/rc.conf. True. > Maybe I don't understand something? Yes, you are missing something. The `sendmail_enable' variable is overloaded for two different purposes, which do not necessarily conflict with each other. sendmail_enable="NO" This disables _only_ the ``inbound Sendmail daemon''. sendmail_enable="NONE" This value disables _all_ Sendmail daemons. The fine difference here is that in recent Sendmail versions, Sendmail can run one or more daemons for: - Receiving email messages from local programs. This is the submission daemon, listening by default only to port 127.0.0.1:25. The fine-grained tunable for this daemon is `sendmail_submit_enable'. - Handing off locally submitted messages from the `submit' queue to a mail relay server (`SMART_HOST' in Sendmail's language). This is very useful when combined with `sendmail_submit_enable' if you are not running a publicly visible mail server. You can use the `submit' daemon as a queueing mechanism for locally sent email and periodically flush its queue, sending all outgoing messages on their way out with the Sendmail MSP queue runner. The tunable for the MSP queue runner is `sendmail_msp_queue_enable'. | NOTE: With these two options (`sendmail_submit_enable' and its | companion, `sendmail_msp_queue_enable') in mind, my usual | `rc.conf' options for workstation machines, that mostly send | local email to local users and forward everything else through a | SMART_HOST to the world, are: | | sendmail_enable="NO" | sendmail_outbound_enable="NO" | sendmail_submit_enable="YES" | sendmail_msp_queue_enable="YES" | | This, and a proper `SMART_HOST' in my `/etc/mail/sendmail.mc' | file, are all it takes to have email flowing out of a simple | workstation system. - On a publicly visible mail server (i.e. one that hosts email for one or more domains that are visible on the wide Internet), you will almost certainly need to use sendmail_enable="YES" too, to make sure a Sendmail daemon listens on all the non-localhost interfaces. - The fourth option, `sendmail_outbound_enable', is something you will probably never need with Sendmail. Don't worry about it yet.