How do I setup SPF on my droplet?

Posted September 3, 2015 5.2k views

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?

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.

Submit an Answer
3 answers

@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:

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

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

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 and of the bind9 manual)