How should SPF configured

April 3, 2014 1.8k views
Hi, I have a several domains hosted on my droplet like and and my server's hostname is like I have set google services to send and receive emails. But hosted web applications also send emails using those domains (like, and from my droplet. I have configured following TXT record at DNS for each domains. @ : "v=spf1 ~all" But I think, this record says that google can send email safely as this domain. So, the e-mails sent from my droplet can still be flagged as spam. How can I include my droplet as a safe smtp server for all hosted domains?
3 Answers
A useful spf record wizard can be found at

Thinking something along the lines of
"v=spf1 ~all"
"v=spf1 ip4:your.server.ip.address ~all"

Thank you Doug. This should solve my question..
I ended up with following configuration.

TXT @ "v=spf1 a mx ~all"

I also added following record because I send server logs via emails from .

TXT server "v=spf1 a ptr -all"
Have another answer? Share your knowledge.