Question

How should SPF configured

Posted April 3, 2014 4.1k 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?

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.

×
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"
Submit an Answer