LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-30-2015, 12:37 AM   #1
ulto
Member
 
Registered: Apr 2004
Posts: 52

Rep: Reputation: 1
Sendmail name lookup issue


I am having some strange issues with sendmail at the moment.

When a mail comes into my sendmail server, where it is then relayed onwards, the sendmail server for whatever reason tries to forward it a hostname that it shouldn't.

Have no idea where it gets this hostname from in the first place as it should be sending it to a mail.full.domain.name server.

So my question is, does anyone exactly know how sendmail performs a hostname or DNS lookup and where it's cached. The strange thing is though that a restart of the sendmail service fixes this, yet it reappears sometimes, usually when we have some network issue in the back-end.

One would think that sendmail would clear its cache every few minutes. Or does it leverage something else to perform this lookup.
 
Old 04-30-2015, 11:18 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,834
Blog Entries: 14

Rep: Reputation: 1081Reputation: 1081Reputation: 1081Reputation: 1081Reputation: 1081Reputation: 1081Reputation: 1081Reputation: 1081
Sendmail gets the MX (Mail Exchange) record for the target domain (assuming you don't have a relay host defined). Caching if any is done by the resolver (e.g. Windows DNS or BIND on Linux/UNIX) not by sendmail itself so far as I know.

Typically you have an /etc/nsswitch.conf that says how to lookup names which usually will have something like "host: files dns" in it that means to first search files (/etc/hosts in this case) and if not found look in dns. There are other possible entries such nis+ that could be there.

For DNS you also usually have an /etc/resolv.conf that tells it which DNS servers to query for the answer.
 
  


Reply

Tags
sendmail


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Sendmail IP name lookup failed tzh Linux - Server 2 03-26-2012 10:07 AM
Host lookup failure with Sendmail MattiasLofgren Slackware 4 05-14-2009 03:00 PM
sendmail reverse lookup problem stioanid Linux - Software 3 12-17-2008 06:35 AM
problem with sendmail, IP address lookup failed mcd Linux - Networking 6 03-14-2005 08:14 AM
sendmail: host name lookup failure GabeF Linux - Networking 3 12-04-2002 08:00 AM


All times are GMT -5. The time now is 10:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration