We have a testing server with its own domain name. We don't want any email to be sent from this domain. We don't want any email to be received on this domain.

Is it ok to remove the MX record from the DNS?


Yes, an MX record is there only for incoming mail.

  • 4
    While this is true, MX records are also used by some spam detecting mechanisms. So if you try to send outgoing mail to some other server, it might reject you because of missing or incorrect DNS entries, including your MX record (is there an MX record for the domain you are trying to send from, if so, does it point to the server you are sending from ...) – Isaac Apr 16 '13 at 20:11
  • 4
    Isaac - The OP stated that he doesn't want to send OR receive email from or to this server. In addition, any spam mechanism that uses the MX record for a domain (instead of the SPF record for the domain) is doing it wrong. – joeqwerty Apr 17 '13 at 4:26

mx is only needed if there is no a or aaaa records, and it must be a hostname mx

not define mx is not to decleare there is no email on that domain

sadly some antispam solotions thinks that missing mx is same as no mail on that domain name, fail

so to be clear, mx is not needed, as it was questioned here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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