From owner-freebsd-questions@FreeBSD.ORG Thu Feb 26 19:40:50 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 01F8CC3C for ; Thu, 26 Feb 2015 19:40:50 +0000 (UTC) Received: from ms-10.1blu.de (ms-10.1blu.de [178.254.4.101]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id AC305A7D for ; Thu, 26 Feb 2015 19:40:49 +0000 (UTC) Received: from [89.15.238.224] (helo=localhost.unixarea.de) by ms-10.1blu.de with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.76) (envelope-from ) id 1YR4IA-0003D5-Rr; Thu, 26 Feb 2015 20:40:15 +0100 Received: from localhost.my.domain (c720-r276659 [127.0.0.1]) by localhost.unixarea.de (8.14.9/8.14.9) with ESMTP id t1QJeDhJ002710 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Thu, 26 Feb 2015 20:40:13 +0100 (CET) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by localhost.my.domain (8.14.9/8.14.9/Submit) id t1QJeCDA002709; Thu, 26 Feb 2015 20:40:12 +0100 (CET) (envelope-from guru@unixarea.de) X-Authentication-Warning: localhost.my.domain: guru set sender to guru@unixarea.de using -f Date: Thu, 26 Feb 2015 20:40:12 +0100 From: Matthias Apitz To: Lowell Gilbert Subject: Re: sendmail && dhcp Message-ID: <20150226194012.GA2695@c720-r276659> Reply-To: Matthias Apitz Mail-Followup-To: Matthias Apitz , Lowell Gilbert , freebsd-questions@freebsd.org References: <20150226144245.GA1346@c720-r276659> <44bnkgsmcl.fsf@lowell-desk.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <44bnkgsmcl.fsf@lowell-desk.lan> X-Operating-System: FreeBSD 11.0-CURRENT r269739 (i386) User-Agent: Mutt/1.5.23 (2014-03-12) X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 89.15.238.224 Cc: 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 19:40:50 -0000 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 -- Matthias Apitz, guru@unixarea.de, http://www.unixarea.de/ +49-170-4527211 La referencia de la Duma a la anexión de la RDA, en este caso al contrario con la Crimlía sin referéndum, no solamente tiene gracia sino da en el blanco.- Marinos Yannikos @MarinosYannikos en un blog de RTdeutsch.