-1

I am sending mail via Sendmail. But it gives error in maillog "Name server: mail.example.com: host name lookup failure." What might be the problem?

Ruchi
  • 449
  • 2
  • 7
  • 15
  • Well, it **might** be that 'mail.example.com' is not a real name, and so trying to look it up won't work. – sharakan Apr 26 '13 at 14:21

1 Answers1

0

If you really use mail.example.com as mail server, that means you are using an incorrect value of SMTP host .

mail.example.com is not a valid SMTP server. Do you have a valid SMTP server? If not, try Google's one.

sidenote: Not sure if you know that example.com is a reserved domain name for documentation purposes and examples of the use of domain names. Read Wikipedia for more information.

Raptor
  • 53,206
  • 45
  • 230
  • 366
  • Okay. So, what is the correct format to write domain name in the host file in linux? Would it be necessary to use a DNS server? Actually, my intention is not to use it. – Ruchi Apr 26 '13 at 09:23
  • it is your SMTP server address. Contact server admin if you don't know. DNS server is NOT a SMTP server. – Raptor Apr 26 '13 at 09:47