Sam Holguin asked:
I have a basic set up:
- Domain Management
This is my first experience setting up both a VPS and a separate mail server.
My mail server won’t receive emails.
A mail.samholguin.co.uk. 220.127.116.11 3600 A samholguin.co.uk. 18.104.22.168 3600 MX mail.samholguin.co.uk. mail.samholguin.co.uk.
22.214.171.124 = VPS
126.96.36.199 = Heart Internet
The issue appears to be my VPS is rejecting the emails, they don’t even hit the mail server.
Are my records in order?
Error message: Technical details of permanent failure:
Google tried to deliver your message, but it was rejected by the server for the recipient domain samholguin.co.uk by samholguin.co.uk. [188.8.131.52].
Your domain hasn’t actually got an MX record.
$ host -t mx samholguin.co.uk samholguin.co.uk has no MX record
Without an MX record, mailers will fall back to trying to deliver to an address for the naked domain. That address is:
$ host samholguin.co.uk samholguin.co.uk has address 184.108.40.206
An MX record for a subdomain would only apply if you were trying to deliver mail to the subdomain. So the MX record you posted is wrong, redundant and ignored anyway.
You just need to create an MX record for your naked domain which points to the hostname of the mail server. For example:
samholguin.co.uk. IN MX 10 mail.samholguin.co.uk.
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.