Welcome to WebmasterWorld Guest from 54.144.79.200

Forum Moderators: phranque

Message Too Old, No Replies

SPF record

Please help to set up SPF record

     

gcan

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

5+ Year Member



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

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

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



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

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

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



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

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

5+ Year Member



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

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

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



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