From owner-freebsd-questions@FreeBSD.ORG Thu Feb 26 21:38:14 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 05BF4AEA; Thu, 26 Feb 2015 21:38:14 +0000 (UTC) Received: from www81.your-server.de (www81.your-server.de [213.133.104.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E5970ACB; Thu, 26 Feb 2015 21:38:12 +0000 (UTC) Received: from [213.239.211.40] (helo=gurder.ross.cx) by www81.your-server.de with esmtpa (Exim 4.80.1) (envelope-from ) id 1YR5p7-000257-W6; Thu, 26 Feb 2015 22:18:22 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Date: Thu, 26 Feb 2015 22:18:18 +0100 From: Michael Ross To: Matthias Apitz , Lowell Gilbert , freebsd-questions@freebsd.org Subject: Re: sendmail && dhcp In-Reply-To: <20150226194012.GA2695@c720-r276659> References: <20150226144245.GA1346@c720-r276659> <44bnkgsmcl.fsf@lowell-desk.lan> <20150226194012.GA2695@c720-r276659> Message-ID: X-Sender: gmx@ross.cx User-Agent: Roundcube Webmail/1.1.0 X-Authenticated-Sender: gmx@ross.cx X-Virus-Scanned: Clear (ClamAV 0.98.5/20116/Thu Feb 26 18:47:13 2015) Cc: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Feb 2015 21:38:14 -0000 Am 2015-02-26 20:40, schrieb Matthias Apitz: > El día Thursday, February 26, 2015 a las 10:50:50AM -0500, Lowell > Gilbert escribió: > >> Matthias Apitz writes: >> >> > What would be the best way to restart (or defer the start of sendmail) >> > until the correct DNS is in place? For the tun interface I'm using a >> > devd(8) hook, but I'm looking more for a general solution. >> >> dhclient-script(8) is one way. > > Thanks for the hint. I've played around with the hooks script > /etc/dhclient-exit-hooks; but this is not invoked when PPP brings up > the > interface tun(4), routing etc. because this is not done by dhclient(8), > but directly by the pppd(8) and its hooks. > > matthias /etc/ppp/ppp.link(up|down) ? Quote man ppp: If the /etc/ppp/ppp.linkup file is available, its contents are executed when the PPP connection is established. Michael