How to configure email, reverse DNS & PTR for google apps for work?

  • Posted November 13, 2014

I am a complete beginner, so bear with me. I have successfully created a droplet, and installed my wordpress there. I am also using cloudflare for my CDN. Unfortunately I couldn’t get email to work. (Im using third party service for email aka google apps for work) The email sent from my wordpress is marked as spam. Upon further conversation with google support, I was told that this is because my PTR/reverse DNS has not been set up. (as listed on this website:

I have looked at a few tutorials, but they all involved setting up FQDN, to my understanding I need to setup something like for FQDN. Is not considered an FQDN?

for information, My domain/URL is my droplet is called

when i do #hostname, i received --> and when I do # hostname -f, I received -->

Can anyone guide me on how to set PTR/reverse DNS so that my emails are no longer marked as SPAM?


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.

Hey there,

A FQDN would be We automatically configure PTR records based on the name of the Droplet. If the Droplet is named a FQDN the PTR will automatically have a proper reverse DNS. Notably you will want a matching forward DNS record pointing back at the IP address.

Happy coding,

Jon Schwenn Platform Support Specialist DigitalOcean