Gmail pass authentication checks - email is blocked

I’m using phpsendmail and when I run tests to gmail, I’m getting the following errors:

This message does not have authentication information or fails to 550-5.7.26 pass authentication checks. To best protect our users from spam, the 550-5.7.26 message has been blocked. Please visit 550-5.7.26 for more 550 5.7.26 information.

I’ve already added the TXT record to my domain in DigitalOcean dashboard.

type: TXT hostname: @ value: v=spf1 ~all TTL: 3600

Am I doing something wrong?

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.

I did everything, I added SPF and DKIM and still get the same problem.

hi @srenert,

You’ll need to configure SPF and DKIM. Both of them serve as authentication so that other servers know your E-mails are legit.

SPF and DKIM are two types of TXT records in DNS that can help prevent email spoofing and ensure legitimate emails are delivered into the recipient’s inbox instead of spam folder. If your domain is abused by email spoofing, then your emails are likely to landed in recipient’s spam folder if they didn’t add you in address book.

SPF (Sender Policy Framework) record specifies which hosts or IP addresses are allowed to send emails on behalf of a domain. You should allow only your own email server or your ISP’s server to send emails for your domain.

DKIM (DomainKeys Identified Mail) uses a private key to add a signature to emails sent from your domain. Receiving SMTP servers verify the signature by using the corresponding public key, which is published in your DNS manager.

You can follow the following articles in order to configure it on your Droplet:

Once you have configured this, you can check this website for your E-mail score:

Regards, KDSys