We recently got a new webserver with [url removed, login to view], and are having issues with sending email to hotmail using PHP's mail function. We're also having problems checking a domains MX record through php using this:
$recordexists = checkdnsrr("google.com", "MX");
echo "MX Exists";
echo "No MX";
when run though SSH this prints "MX Exists" but when run through a browser it prints "No MX".
I'm not sure if these 2 problems are related.
The email issue: We can send emails using a client such as outlook or thunderbird using SMPT servers. If we use php's mail function to send to hotmail it never shows up. If we use webmail like horde it doesn't show up at hotmail either.