I am looking to setup a TXT spf record that has 2 included domains... individually:
v=spf1 include:_spf.google.com ~all
v=spf1 include:otherdomain.com ~all
What is the proper way of combining them into a single item?
Server Fault is a question and answer site for system and network administrators. It only takes a minute to sign up.Sign up to join this community
v=spf1 include:_spf.google.com include:otherdomain.com ~all
There's no restriction against including multiple names in a single entry; Hotmail, for instance, takes this to extremes. Note that multiple includes, or nested ones, need to stay under the limit of 10 total DNS lookups for the whole SPF check.
You can do this with spacing but use a tool to verify the 10 DNS lookup limit has not been breached. You cannot have multiple SPF records either so you may need to be brutal with the shortlist.
As an aside, you do not need
a:foo.com if you have
include:foo.com in the same string. If this is is a fallacious remark, please comment below.