We switched one of our cPanel domains (let's call it example.com) to a dedicated IP because we needed to serve the site as https.
Since the change, emails sent from the server to @example.com addresses are no longer delivered.
Mail is handled by netregistry.net.au so WHM/cPanel is configured to use Remote Mail Exchange with MX records like so:
example.com. 3600 IN MX 10 mx.netregistry.net.
example.com. 3600 IN MX 20 mx4.netregistry.net.
The error in the EXIM logs for the failed messages is 'lowest numbered MX record points to local host'.
If we do a 'dig example.com mx' on the server, the reason for this becomes clear as the following MX records are returned.
;; ANSWER SECTION:
example.com. 3600 IN MX 0 example.com.
example.com. 3600 IN MX 10 mx.netregistry.net.
example.com. 3600 IN MX 20 mx4.netregistry.net.
We are using WHM to manage the DNS for the domain and there is no MX 0 record.
If we run 'dig example.com mx' on any other machine, it returns the correct MX records.
How can we find out where the rogue MX is coming from?
Happy to PM someone the actual domain if that helps.
Since the change, emails sent from the server to @example.com addresses are no longer delivered.
Mail is handled by netregistry.net.au so WHM/cPanel is configured to use Remote Mail Exchange with MX records like so:
example.com. 3600 IN MX 10 mx.netregistry.net.
example.com. 3600 IN MX 20 mx4.netregistry.net.
The error in the EXIM logs for the failed messages is 'lowest numbered MX record points to local host'.
If we do a 'dig example.com mx' on the server, the reason for this becomes clear as the following MX records are returned.
;; ANSWER SECTION:
example.com. 3600 IN MX 0 example.com.
example.com. 3600 IN MX 10 mx.netregistry.net.
example.com. 3600 IN MX 20 mx4.netregistry.net.
We are using WHM to manage the DNS for the domain and there is no MX 0 record.
If we run 'dig example.com mx' on any other machine, it returns the correct MX records.
How can we find out where the rogue MX is coming from?
Happy to PM someone the actual domain if that helps.