[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]
Re: [LI] sendmail
Hi,
Check your switch file (/etc/nsswitch.conf) to see the order of services it
uses to resolve the address (ex: dns, files, NIS). For ur case, change it to
look for file (/etc/host) first, DNS & NIS later.
Also, I think the suntax of /etc/hosts is
<internet address> <official host name> <alias>
Also, since the default time sendmail polls at queue for resolution is 4h
so try force-flushing the queue with sendmail -q0
HTH
Sai
>
> Dear Listers,
> I have connected two machines on a TCP/IP network. It runs on a
> simple hostfile mech.. ie /etc/hosts which looks like this
>
> 192.168.166.1 lux lux.foo.edu
> 192.168.166.2 brutus brutus.foo.edu
>
> I have no problem in pinging or telnetting from lux to brutus or
> vice-versa and socket based apps run fine.
>
> I have sendmail running on brutus but if i send a mail to someone at lux
> $mail goofy@xxxxxxxxxxx
> the mail stays in the mail queue and sendmail -bp (after a while) shows
> that the queue hasn't been flushed . The status is "Deferred:could not
> lookup hostname"
>
> In the sendmail.cf file I have unremarked the hostfile=entry.
>
> am I missing out on something very basic ? What HOWTOs/man pages should i
> look into ? I have gone thru the Mail-HOWTO and sendmail man pages.
>
> Regards
> Shourya
>
>
> --------------------------------------------------------------------
> The Linux India Mailing List Archives are now available. Please search
> the archive at http://lists.linux-india.org/ before posting your question
> to avoid repetition and save bandwidth.
>
--
"Ah... the morning horoscope. 'Today will be a day like every other day.'"
-- Homer J. Simpson
--------------------------------------------------------------------
The Linux India Mailing List Archives are now available. Please search
the archive at http://lists.linux-india.org/ before posting your question
to avoid repetition and save bandwidth.