13

I'm using the new AWS GUI for Route 53 to setup my domain records. However, the AWS console won't accept the recommended Google Apps SPF record, v=spf1 include:_spf.google.com ~all (found here).

It keeps giving me an error stating

The record set could not be saved because:
- The Value field contains invalid characters or is in an invalid format.

This happens when saving as SPF and TXT. Any ideas?

1
  • You have to quote it, which threw me off too. Google's instructions are terrible, which is why i wrote up a complete guide on this: blog.andrewray.me/…
    – Andy Ray
    Sep 23, 2017 at 20:32

4 Answers 4

33

I had to wrap my SPF record in quotation marks for it to work.

"v=spf1 include:_spf.google.com ~all"

0
1

It's a new feature for the console. Chances are it's the console part that is rejecting the 'invalid' characters, rather than the underlying system.

I'd try setting it with one of the many tools available for configuring Route 53 and if that doesn't work, contact Amazon

1

My fix was to wrap the record in quotation marks and replace the ~ with a -.

Here is the value that works:

"v=spf1 include:_spf.google.com -all"

2
-1

Using doubles you can set that value without raising error messages. It worked fine for me.

1
  • To clarify, he meant to say ""double quotes"", which bypasses the checks for invalid characters. Jul 5, 2019 at 15:18

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .