Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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

I'm using VPS server with ubuntu 11.04 and webmin. And in one of my domain I'd like to use google apps, but neither in webmin panel nor in conf file I see a place to add this google spf record:

v=spf1 ~all

Content of hosts file :

$ttl 38400      IN      SOA (
                        38400 )      IN      NS      IN      NS      IN      A  IN      A  IN      A  IN      CNAME IN      CNAME      IN      MX      1 ASPMX.L.GOOGLE.COM.      IN      MX      5 ALT1.ASPMX.L.GOOGLE.COM.      IN      MX      5 ALT2.ASPMX.L.GOOGLE.COM.      IN      MX      10 ASPMX2.GOOGLEMAIL.COM.      IN      MX      10 ASPMX3.GOOGLEMAIL.COM.
share|improve this question

closed as off-topic by masegaloeh, HBruijn, fuero, Sven Mar 9 '15 at 8:20

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions should demonstrate reasonable business information technology management practices. Questions that relate to unsupported hardware or software platforms or unmaintained environments may not be suitable for Server Fault - see the help center." – masegaloeh, HBruijn, fuero, Sven
If this question can be reworded to fit the rules in the help center, please edit the question.

up vote 2 down vote accepted

You need to add a line:  IN      TXT     "v=spf1 ~all"

Note that you should list all domains that you send email from for your domain. If you have a web server sending email with your domain, then you need to include that server's IP as well.

Use a SPF setup wizard to help you get it right.

share|improve this answer
Why not set IN SPF "v=spf1 ~all"?? – mailq Jan 4 '12 at 22:30
SPF RR's will work if your version of bind supports it. I think those were adding in bind 9.3 or 9.4. – jeffatrackaid Jan 4 '12 at 22:38
If your version of BIND supports SPF type records, add both. A lot of mailing system are not yet geared to query the actual spf type, and thus cannot abide to the desired standard. During transitioning period from the current usage of TXT RR's to the use of SPF RR's, it is recommended that systems supporting both, actually has both types configured – Mathias R. Jessen Jan 5 '12 at 1:10
@JudasIscariot1651 Is there an RFC on this recommendation? For future compatibility it makes sense but not sure how far in the future that will be. Just asking as we have clients on legacy systems that do not support SPF RRs yet. – jeffatrackaid Jan 5 '12 at 16:51
@jeffatrackaid section 3.1.1 – Mathias R. Jessen Jan 5 '12 at 19:03

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