Report this

What is the reason for this report?

Need some help in setting up a SPF record

Posted on April 5, 2013

I have setup a SPF record like this: Name - @ Text - “v=spf1 a -all”

But if I do a test using the first SPF Record Testing Tool here: http://www.kitterman.com/spf/validate.html, this is what I get:

" SPF record lookup and validation for: z.sumansinha.com

SPF records are primarily published in DNS as TXT records.

The TXT records found for your domain are: v=spf1a-all

SPF records should also be published in DNS as type SPF records. No type SPF records found.

Checking to see if there is a valid SPF record.

No valid SPF record found of either type TXT or type SPF. "



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.

My TXT record is “v=spf1 ip4:ip_address include:_spf.google.com ~all”. But what is the value to be added to TTL field? Is it 3600 or 1800?

And my Laravel 5.4 project’s .env looks:

MAIL_DRIVER=smtp MAIL_HOST=smtp.gmail.com MAIL_PORT=587 MAIL_USERNAME=contact@mydomain.com MAIL_PASSWORD=somepassword MAIL_ENCRYPTION=tls

But it doesn’t send email out and generate: Connection could not be established with host smtp.gmail.com [Connection timed out #110]

Please advise

I forgot to add the quotes around the SPF. The Kitterman tool showed an invalid SPF with all the spaces removed. As mentioned above, this was due to not having double quotes around the TXT value. <br> <br>I added one set of double quotes surrounding the entire SPF value, as shown above, and hit enter to save the changes in the DO DNS editor. <br> <br>A dig command returned quotes around every string, which is clearly not how it looks in the DO DNS admin, and not how I’d added it. <br> <br>Example <br>“v=spf1” “ip4:123.123.123.123” “a” <br> <br>Solution <br>Had to delete the TXT record and re-add it in the correct quoted format for the DNS and then wait about 15 minutes. <br> <br>This may be a bug in the DO DNS editing interface trying to be smart and auto quote TXT values, but going crazy and quoting every string independently.

For Google mail, this official Google help doc suggests using ~all instead of -all: <br>https://support.google.com/a/bin/answer.py?hl=en&answer=178723&topic=2759192&ctx=topic <br>

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.