From owner-freebsd-questions Tue Nov 19 19:26: 7 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 763CB37B401 for ; Tue, 19 Nov 2002 19:26:05 -0800 (PST) Received: from mail3.sea.registeredsite.com (mail3.sea.registeredsite.com [66.111.73.203]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9606E43E3B for ; Tue, 19 Nov 2002 19:26:04 -0800 (PST) (envelope-from admin@asarian-host.net) Received: from asarian-host.net (asarian-host.net [216.122.74.112]) by mail3.sea.registeredsite.com (8.12.5/8.12.5) with ESMTP id gAK3Q1SF031247 for ; Tue, 19 Nov 2002 22:26:02 -0500 Comments: To protect the identity of the sender, certain header fields are either not shown, or masked. Anonymous email addresses for asarians can be requested by filling in the appropriate form at: https://asarian-host.net/cgi-bin/signup.cgi Received: (from root@localhost) by asarian-host.net (8.11.0/8.11.0) id gAK3Q1D14555 for freebsd-questions@freebsd.org; Wed, 20 Nov 2002 04:26:01 +0100 (CET) (envelope-from admin@asarian-host.net) Posted-Date: Wed, 20 Nov 2002 04:26:01 +0100 (CET) From: Mark Message-Id: <200211200325.GAK3PVI14532@asarian-host.net> Date: Wed, 20 Nov 2002 04:25:49 +0100 X-Authenticated-Sender: admin@asarian-host.net Subject: Re: Basic mail and Sendmail problem X-Trace: Xw8vEkYtRmHuY1ced1CIVtVOgvQV9MGgCYHcidps6gljOtUu6ENIVXO6yClK0i4v X-Complaints-To: abuse@asarian-host.net X-Abuse-Info: Please be sure to forward a copy of ALL headers X-Abuse-Info: Otherwise we are unable to process your complaint Organization: Asarian-host To: "James Earl" , References: <20021119212919.GA15576@mtntrip.telus.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-Auth: Asarian-host PGP signature iQEVAwUAPdsAyTFqW1BleBN9AQE7cwgAiF0wxToeQRqb8MZHiuaINpSVagMKBWm8 fyMKuFnxSjCrdpLJB34shhDkcYsVFvB26RX/mcwejNZeE1Bj1T5Ru0jThKoNFIqF lJ1QA0+7LaRqagPgbKWMM08QN9QgzGtt9SKUbL+7puq37tbyUXvv+19HiB2vGnro e41PKlf+8IHSIG2le7jT+nEWTQu9TXhSc9XRi0C7qhwfWtXNrjhkgalAhvNIHXQb bnJgWgm9UW5CsMDY6T4DucaFPbH6MeB7ow7ItT7JwF+sRyr/zVbmWexVL1fRZYbb HZ8VB2sNFfnHOfJtfrA1XUVm/PqJG3RvonQOTvgv4WT55scOhM5KMg== =WxK0 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 ----- 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? > 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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message