From owner-freebsd-questions Thu Jun 13 12:56: 5 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mailsrv.otenet.gr (mailsrv.otenet.gr [195.170.0.5]) by hub.freebsd.org (Postfix) with ESMTP id 2A89837B407 for ; Thu, 13 Jun 2002 12:55:48 -0700 (PDT) Received: from hades.hell.gr (patr530-a180.otenet.gr [212.205.215.180]) by mailsrv.otenet.gr (8.12.3/8.12.3) with ESMTP id g5DJteXM009905; Thu, 13 Jun 2002 22:55:41 +0300 (EEST) Received: from hades.hell.gr (hades [127.0.0.1]) by hades.hell.gr (8.12.3/8.12.3) with ESMTP id g5DJtMFs000472; Thu, 13 Jun 2002 22:55:31 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Received: (from charon@localhost) by hades.hell.gr (8.12.3/8.12.3/Submit) id g5DCTl1M002792; Thu, 13 Jun 2002 15:29:47 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Date: Thu, 13 Jun 2002 15:29:47 +0300 From: Giorgos Keramidas To: Jonathan Chen Cc: robert at castley dot com , freebsd-questions@FreeBSD.org Subject: Re: PPP link and sendmail Message-ID: <20020613122946.GD1991@hades.hell.gr> References: <000801c212b0$6050d750$1601a8c0@charlie> <20020613201259.A65055@grimoire.chen.org.nz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020613201259.A65055@grimoire.chen.org.nz> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 2002-06-13 20:12 +1200, Jonathan Chen wrote: > On Thu, Jun 13, 2002 at 09:00:23AM +0100, robert at castley dot com wrote: > > Hi, > > > > I have configured PPP as per the guidelines and it is working a > > treat, but as I am running sendmail on my PPP gateway box I keep > > getting the error: > > > > Jun 13 08:57:48 freebsd sendmail[4414]: gethostbyaddr(127.1.1.1) > > failed: 1 > > > > In my ppp.conf I have the following: > > > > set ifaddr 127.1.1.1/0 127.2.2.2/0 255.255.255.0 > > add 0 0 127.2.2.2 # Add a (sticky) default route > > > > How do I stop the sendmail error? > > Add a fake entry into /etc/hosts: > > 127.1.1.1 some.fake.entry I think this is not supposed to work. At least as long as there is a routing table entry for 127.0.0.0 => lo0. 15:25 [charon@hades /home/charon]$ netstat -rn Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire 127 127.0.0.1 UGRSc 0 0 lo0 127.0.0.1 127.0.0.1 UH 3 9735 lo0 Perhaps the problems are caused by this? - Giorgos To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message