I have a basic set up:

  • VPS
  • Mailserver
  • 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.       3600     
A   samholguin.co.uk.      3600     
MX  mail.samholguin.co.uk.  mail.samholguin.co.uk. = VPS = 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. [].

closed as off-topic by joeqwerty, Ward, mdpc, colealtdelete, MadHatter Jul 27 '15 at 8:42

This question appears to be off-topic. The users who voted to close gave this specific reason:

If this question can be reworded to fit the rules in the help center, please edit the question.

  • 1
    Sam, the question really needs to be revised with the exact state of what you're after and what you've attempted so far. Frankly, the edit you made that includes Google's rejection message should be enough to resolve the issue...the problem is the configuration of the MTA itself. – Avery Payne Jul 24 '15 at 0:19

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

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.
  • Thank you, and for the best practises on writing questions – Sam Holguin Jul 19 '15 at 16:24
  • And now I see you've got a proper MX record! – Michael Hampton Jul 19 '15 at 16:28
  • advice I'll never forget moving forward – Sam Holguin Jul 19 '15 at 16:29

Not the answer you're looking for? Browse other questions tagged or ask your own question.