Two SPF entries?

I send email from my server while having the “from” and “reply-to” fielding being from hotmail and gmail. This results in some of m emails being blocked or spam boxed. Is it possible to add two SPF entries or can I combine into one?

v=spf1 include:hotmail.com ~all
v=spf1 include:gmail.com ~all

Can I add both those or combine them somehow and is that the right format? thanks!

Hotmail itself has the following SPF record


v=spf1 include:spf-a.hotmail.com include:spf-b.hotmail.com include:spf-c.hotmail.com include:spf-d.hotmail.com ~all

so I’d say for your case it should be


v=spf1 include:hotmail.com include:gmail.com ~all

also see SPF Record Setup for Multiple Mail Server. Help Please Thanks! - Google Apps Help

thanks! I will try that

hmmm emails from my server still are rated “Received-SPF: neutral”

SPF records are cached, so it might take a while for new servers to pick up on your changed record. For example for hotmail:


# dig hotmail.com TXT

; <<>> DiG 9.7.3 <<>> hotmail.com TXT
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 59818
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;hotmail.com.                   IN      TXT

;; ANSWER SECTION:
hotmail.com.            [COLOR="Blue"][B]3600[/B][/COLOR]    IN      TXT     "v=spf1 include:spf-a.hotmail.com include:spf-b.hotmail.com include:spf-c.hotmail.com include:spf-d.hotmail.com ~all"

;; Query time: 0 msec
;; SERVER: 10.0.0.1#53(10.0.0.1)
;; WHEN: Sat Aug 13 10:06:25 2011
;; MSG SIZE  rcvd: 157

3600 is the TTL, or Time To Live – the amount of time DNS resolvers are allowed to cache the result. In this case one hour (60 minutes * 60 seconds = 3600 seconds)

Well, your server are not very known as hotmail, gmail, etc… so you get only neutral rank. neutral rank is very fine. But the problem is not in spf = you are forging emails (your email must come from your server and your domain), or come from gmail and etc it selves (from webmail or smtp). You may always set reply-to as gmail account or anything, but field from need to be your email account at your server. Otherwise some servers may check it up and your mail will go to spam folder.

This is a handy wizard to create a SPF record, especially with multiple domains involved.

http://www.microsoft.com/mscorp/safety/content/technologies/senderid/wizard/