Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

we are configuring DNS for a GMail service, the MX records are configured as to Google says, however, in the DNS check, there is a warning:

SPF must allow Google to send mail on behalf of the domain

My questions:

  • Why is the SPF record for GMail a problem?

  • How to resolve that issue?

Many thanks for your help!Google Mail error

share|improve this question
up vote 1 down vote accepted

You need to add a SPF DNS record in your DNS server (SPF = Sender Policy Framework). The value of this record is provided in your screenshot already.

It is highly recommended to add not only the SPF record but also a TXT record with the same value. The SPF record will tell receiving Emailservers that the Gmail servers are permitted to send Emails using your domain as sender (details:

If you have a domain provider who is giving you access to his DNS servers, then there might be a special option to set it up easily for you.

share|improve this answer
What does "add not only the SPF record but also a TXT record" mean? I have added @ IN TXT "v=spf1 ~all" and I get the same error. – erdomester Oct 30 '13 at 22:11

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.