Operating System - HP-UX
1827294 Members
2210 Online
109717 Solutions
New Discussion

Sendmail and MX Record in DNS

 
Michelle Barton
Frequent Advisor

Sendmail and MX Record in DNS

Help! I just can't figure out the right syntax for adding an MX record to the DNS file. On my Unix servers I want to be able to send emails to airtouch.net. My current DNS server cannot resolve the address, so I wanted to setup an MX record that says for airtouch.net forward it to 10.200.1.51. What is the syntax I should use?

Thanks,
Michelle
6 REPLIES 6
Jaimin Parikh
Frequent Advisor

Re: Sendmail and MX Record in DNS

Hi,

Listed below is the sample of MX record for destination bling and alternate relay for the mail.You can set it on your name server.
-----------------------------------------------
;name ttl class MX preference mail exchanger
bling IN MX 0 bling.paf.edu.
IN MX 20 wheo.paf.edu.
IN MX 30 munch.pag.edu.

---------------------------------------------

Apply on your setup.Hope it will solve your problem.

Regards,
Jaimin
JAIMIN PARIKH : Share your knowledge and help those who need your help!!
Rick Garland
Honored Contributor

Re: Sendmail and MX Record in DNS

Check your DNS config. I would believe that you should be able to resolve the airtouch.net domain by name and IP. If not, are you missing the db.cache file?
Kevin Wright
Honored Contributor

Re: Sendmail and MX Record in DNS

If your DNS server cannot resolve the domain..a MX record will prove useless. You need to fix your DNS first. You may be missing the db.cache file, which is a list of all the root name servers. get this from ftp.rs.internic.net
can you resolve other domains outside your network?
Michelle Barton
Frequent Advisor

Re: Sendmail and MX Record in DNS

I can't resolve any external addresses. What am I missing???? I thought that an MX record checked the local server for addressing and if it couldn't resolve it then it went to where you specify for resolution, which is my NT internet server which is the only server here that can communicate with the internet.

Thanks,
Michelle
Youlette Etienne_2
Regular Advisor

Re: Sendmail and MX Record in DNS

Hi,

When I encountered this same problem, I had to change the 'smart relay host' in the /etc/mail/sendmail.cf file to point to the mail server.

The line in this file is:

DSmailservername

Hope this helps.

--Youlette
If at first you don't succeed, change the rules!
Michelle Barton
Frequent Advisor

Re: Sendmail and MX Record in DNS

My relay host is set to the mail server. Any other thoughts?

Thanks for your input!!!!