From owner-freebsd-questions@FreeBSD.ORG Tue Sep 14 09:28:19 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 9EBFC1065670 for ; Tue, 14 Sep 2010 09:28:19 +0000 (UTC) (envelope-from tomaszd@paraklet.net) Received: from bxc133.internetdsl.tpnet.pl (bxc133.internetdsl.tpnet.pl [83.18.236.133]) by mx1.freebsd.org (Postfix) with ESMTP id 1E66F8FC13 for ; Tue, 14 Sep 2010 09:28:17 +0000 (UTC) Received: (qmail 2577 invoked by uid 0); 14 Sep 2010 09:28:13 -0000 Received: from 127.0.0.1 by first.magraf.pl (envelope-from , uid 0) with qmail-scanner-2.01st (clamdscan: 0.95.3/11901. spamassassin: 3.2.5. perlscan: 2.01st. Clear:RC:1(127.0.0.1):. Processed in 0.050112 secs); 14 Sep 2010 09:28:13 -0000 Received: from localhost.magraf.pl (HELO paraklet.net) (127.0.0.1) by bxc133.internetdsl.tpnet.pl with SMTP; 14 Sep 2010 09:28:13 -0000 Received: from 85.115.34.41 (SquirrelMail authenticated user tomaszd@paraklet.net) by paraklet.net with HTTP; Tue, 14 Sep 2010 10:28:13 +0100 Message-ID: In-Reply-To: <20100914085445.GA1854@current.Sisis.de> References: <20100914080141.GA2286@current.Sisis.de> <20100914085445.GA1854@current.Sisis.de> Date: Tue, 14 Sep 2010 10:28:13 +0100 From: "tomasz dereszynski" To: "Matthias Apitz" , freebsd-questions@freebsd.org User-Agent: SquirrelMail/1.4.20 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Cc: Subject: Re: sendmail && resolv.conf changes X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Sep 2010 09:28:19 -0000 > El día Tuesday, September 14, 2010 a las 09:15:49AM +0100, tomasz > dereszynski escribió: > >> >> > >> > Hello, >> > >> > When using a laptop it is normal that there are some changes in >> > resolv.conf during the live, for example: >> > >> > boot time: no network available >> > start of PPP over UMTS: resolv.conf from provider >> > start VPN to connect to company: resolv.conf from company >> > ... >> > >> > it seems that sendmail is not aware of such changes in the resolv.conf >> > and always get stuck with the old DNS and ofc does not work on >> incoming >> > mails (provided by fetchmail). A restart helps, but is there some >> better >> > way to let sendmail switch to the new DNS environment when resolv.conf >> > changes? >> > >> > Thanks >> > >> My very wide guess would be that Sendmail starts before system obtain >> network settings from DHCP. > > Your guess is correct :-) > > 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. delay Sendmail start to after network settings loaded from DHCP. not sure if there is any 'documentation correct' way of doing that but 'home crafted' one would be to move /etc/rc.sendmail to /usr/local/etc/rc.d/blah.sendmail.sh and remove it from rc.config hope someone here knows more proper way and can advise. -- bEsT rEgArDs | "Confidence is what you have before you tomasz dereszynski | understand the problem." -- Woody Allen | Spes confisa Deo | "In theory, theory and practice are much numquam confusa recedit | the same. In practice they are very | different." -- Albert Einstein