|
Question : How to get sendmail to read /etc/hosts over DNS on Solaris?
|
|
I'm trying to get a sendmail server to route mail to a host on the same internal network. Because the sendmail server needs to send mail "out", it can use DNS. The host that receives mail has an internal and external IP address. While my sendmail server has the internal address for the receiving server in its host file AND nsswitch.conf specifies "hosts: files dns", it still persists in using the external IP address, causing the message to time out. I know in sendamil you can specific the /etc/mail/service.switch file, but apparently this doesn't work with Solaris (I tried). Does anyone know what I can do with sendmail to get it to "use" the /etc/nsswitch.conf file to order lookups? The sendmail server is running Solaris 8 and Sendmail 8.11.6+Sun/8.11.6 (included version).
|
Answer : How to get sendmail to read /etc/hosts over DNS on Solaris?
|
|
This is very easily solved. Create an internal name for the host you want mail to go to. Say internal-host.domain.com. Then setup a /etc/mail/mailertable entry for the mail bound for xdomain.com to go to internal-host.domain.com
If you need more specific steps let me know. --russ
|
|
|