From owner-freebsd-questions Wed Nov 20 9:38:20 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 A186E37B401 for ; Wed, 20 Nov 2002 09:38:18 -0800 (PST) Received: from priv-edtnes12-hme0.telusplanet.net (fepout4.telus.net [199.185.220.239]) by mx1.FreeBSD.org (Postfix) with ESMTP id CDBF343E6E for ; Wed, 20 Nov 2002 09:38:17 -0800 (PST) (envelope-from jamesearl@telus.net) Received: from mtntrip.ici.net ([142.179.173.206]) by priv-edtnes12-hme0.telusplanet.net (InterMail vM.5.01.05.17 201-253-122-126-117-20021021) with SMTP id <20021120173817.FSWM11226.priv-edtnes12-hme0.telusplanet.net@mtntrip.ici.net> for ; Wed, 20 Nov 2002 10:38:17 -0700 Received: (nullmailer pid 172 invoked by uid 1000); Wed, 20 Nov 2002 17:51:21 -0000 Date: Wed, 20 Nov 2002 10:51:21 -0700 From: James Earl To: freebsd-questions@FreeBSD.ORG Subject: Re: Basic mail and Sendmail problem Message-ID: <20021120175121.GA161@mtntrip.ici.net> Mail-Followup-To: freebsd-questions@FreeBSD.ORG References: <20021119212919.GA15576@mtntrip.telus.net> <200211200325.GAK3PVI14532@asarian-host.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200211200325.GAK3PVI14532@asarian-host.net> User-Agent: Mutt/1.5.1i 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 Wed, Nov 20, 2002 at 04:25:49AM +0100, Mark wrote: > ----- Original Message ----- > From: "James Earl" > To: > Sent: Tuesday, November 19, 2002 10:29 PM > Subject: Re: Basic mail and Sendmail problem > > > > > > When I know try to send a mail to 'userone' with 'mail -v > > > > userone' I get the following error (same error in > > > > /var/spool/clientmqueue): userone... Connecting to > > > > localhost.mydomain. via relay... userone... Deferred: > > > > Connection refused by localhost.mydomain. > > > > > > One more thing to add: This works fine, when I am connected > > > to my ISP. So this might be a problem with DNS configuration? > > > > I just had a similar problem with a couple of my machines. > > > > Try changing the 'search' line in resolv.conf to a "local domain name." > > > > For instance, my /etc/resolv.conf file is like this: > > > > search localdomain.net > > nameserver ?.?.?.? (real dns servers) > > nameserver ?.?.?.? > > > > And my /etc/hosts file: > > > > 127.0.0.1 localhost localhost.localdomain.net > > 192.168.19.1 gateway gateway.localdomain.net > > ... > > > > sendmail_enable="NO" in /etc/rc.conf > > Why disable sendmail? That's a good question! I just needed local mail delivery. > > > My big problem was my isp's DHCP server was assigning me a > > domain-name which would change my resolv.conf file. To solve that > > I had to add a supersede line in dhclient.conf. > > Yeah. Had a similar problem on a local box. I also added a "prepend > domain-name" and "prepend domain-name-servers" line to dhclient.conf; like > so: > > prepend domain-name "ns-cache-0.ns.nl.demon.net "; > prepend domain-name-servers 194.159.73.135; > supersede domain-name "ns-cache-0.ns.nl.demon.net " > > The trailing spaces ARE intentional. That worked like a charm. Substitute > your own ISP, of course. > > - Mark > Thanks, I think I may try that too. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message