canyapan
By:
canyapan

How should SPF configured

April 3, 2014 2.7k views
Hi, I have a several domains hosted on my droplet like foo.com and bar.com and my server's hostname is like server.foo.com. I have set google services to send and receive emails. But hosted web applications also send emails using those domains (like site@foo.com, admin@blog.foo.com and site@bar.com) from my droplet. I have configured following TXT record at DNS for each domains. @ : "v=spf1 include:_spf.google.com ~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 http://www.microsoft.com/mscorp/safety/content/technologies/senderid/wizard/

Thinking something along the lines of
"v=spf1 a:server.foo.com include:_spf.google.com ~all"
or
"v=spf1 ip4:your.server.ip.address include:_spf.google.com ~all"

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

TXT @ "v=spf1 a mx ptr:server.foo.com include:_spf.google.com ~all"

I also added following record because I send server logs via emails from root@server.foo.com .

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