Web server sending e-mail to incorrect IP address, bypassing HOSTS file
Hello. I have a web server running Centos 5.9 and Apache. One of our customers has a website that uses either PHP or Javascript to send out e-mails, but then Sendmail does not deliver it to the correct MX address. It appears as though it is ignoring the entry i have in the hosts file.
The MX server it needs to go to is on the same private subnet (192.168.190.x) as this web server, so I have the hosts file pointing mx1.domain.net to the private address. Here are some examples detailing what I am seeing: The hosts file shows the mx1.domain.net pointing to the correct private IP Code:
root@fedweb etc# cat hosts Code:
root@fedweb etc# ping mx1.domain.net Code:
Feb 21 10:06:29 fedweb sendmail[6830]: r1LI4TLF006828: to=<mmyles@domain.net>, |
change host to domain.net
|
I'm sorry, your reply seemed kind of vague. Where would you want me to make this change?
|
In your hosts file change mx1.domain.net to domain.net
|
Quote:
|
All times are GMT -5. The time now is 04:40 PM. |