Welcome to WebmasterWorld Guest from

Forum Moderators: phranque

Message Too Old, No Replies

TXT record for SPF on two mail servers

9:09 pm on Sep 2, 2011 (gmt 0)

Senior Member

WebmasterWorld Senior Member 5+ Year Member

joined:Aug 3, 2007
votes: 0

I am adding Office 365 hosted Exchange for a domain that already has a TXT record in DNS to handle SPF for an existing email server. The current TXT record looks like this:

v=spf1 a mx ip4: -all

Now I need to add SPF information for Office 365. Here is the TXT record they have specified:

v=spf1 include:outlook.com ~all 

My DNS interface only allows one TXT record, but as I understand there is a way to combine both email servers into one record. However I can't find a specific example.

Can someone please show me how to combine the info into one TXT record?

Thanks in advance.
12:20 am on Sept 3, 2011 (gmt 0)


WebmasterWorld Administrator phranque is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Aug 10, 2004
votes: 8

did you try adding the include mechanism to your existing TXT record?
1:53 am on Sept 3, 2011 (gmt 0)

Senior Member from KZ 

WebmasterWorld Senior Member lammert is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Jan 10, 2005
posts: 2886
votes: 1

You can add multiple allowed email sources by adding them on the same line. In your situation:

v=spf1 ip4: include:outlook.com ~all

You have to think about using ~all or -all. In the latter case receiving servers will reject all emails which are not coming from the sources mentioned in the SPF record. The ~all treats these emails as neutral. This is especially important if you sign up to forums etc with your email address, because many forums and other social sites on the net use your email address as the source address of messages they send out. With the -all setting, many of these messages will never reach their destination.