gmail says "best guess record for domain

March 8, 2018 328 views
PHP Email CentOS

I am using php to send emails from my droplet and the emails always go to the gmail spam folder.

Specifically, I see the following:

Received-SPF: pass ( best guess record for domain of designates as permitted sender) client-ip=;
spf=pass ( best guess record for domain of designates as permitted sender)

Something needs to be done in order to avoid having the emails go to the spam folder.

The message "best guess record for domain" indicates that something needs to be done with the subdomain "droplet"?

Do I have to define something in the DNS?

1 Answer
kamaln7 MOD March 11, 2018
Accepted Answer

It appears that you have an SPF record configured for, but not, which emails are being sent from. This is why you are seeing that message—Google is guessing that it should use your domain's SPF record for the subdomain as well.

Consider using DKIM in order to try and improve deliverability rates. See this tutorial—it is a bit old, but the instructions should still work.

You can also use this tool to check your server's settings and see if you can improve anything else:

by Popute Sebastian Armin
This tutorial will focus on installing and configuring OpenDKIM: an open source implementation of the DKIM sender authentication system.
Have another answer? Share your knowledge.