Date: Tue, 19 Nov 2002 14:29:19 -0700 From: James Earl <mailinglists@telus.net> To: freebsd-questions@FreeBSD.ORG Subject: Re: Basic mail and Sendmail problem Message-ID: <20021119212919.GA15576@mtntrip.telus.net>
next in thread | raw e-mail | index | archive | help
> > 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 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. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021119212919.GA15576>