Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have following line in my cf file


and following lines in local-host-names file

but when I send mail to, sendmail is accepting mails for it. resolves to one of the private IP address. What could be the reason?

share|improve this question
What do you mean by "is accepting"? Do you mean it's delivering the mails locally? – David Schwartz Apr 3 '13 at 3:34
No if I try to send mail by accessing SMTP using telnet, for rcpt to it says recipient ok. It should say user unknown right? – Sachin Divekar Apr 3 '13 at 3:53
up vote 2 down vote accepted

In your prompt type:

$ sendmail -bt
> $=w

$=w is a class that contains all the names sendmail considers local. These include those listed in /etc/mail/local-host-names and those in /etc/hosts that sendmail considers local after examining the machine's network interfaces.

share|improve this answer
thanks a lot. sendmail is considering as local after observing network interface. It is a PTR record for IP addresses on one of the ethernet interfaces. – Sachin Divekar Apr 3 '13 at 8:36
There is an option to turn off "auto detection/adding" local email domains (DontProbeInterfaces). – Andrzej A. Filip Apr 3 '13 at 9:32
@AndrzejA.Filip thanks a lot for your suggestion. Yes, I verified DontProbeInterfaces is False in my case. – Sachin Divekar Apr 3 '13 at 9:51
Is a CNAME DNS record? YES => sendmail rewrites CNAMEs (DNS aliases) to "true names". – Andrzej A. Filip Apr 3 '13 at 9:55

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.