Question

How do I setup SPF on my droplet?

Hi! I am sending emails with my droplet and everything works fine except that it turns up as spam. I have tried adding a bunch of different SPF’s but I can’t seem to get it right.

Can anyone help me please?


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.

try @ IN TXT “v=spf1 a -all” see if your mail now bounces

If it doesn’t then your problem isn’t spf1 it is either the reputation of your host / IPaddress or your spammy content. (that is if your receiver does the “-all” as requested.)

If it does bounce then you are sending mail from the wrong IPaddress (whatever the @ resolves to in your config. section 6.3.5.1 and 6.3.5.2 of the bind9 manual)

Im using the droplet as a mailserver. ive tried many TXT entries such as @ IN TXT “v=spf1 a ?all” but i still get flagged as spam

@mattiassal - What TXT entries are you currently using? Are you using third-party to send mail, or is the droplet set up as a mail server?

You may want to take a look at the following as well:

http://www.spfwizard.com/

That’ll help guide you through the process and allowing you to quickly create a valid SPF.