sendmail dns config question - SendMail
This is a discussion on sendmail dns config question - SendMail ; All,
The system is fc6 with sendmail 8-13-8-2. The sendmail.cf file is
stock. Local mail service is functioning normally. However attempts to
send mail resulted in "host map: lookup (domain): deferred). These
e-mails remained unsent for over 12 hours.
After ...
-
sendmail dns config question
All,
The system is fc6 with sendmail 8-13-8-2. The sendmail.cf file is
stock. Local mail service is functioning normally. However attempts to
send mail resulted in "host map: lookup (domain): deferred). These
e-mails remained unsent for over 12 hours.
After some surfing I came across advice to:
#nslookup domain; sendmail -v -q
After executing this command the e-mail was sent. This apparently
populated a cache that allowed sendmail to resolve the address. What is
the cache?
How can sendmail be configured to successfully do this on its own?
Thanks - Dan
-
Re: sendmail dns config question
On Sat, 23 Dec 2006, in the Usenet newsgroup comp.mail.sendmail, in article
<U--dnZUAc-Rm9BDYnZ2dnUVZ_tadnZ2d@comcast.com>, dansawyeror wrote:
>#nslookup domain; sendmail -v -q
>
>After executing this command the e-mail was sent. This apparently
>populated a cache that allowed sendmail to resolve the address. What is
>the cache?
Not quite enough information - but what happens if you try to 'ping'
the domain? Does the name resolve? If _NOT_ then what does the files
/etc/host.conf and /etc/nsswitch.conf look like? Do they have a line
that contains the word 'host'?
[compton ~]$ grep host /etc/host.conf /etc/nsswitch.conf
/etc/host.conf
rder hosts,bind
/etc/nsswitch.conf:hosts: files nis dns
[compton ~]$
Explanation: 'nslookup' (and 'dig', and 'dnsquery' and 'host') are DNS
query tools that are solely used to query a DNS server. The normal
hostname lookup is run by a function in the C library, and this function
looks at one or the other of those files to see where it should try to
find the hostname:IPaddress data. The entries above tell the resolver to
look first in the /etc/hosts file (hosts or file), and if that fails, to
look elsewhere - eventually looking at nameserver data (bind or dns).
The DNS query tools ignore these files, because their job is to query
the name servers listed in /etc/resolv.conf (or the one on localhost if
no 'nameserver' line is in resolv.conf).
Old guy
Similar Threads
-
By Application Development in forum SendMail
Replies: 2
Last Post: 11-28-2007, 09:32 AM
-
By Application Development in forum SendMail
Replies: 0
Last Post: 06-13-2007, 12:12 PM
-
By Application Development in forum SendMail
Replies: 3
Last Post: 05-30-2007, 11:49 PM
-
By Application Development in forum SendMail
Replies: 2
Last Post: 03-15-2007, 12:23 AM
-
By Application Development in forum SendMail
Replies: 7
Last Post: 02-15-2007, 07:46 AM