Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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 include:_spf.google.com ~all

Content of hosts file :

$ttl 38400
sy.com.tr.      IN      SOA     ns1.sy.com.tr. me.ugurbaltaci.com. (
                        38400 )
sy.com.tr.      IN      NS      ns1.sy.com.tr.
sy.com.tr.      IN      NS      ns2.sy.com.tr.
sy.com.tr.      IN      A
ns1.sy.com.tr.  IN      A
ns2.sy.com.tr.  IN      A
www.sy.com.tr.  IN      CNAME   sy.com.tr.
mail.sy.com.tr. IN      CNAME   ghs.google.com.
sy.com.tr.      IN      MX      1 ASPMX.L.GOOGLE.COM.
sy.com.tr.      IN      MX      5 ALT1.ASPMX.L.GOOGLE.COM.
sy.com.tr.      IN      MX      5 ALT2.ASPMX.L.GOOGLE.COM.
sy.com.tr.      IN      MX      10 ASPMX2.GOOGLEMAIL.COM.
sy.com.tr.      IN      MX      10 ASPMX3.GOOGLEMAIL.COM.
share|improve this question
And what is the question? –  mailq Jan 4 '12 at 22:14
Re title your question. How to add an SPF record in Webmin? –  jeffatrackaid Jan 4 '12 at 22:15

1 Answer 1

up vote 1 down vote accepted

You need to add a line:

sy.com.tr.  IN      TXT     "v=spf1 include:_spf.google.com ~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 sy.com.tr. IN SPF "v=spf1 include:_spf.google.com ~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 ietf.org/rfc/rfc4408.txt section 3.1.1 –  Mathias R. Jessen Jan 5 '12 at 19:03

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.