Question

How to set up dns for mail server?

  • Posted February 14, 2021
  • DNS

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.

Subscribe
Share

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

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.

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