Setup reverse dns for my mail server

Posted July 31, 2021 274 views

I was looking for a clear answer for the reverse DNS setup matter in digitalocean but didn’t find anyone like that, so that I am asking below question. My situation like as;

I have a droplet named and on this droplet I installed plesk and I configured this as my website as well as my mail server.

Now when I send email it goes to public spam folder and then I was searching for the problem why it is going to spam and noticed that its required a reverse dns.

Now my question is for setting a reverse dns what I have to do?
Do I need a fully new droplet?

If new droplet need then what should be its name for acting as my reverse dns with my main mail server of

Do I need to install plesk again to this server?
What setting I need to do on this new droplet if I need to make it as reverse dns.

Do I need to use the new droplet as my mail server other then my existing server of

Please someone guide me with a straight path.

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.

Submit an Answer
1 answer

Hello, @hadithbd

DigitalOcean automatically configures the reverse DNS entry (PTR). It will be the hostname you choose when you set up your droplet. The droplet must be named with a fully qualified domain name (example

You can change/check this in the control panel by selecting your droplet, then settings, then rename. As it says, changing the name there will update the PTR but not the hostname of the system, that is something you will need to do, instructions for that vary depending on the system you have installed.

Hope this helps!

  • Dear Alex

    Thanks for the info. Later I figured it out that like if my mail server is then the droplet name has to be renamed to otherwhise if only then the reverse dns does not work correctly.

    • Hello, @hadithbd

      Yes, usually this is the recommended way for the droplet configuration. However, keep in mind that you can have multiple domains hosted on your droplet and even that the rDNS will not match each domain, you can simply ensure that you have SPF, DKIM and DMARC records for your domains and there will be no issues with the outgoing emails.