Step by step instruction for configuring dns records for email server.

Please provide step by step instructions for setting up dns records for an email server. The tutorial says create a mx record, but not where or how to create it. Other tutorials give conflicting information. Such as “create a mx record at your registrar”, the tutorial on dns says to point the mx record at the gmail servers, but I want to host my own email. I tried the modoboa setup that someone else suggested, but it was awful. Horrible software. I just want to send and receive emails and be able to use webmail. (because console email is not useful for attachments) I need for my website users to be able to have their own account too, and I’m not going to have them using a console.

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Maybe you should understand first is the domain name record and Droplet are two things. Your domain name added to DigitalOcean Domians is independent of your Droplet, you can create the relationship with a sub-domain to a service on your Droplet. For example, you have added a domian name ‘’ to DO’s Domains. you can create an ‘A’ record with name ‘www’ and point to your IP address ‘’ of Droplet(A), now the sub-domian ‘’ is related with the Droplet. The same way, you can add another ‘A’ record with name ‘images’ to point to your Droplet(B) which IP address is ‘’, let the ‘’ is related with the Droplet(B).

The domain name has nothing to do with droplet before you add dns records.

You create your MX record wherever your domains nameservers are and you point them to your droplet IP.