homepage Welcome to WebmasterWorld Guest from 54.211.219.68
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / WebmasterWorld / Webmaster General
Forum Library, Charter, Moderators: phranque

Webmaster General Forum

    
SPF record
Please help to set up SPF record
gcan

5+ Year Member



 
Msg#: 4155911 posted 9:41 am on Jun 21, 2010 (gmt 0)

Hello,

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 111.111.111.111
2) from Gmail servers (MX records)
3) I am also using third party SMTP server "mail.otherserver.com", IP address 222.222.222.222 (reverse record for 222.222.222.222 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:111.111.111.111 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.

 

bill

WebmasterWorld Administrator bill us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 4155911 posted 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?

phranque

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



 
Msg#: 4155911 posted 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]

gcan

5+ Year Member



 
Msg#: 4155911 posted 9:32 pm on Jun 24, 2010 (gmt 0)

bill,

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.

bill

WebmasterWorld Administrator bill us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 4155911 posted 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