From owner-freebsd-questions Fri Dec 27 1:11:12 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 348A537B401 for ; Fri, 27 Dec 2002 01:11:11 -0800 (PST) Received: from itu.st.jyu.fi (itu.st.jyu.fi [130.234.4.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1A12E43EC5 for ; Fri, 27 Dec 2002 01:11:10 -0800 (PST) (envelope-from erkkila@itu.st.jyu.fi) Received: (from erkkila@localhost) by itu.st.jyu.fi (8.11.6/8.11.2/antispam3) id gBR9B6x28584; Fri, 27 Dec 2002 11:11:06 +0200 Date: Fri, 27 Dec 2002 11:11:05 +0200 From: Juha Erkkila To: Alistair Phillips , freebsd-questions@FreeBSD.org Subject: Re: how to configure sendmail to send mail locally? Message-ID: <20021227111105.B28218@itu.st.jyu.fi> References: <000501c2a7f6$7a6c8180$2502100a@alistairp> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <000501c2a7f6$7a6c8180$2502100a@alistairp>; from file13@rentboy.co.za on Fri, Dec 20, 2002 at 09:07:37AM +0200 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 Fri, Dec 20, 2002 at 09:07:37AM +0200, Alistair Phillips wrote: > Hi there, > > I had the exact same problem that you had, what with not being able to send > mail to local persons. The error turned out to be that /etc/hosts was > missing the following > > ::1 localhost localhost > > The ::1 is a IPv6 loopback address as for some reason was missing from my > initial install (even though I did not touch a thing). > > So maybe try that and let me know what happens? Straight after adding that > everything just fell into place and worked. Hope its that easy for you! well it wasn't quite this easy, but you gave me a hint where to look at. sendmail appears to want that all (or most?) of myhost, myhost.mydomain, localhost and localhost.mydomain resolve to 127.0.0.1, and ::1, so that it is willing to send mail locally. so i did this: % hostname a.o.t % cat /etc/resolv.conf 127.0.0.1 localhost localhost.o.t a a.o.t ::1 localhost localhost.o.t a a.o.t and it works now. i don't see why i had to put '::1 ...' line there as well (i haven't enabled IPv6 in /etc/rc.conf nor in /etc/defaults/rc.conf), but it works now so i don't care.. ;-) thanks for the tip. still having problems with ppp and soundcard, though... happy new year 2003 -- People must not do things for fun. We are not here for fun. There is no reference to fun in any Act of Parliament. -- A P Herbert, Uncommon Law To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message