From owner-freebsd-questions@FreeBSD.ORG Mon Mar 31 21:00:43 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6479A106564A for ; Mon, 31 Mar 2008 21:00:43 +0000 (UTC) (envelope-from fbsd.questions@rachie.is-a-geek.net) Received: from snoogles.rachie.is-a-geek.net (rachie.is-a-geek.net [66.230.99.27]) by mx1.freebsd.org (Postfix) with ESMTP id 367CB8FC28 for ; Mon, 31 Mar 2008 21:00:43 +0000 (UTC) (envelope-from fbsd.questions@rachie.is-a-geek.net) Received: from localhost (localhost [127.0.0.1]) by snoogles.rachie.is-a-geek.net (Postfix) with ESMTP id 243991CC91; Mon, 31 Mar 2008 13:00:42 -0800 (AKDT) From: Mel To: freebsd-questions@freebsd.org Date: Mon, 31 Mar 2008 23:00:39 +0200 User-Agent: KMail/1.9.7 References: <20080331200620.GA75067@aleph.cepheid.org> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200803312300.40087.fbsd.questions@rachie.is-a-geek.net> Cc: Gilles Subject: Re: [6.3] How are those daemons started? 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: Mon, 31 Mar 2008 21:00:43 -0000 On Monday 31 March 2008 22:27:55 Gilles wrote: > On Mon, 31 Mar 2008 15:06:20 -0500, Erik Osterholm > > wrote: > >Also note /etc/defaults/rc.conf which is /why/ these services > >are on by default. Entries in /etc/rc.conf override entries in > >/etc/defaults/rc.conf, so you should never change > >/etc/defaults/rc.conf. > > Thanks guys. After reading /etc/defaults/rc.conf, I understood that > the reason there's sendmail listening on TCP25 is so that local > daemons can send e-mail to the admin. Somewhat. Most daemons can do fine without the socket listener and invoke /usr/sbin/sendmail by default. Only ones that can't get to /usr/sbin/sendmail (i.e.: chrooted daemons), but in my experience they don't know how to talk SMTP either. I guess it's legacy that MTA's start their SMTP listener by default. You can set sendmail_enable="NO" in /etc/rc.conf to disable the listener. If you set it to "NONE" sendmail will be totally off and all mail from daemons invoking /usr/sbin/sendmail will end up in /var/spool/mqueue without being processed further. If you choose to go with the "NO" option, be sure to read and update /etc/aliases. The difference between mail stacking up in /var/spool/mqueue or /var/mail is only the packaging. Informative reading: newaliases(8), crontab(5) and periodic(8). -- Mel Problem with today's modular software: they start with the modules and never get to the software part.