Is there a command I can run from the shell that will allow me to see all of the MX records on the server?
We have a dedicated server with cPanel on it. By default, we have all of the routing settings set to Auto. This works great until we have a company with a custom MX record going to a subdomain that's pointed to a different IP address. In that situation cPanel keeps the routing settings to local, when it should be remote.
I need a way to quickly look through all of the MX records on the server (we have over 600 sites) and see which records are not going to the default DOMAIN.com so I can verify that all of those match up with the /etc/remotedomains file.
Thanks!