homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / WebmasterWorld / Webmaster General
Forum Library, Charter, Moderators: phranque

Webmaster General Forum

SPF record
Please help to set up SPF record

 9:41 am on Jun 21, 2010 (gmt 0)


Please help to set up SPF records for "mydomain.com".

I am sending mail from:

1) server where website "mydomain.com" is hosted. IP address
2) from Gmail servers (MX records)
3) I am also using third party SMTP server "mail.otherserver.com", IP address (reverse record for is mail.otherserver.com)

I don't want to allow sending mail from any other servers.

Below are 3 different versions for SPF record.

Hotmail.com version:

v=spf1 a mx ip4: mx:alt1.aspmx.l.google.com mx:alt2.aspmx.l.google.com mx:aspmx.l.google.com mx:aspmx2.googlemail.com mx:aspmx3.googlemail.com mx:aspmx4.googlemail.com mx:aspmx5.googlemail.com a:mail.otherserver.com -all

Open SPF version:

"v=spf1 a mx a:mail.otherdomain.com include:mail.otherserver.com ~all"

Google's version is the following (for MX servers):

v=spf1 include:_spf.google.com ~all

I don't understand the following things:
1. Why Open SPF uses just "mx" for MX records but Hotmail lists all MX records. The same with A record where is used "a" and IP4.
3. Why Google tells to use "_spf.google.com" - none of MX records contain "google.com".
4. Why Hotmail's version is "a:mail.otherserver.com" but Open SPF uses "include:mail.otherserver.com". Where is the difference between "a" and "include".

I am lost. Please help.



 7:27 am on Jun 24, 2010 (gmt 0)

I'm lost too. ;)

Are you comparing your SPF to the SPF records of Hotmail, et. al? Or did you use different tools that generated these SPF records for you?


 9:35 am on Jun 24, 2010 (gmt 0)

these are probably your best resources...

The SPF Setup Wizard:
http://old.openspf.org/wizard.html [old.openspf.org]

SPF: SPF Record Syntax:
http://www.openspf.org/SPF_Record_Syntax [openspf.org]


 9:32 pm on Jun 24, 2010 (gmt 0)


I just used different tools to generate SPF records the results are different.

I also posted a question in Yahoo Answers. I got only 1 answer and it says that both versions are correct. They are just different.


 7:17 am on Jun 25, 2010 (gmt 0)

They may be valid SPF, but I'm not sure they would perform exactly the same.

Global Options:
 top home search open messages active posts  

Home / Forums Index / WebmasterWorld / Webmaster General
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved