Hello. I have a Solaris 9 server running sendmail. I have forms in php that send automated emails when filled out. The problem arises when I try to send email to both my inernal mail server and the outside world. I can do one or the other. If I use sendmail as the SMTP server I can deliver mail outside without a problem. But I cannot deliver mail to my internal mail server because the sendmail server is on a DMZ, when it gets the MX record for our email server it points to the outside address of course and the DMZ cannot communicate with the outside IP address.
I even tried a static mapping for our external mail server on the firewall so that the sendmail server has an ip in its own subnet:
i.e: sendmail server = 172.16.0.10
mail.mydomain.com = 172.16.0.7
then I put that into the hosts file of the sendmail server: 172.16.0.7 mai.mydomain.com
so that when sendmail is trying to resolve the MX record for our domain it uses the mapping instead of the external address which it cannot communicate with.
But it turns out that sendmail is not looking at the hosts file (apparently), it's going straight to DNS.
Can anyone shed some light on this or have any workarounds?
Thanks a lot.
I even tried a static mapping for our external mail server on the firewall so that the sendmail server has an ip in its own subnet:
i.e: sendmail server = 172.16.0.10
mail.mydomain.com = 172.16.0.7
then I put that into the hosts file of the sendmail server: 172.16.0.7 mai.mydomain.com
so that when sendmail is trying to resolve the MX record for our domain it uses the mapping instead of the external address which it cannot communicate with.
But it turns out that sendmail is not looking at the hosts file (apparently), it's going straight to DNS.
Can anyone shed some light on this or have any workarounds?
Thanks a lot.