Seperate web/mail server, mailserver won't receive emails

Sam Holguin asked:

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       3600     
A      3600     
MX = 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 by [].

My answer:

Your domain hasn’t actually got an MX record.

$ host -t mx 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 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: IN MX 10

View the full question and answer on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.