Report this

What is the reason for this report?

How should SPF configured

Posted on April 3, 2014

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?



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!

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.

A useful spf record wizard can be found at http://www.microsoft.com/mscorp/safety/content/technologies/senderid/wizard/ <br> <br>Thinking something along the lines of <br>“v=spf1 a:server.foo.com include:_spf.google.com ~all” <br>or <br>“v=spf1 ip4:your.server.ip.address include:_spf.google.com ~all” <br> <br>

Thank you Doug. This should solve my question…

I ended up with following configuration. <br> <br>TXT @ “v=spf1 a mx ptr:server.foo.com include:_spf.google.com ~all” <br> <br>I also added following record because I send server logs via emails from root@server.foo.com . <br> <br>TXT server “v=spf1 a ptr -all”

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.