Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Nov 2002 10:51:21 -0700
From:      James Earl <mailinglists@telus.net>
To:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Basic mail and Sendmail problem
Message-ID:  <20021120175121.GA161@mtntrip.ici.net>
In-Reply-To: <200211200325.GAK3PVI14532@asarian-host.net>
References:  <20021119212919.GA15576@mtntrip.telus.net> <200211200325.GAK3PVI14532@asarian-host.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Nov 20, 2002 at 04:25:49AM +0100, Mark wrote:
> ----- Original Message -----
> From: "James Earl" <mailinglists@telus.net>
> To: <freebsd-questions@FreeBSD.ORG>
> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021120175121.GA161>