Operating System - HP-UX
1832363 Members
2516 Online
110041 Solutions
New Discussion

Sendmail works whitout DNS?

 
Andre Machado_1
Advisor

Sendmail works whitout DNS?

Hello,

I need use the Sendmail on HP-UX, but I cannot use the DNS to set the MX ( Mail eXchanger ).
I??d like do know if it??s possible to use another recurse to set the MX and if the sendmail work correct.

I will be work with relay option only ( DS variable ).
3 REPLIES 3
Dave Chamberlin
Trusted Contributor

Re: Sendmail works whitout DNS?

You should not have problems as long as the mail relay machine is listed in /etc/hosts.
U.SivaKumar_2
Honored Contributor

Re: Sendmail works whitout DNS?

hi,
edit the /etc/nsswitch.conf configuration file and put thia entry.
hosts: files dns
Now put all your smart host name and ip address
in /etc/hosts.
use smart hosts's name with DS option in /etc/sendmail.cf.
restart the sendmail service. it should work now . if not try putting any ONE of the following lines in /etc/sendmail.cf
# service switch file (ignored on Solaris, Ultrix, OSF/1, others)
O ServiceSwitchFile=/etc/nsswitch.conf

( OR )

# hosts file (normally /etc/hosts)
O HostsFile=/etc/hosts

Then restart the sendmail service.


regards,
U.SivaKumar



Innovations are made when conventions are broken
Kurt Beyers.
Honored Contributor

Re: Sendmail works whitout DNS?

I've used the following document to set up sendmail where the name resolution occirs through /etc/hosts only.

Operating sendmail with /etc/hosts only
=======================================

To operate sendmail in topologies with /etc/hosts only (without DNS and
without NIS), make the changes listed below.

1. Change/enter the "hosts" entry in the file /etc/nsswitch.conf:
hosts: files

2. In the file /etc/mail/sendmail.cf, uncomment the following options:

O TryNullMXList


Prior to HP-UX 8.x sendmail, sendmail would try to connect to a host directly if there were no MX records for the destination. To revert to this behavior, you must uncomment the option TryNullMXList.

Uncomment and Define:

Dj$w.foo.bar

Replace foo.bar with what would be considered the domain part of your host name. For example:

Dj$w.cup.hp.com

And add your mail remay server:

# "Smart" relay host (may be null)
DSyour.mailserver.relay


Restart sendmail (/sbin/init.d/sendmail stop and start) after changing sendmail.cf

Kurt