From owner-freebsd-questions@FreeBSD.ORG Tue Sep 14 17:52:59 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A9DFE1065675 for ; Tue, 14 Sep 2010 17:52:59 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from ms16-1.1blu.de (ms16-1.1blu.de [89.202.0.34]) by mx1.freebsd.org (Postfix) with ESMTP id 29D628FC1C for ; Tue, 14 Sep 2010 17:52:58 +0000 (UTC) Received: from [109.84.233.145] (helo=tiny.Sisis.de.) by ms16-1.1blu.de with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1OvZgb-0003DB-Kz; Tue, 14 Sep 2010 19:52:54 +0200 Received: from tiny.Sisis.de. (localhost [127.0.0.1]) by tiny.Sisis.de. (8.14.3/8.14.3) with ESMTP id o8EHuAat001108; Tue, 14 Sep 2010 19:56:11 +0200 (CEST) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by tiny.Sisis.de. (8.14.3/8.14.3/Submit) id o8EHu9Cu001107; Tue, 14 Sep 2010 19:56:09 +0200 (CEST) (envelope-from guru@unixarea.de) X-Authentication-Warning: tiny.Sisis.de.: guru set sender to guru@unixarea.de using -f Date: Tue, 14 Sep 2010 19:56:09 +0200 From: Matthias Apitz To: Terrence Koeman Message-ID: <20100914175608.GA1060@tiny.Sisis.de> Mail-Followup-To: Matthias Apitz , Terrence Koeman , tomasz dereszynski , "freebsd-questions@freebsd.org" References: <254c61d2cccd564d8fd93ae56635d6c0@mediamonks.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <254c61d2cccd564d8fd93ae56635d6c0@mediamonks.com> User-Agent: Mutt/1.4.2.3i X-Operating-System: FreeBSD 8.0-CURRENT (i386) X-Con-Id: 51246 X-Originating-IP: 109.84.233.145 Cc: tomasz dereszynski , "freebsd-questions@freebsd.org" Subject: Re: sendmail && resolv.conf changes X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Matthias Apitz List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Sep 2010 17:52:59 -0000 El día Tuesday, September 14, 2010 a las 05:49:07PM +0200, Terrence Koeman escribió: > > > What I wanted to say: sendmail runs and DHCP changes in certain > > > situations the IP, routing and DNS, and sendmail does not adopt on > > these > > > changes. > > > > > It might be an idea to (mis)use the "script" option in dhclient.conf to restart sendmail (/etc/rc.d/sendmail restart) after a lease has been aquired. See 'man dhclient.conf'. Actually I'm using hooks in devd(8) like: $ cat /usr/local/etc/devd/tun6.conf notify 0 { match "system" "IFNET"; match "subsystem" "tun6"; match "type" "LINK_UP"; action "/usr/local/etc/devd/tun6.sh $subsystem $type"; }; $ cat /usr/local/etc/devd/tun6.sh #!/bin/sh # echo `date`: $0 $* >> /tmp/devd.out ( sleep 30 ; echo Doing: /etc/rc.d/sendmail onerestart >> /tmp/devd.out ; /etc/rc.d/sendmail onerestart ; ) exit 0 for each interface which might come up; but I was thinking that there must be a more general solution in sendmail or DNS itself; in any case, thanks for your idea; > ... > Please quote all replies in correspondence. No. See netiquette RFC: http://www.faqs.org/rfcs/rfc1855.html matthias -- Matthias Apitz t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e - w http://www.unixarea.de/ Solidarity with the zionistic pirates of Israel? Not in my name! ¿Solidaridad con los piratas sionistas de Israel? ¡No en mi nombre!