From owner-freebsd-questions Fri Feb 15 16: 6:34 2002 Delivered-To: freebsd-questions@freebsd.org Received: from post.mail.nl.demon.net (post-11.mail.nl.demon.net [194.159.73.21]) by hub.freebsd.org (Postfix) with ESMTP id 76C7F37B404 for ; Fri, 15 Feb 2002 16:06:31 -0800 (PST) Received: from [212.238.194.207] (helo=mailhost.raggedclown.net) by post.mail.nl.demon.net with esmtp (Exim 3.33 #1) id 16bsN4-0006oE-00 for freebsd-questions@freebsd.org; Sat, 16 Feb 2002 00:06:30 +0000 Received: from angel.raggedclown.net (angel.raggedclown.intra [192.168.1.7]) by mailhost.raggedclown.net (Ragged Clown Mail Gateway [buffy]) with ESMTP id E613A13040 for ; Sat, 16 Feb 2002 01:06:29 +0100 (CET) Received: by angel.raggedclown.net (Ragged Clown Host [angel], from userid 1001) id 8FFE3225BC; Sat, 16 Feb 2002 01:06:29 +0100 (CET) Date: Sat, 16 Feb 2002 01:06:29 +0100 From: Cliff Sarginson To: FreeBSD List Subject: Re: Sendmail startup, oddness in /etc/rc Message-ID: <20020216000629.GA261@raggedclown.net> References: <20020215225227.GA275@raggedclown.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.27i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, Feb 15, 2002 at 05:36:34PM -0600, Bob Giesen wrote: > On Friday 15 February 2002 04:52 pm, Cliff Sarginson wrote: > > Hello, > > While investigating how to delay the startup of my mail system > > until later in the boot process I discovered something a bit odd. I > > use postfix, and it is all setup as it is supposed to with the mail > > wrapper etc. I thought I would check how it is started in /etc/rc. > > > > However "sendmail_enable" set to "YES" in /etc/rc.conf does not > > work unless it finds /etc/mail/sendmail.cf ! This surely cannot be > > correct except for users of (the real) sendmail. > > > > I suppose it is harmless, but if you use another MTA what do you > > need sendmail.cf for ? > > JOOC, if you use another MTA, why would sendmail_enable be needed > in rc.conf? Doesn't that line (when set to "YES") actually start the > sendmail daemon? > I may be wrong, but I think that, by virtue of having that line in > rc.conf (or defaults/rc.conf), you unwittingly tried to make yourself > a user of the real sendmail. If so, the missing config (.cf) file > just prevented it from acutally happening. :-) > No that is not how it works .. FreeBSD uses a mailwrapper program. So when you install postfix for example, it configures the wrapper to call the postfix sendmail rather than the real sendmail. So enabling sendmail in rc.conf starts whatever MTA you have installed. man 8 mailwrapper explains it all :) -- Regards Cliff To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message