Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Mar 2001 23:34:15 +0000
From:      "Aleksandar Simic'" <alex@frustum.clara.co.uk>
To:        FreeBSD Questions <freebsd-questions@FreeBSD.ORG>
Cc:        Tony Landells <ahl@austclear.com.au>
Subject:   Re: Local mail sending problem
Message-ID:  <20010320233415.A810@frustum.clara.co.uk>
In-Reply-To: <200103202250.JAA18493@tungsten.austclear.com.au>; from ahl@austclear.com.au on Wed, Mar 21, 2001 at 09:50:10AM %2B1100
References:  <alex@frustum.clara.co.uk> <200103202250.JAA18493@tungsten.austclear.com.au>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Mar 21, 2001 at 09:50:10AM +1100, Tony Landells wrote: 

> I'm assuming you're running a fairly new version of FreeBSD (and
> sendmail).

FreeBSD 4.3-BETA with Sendmail 8.11.3.

> alex@frustum.clara.co.uk said:

> > Thanks but that didn't solve the problem completely. Now instead
> > of local mail hanging in the queue forever it "disappears". This
> > is the message in /var/log/maillog:
>
> > 8@myname.my.domain>, relay=alex@localhost Mar 20 14:47:03 myname
> > sendmail[1768]: f2KEl3J01768: to=root, delay=00:00:00, mailer=local,
> > pri=37472, stat=queued Mar 20 14:47:04 myname sendmail[1769]:
> > gethostbyaddr(192.168.0.2) failed: 1
> 
> > And then it finally gets sent somewhere, because I don't receive it in
> > my mailbox or root's. This is the message: 
> 
>
> > Mar 20 14:47:49 myname sendmail[1801]: f2KEl3J01768: to=root,
> > ctladdr=alex (1001/1001), delay=00:00:46, xdelay=00:00:00, mail
> > er=local, pri=127472, dsn=2.0.0, stat=Sent Mar 20 14:47:56 myname
> > sendmail[1803]: gethostbyaddr(192.168.0.2) failed: 1
>
> Cool--how broken is this???
> 
> The fundamental problem looks like name resolution--do you have
> anything that would tell sendmail what 192.168.0.2 is?  Even
> /etc/hosts should work, if you've got it enabled on
> /etc/host.conf...

If I were to enable it would I do it by inserting(I guess I'm really
displaying my ignorance here):

192.168.0.2 localhost localhost.my.domain myname.my.domain

into /etc/hosts ? I've tried that(if that is the correct place/syntax
since my host name is "myname.my.domain"), but the mail to root
disappears.

I know it is DNS that is messing with me, because on the old Sendmail
configurations I've used: FEATURE(`nodns')dnl. With latest Sendmail
that rule has been surpassed. I've been wrecking my brain trying to
find an appropriate replacement that would make this work.

In /usr/src/contrib/sendmail/cf/README:
___________________________________________________
nodns

If you aren't running DNS at your site (for example,
you are UUCP-only connected).  It's hard to consider
this a "feature", but hey, it had to go somewhere.
Actually, as of 8.7 this is a no-op -- remove "dns" from
the hosts service switch entry instead.
----------------------------------------------------

How do I replace this feature that worked with sendmail prior to the
release of the 8.11 ?

> Well, the message with "stat=Sent" is confirmation that sendmail
> believes it has delivered the mail.  Since your original message
> said you had set up procmail, you might find more information
> there...

I can't, I've searched my procmail log file and there is nothing in
mine about root, and root's is completely empty.

--Alex

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?20010320233415.A810>