From owner-freebsd-ports@FreeBSD.ORG Thu Aug 12 16:49:30 2004 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E208716A4CE; Thu, 12 Aug 2004 16:49:30 +0000 (GMT) Received: from horsey.gshapiro.net (horsey.gshapiro.net [64.105.95.154]) by mx1.FreeBSD.org (Postfix) with ESMTP id ABE2843D1D; Thu, 12 Aug 2004 16:49:30 +0000 (GMT) (envelope-from gshapiro@gshapiro.net) Received: from horsey.gshapiro.net (localhost [127.0.0.1]) i7CGnUwK043154 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 12 Aug 2004 09:49:30 -0700 (PDT) Received: (from gshapiro@localhost)i7CGnUij043153; Thu, 12 Aug 2004 09:49:30 -0700 (PDT) Date: Thu, 12 Aug 2004 09:49:30 -0700 From: Gregory Neil Shapiro To: Andrey Chernov Message-ID: <20040812164930.GZ11227@horsey.gshapiro.net> References: <20040808055343.GA572@nagual.pp.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040808055343.GA572@nagual.pp.ru> User-Agent: Mutt/1.5.6i cc: ports@freebsd.org cc: freebsd-rc@freebsd.org Subject: Re: sendmail starts too early? X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Aug 2004 16:49:31 -0000 On Sun, Aug 08, 2004 at 09:53:44AM +0400, Andrey Chernov wrote: > There is a problem using sendmail with milters, which usually lives in > /usr/local/* and starts from /usr/local/etc/rc.d/* > > Currently, sendmail starts before them, which produce this example > diagnostic: > > Starting sendmail. > WARNING: Xsentinel: local socket name /var/spool/sentinel/sentinel.socket missing > WARNING: Xantivir-milter: local socket name /var/spool/avmilter/avmilter.sock missing > > When they starts afterwards, situation normalizes, but there is a gap > between, where whole system can reject or do something potentially wrong > with messages. > > Since converting each milter startup script under rc.subr technology is > painful task, what about starting sendmail _after_ /etc/rc.d/localpkg > starts? I see no drawback in that case. I personally don't see a problem in that unless some of the /usr/local/etc/rc.d/ scripts require an MTA to be running by the time they start. If things are going to change in this area, I would also suggest moving virecover to after sendmail starts (currently it is before) as that script's purpose is to mail users telling them that recovery files exist. Likewise, the resolv and nsswitch scripts should run before sendmail starts (currently they are run after) since they will both impact sendmail's operation. This should however be passed by the rc.d folks as well (freebsd-rc Cc'ed).