How should MX records look like for personal mail server


I have a droplet on digital ocean hosting my own web server and now I’m trying to add a mail service with some combination of dovecot and postfix. I’m running into two issues:

  1. I am confused how to setup my MX DNS records. I tried to follow this guide, but I didn’t quite understand: At the moment, I have the following. URL:: MX: 2 records: mail handled by mail handled by Pretty sure this is wrong, but what should it be? Just the second one?

  2. Online test services report Reverse DNS is not a valid Hostname As far as I can tell, I have done everything right in order to have Reverse DNS lookup. My hostname and /etc/hosts are set to and my droplet is named The output of the host command:

% host                            has address IPV4ADDR has IPv6 address IPV6ADDR mail is handled by 50

% host IPV4ADDR domain name pointer



Show comments

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Bobby Iliev
Site Moderator
Site Moderator badge
January 26, 2021
Accepted Answer

Hi there,

What I could suggest is the following:

After that give it a couple of hours for the DNS cache to clear over the Globe and it should be ok.

As a side note, from the host command output that you’ve shared, I was able to check your domain name and the setup looks correct at the moment I believe.

Regards, Bobby

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Featured on Community

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
DigitalOcean Cloud Control Panel