Question

How to set up dns for mail server?

I have my DNS pointing to ns1.digitalocean, ns2.digitalocean and I have mail server set on another server, not on digitalocean droplet. How am i supposed to set dns to point on another server? I have made MX and CNAME records pointing to mail server and it works for outgoing mails but not for incoming so I am not receiving any mails.


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.

Hello, @redcode

You need to set the MX record to point to your mail provider. You can ask the third-party for the MX record and then simply configure the DNS from your DigitalOcean account.

You can also double-check our tutorial on how to manage DNS records:

https://www.digitalocean.com/docs/networking/dns/how-to/manage-records/

For MX records use this link:

https://www.digitalocean.com/docs/networking/dns/how-to/manage-records/#mx-records

Hope that this helps! Regards, Alex