Mail could not verify that it actually came from my domain.

Hello everybody, I have gmail as business email provider connected to my e-commerce webshop. I have my droplet and DNS records hosted at Digitalocean. When I send emails I get this warning in email: “Mail could not verify that it actually came from yourdomain. Avoid clicking links, downloading attachments, or replying with personal information.” I have searched for fixes and so far I have done this:

  1. Added a TXT record for domain with value = v=spf1 ~all
  2. Made sure that droplet name exactly matches domain name.

I still get warning so not sure what to do more. Anyone had the same problem?


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.


This sounds like that you are sending the emails from your website directly, in most cases you would see this problem if you don’t use SMTP but simple PHP mail.

I would recommend adjusting your e-commerce shop to use SMTP and then use the Gmail SMTP details. That way the emails sent from your shop would go through Gmail directly rather than being sent from your droplet.

Hope that this helps! Regards, Bobby