From owner-freebsd-questions Fri Feb 15 16:57: 3 2002 Delivered-To: freebsd-questions@freebsd.org Received: from falcon.prod.itd.earthlink.net (falcon.mail.pas.earthlink.net [207.217.120.74]) by hub.freebsd.org (Postfix) with ESMTP id AA97D37B400 for ; Fri, 15 Feb 2002 16:57:00 -0800 (PST) Received: from dialup-65.56.141.188.dial1.chicago1.level3.net ([65.56.141.188] helo=there) by falcon.prod.itd.earthlink.net with smtp (Exim 3.33 #1) id 16bt9V-0007BD-00; Fri, 15 Feb 2002 16:56:34 -0800 Content-Type: text/plain; charset="iso-8859-1" From: Bob Giesen To: Cliff Sarginson , FreeBSD List Subject: Re: Sendmail startup, oddness in /etc/rc Date: Fri, 15 Feb 2002 18:56:29 -0600 X-Mailer: KMail [version 1.3] References: <20020215225227.GA275@raggedclown.net> <20020216000629.GA261@raggedclown.net> In-Reply-To: <20020216000629.GA261@raggedclown.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: 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 Friday 15 February 2002 06:06 pm, Cliff Sarginson wrote: > 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. ... learn something new every day. > 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. I presume you checked mailer.conf to make sure it got updated properly... If it did, I wonder if postfix needs sendmail.cf. If not, I'd be tempted to take a look at the mailwrapper code. I agree, it does seem odd, now that I understand it a little better -- albeit not well enough. A little knowledge, of course, can be dangerous. :-) > man 8 mailwrapper > > explains it all :) ... almost. -- "A wise man never refuses anything to necessity." -- Publius Syrus, 42 B.C. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message