Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

We are using magento on our server. Magento sent transactional emails directly from our server using php mail function, along with this we are using third party webmail service. Means our mx entry pointing to other server.

In this case what will be the valid SPF entry that also include SPF entries from webmail server as well and is their any other dns entry we need to add?

Suppose our IP is, MX server points to:,

New suggested SPF entry will

v=spf1 +a +mx +ip4: ?all
share|improve this question
up vote 1 down vote accepted

You may start with...

"v=spf1 ip4:aaa.bbb.ccc.ddd ?all"

Assuming your IP is aaa.bbb.ccc.ddd and your MX record points to, the above SPF / TXT record should work for your requirement.

Once the SPF record works correctly, you may consider switching the above record to the following...

"v=spf1 ip4:aaa.bbb.ccc.ddd -all"

The symbol before the all means the following... (ref:

"+" Pass
"-" Fail
"~" SoftFail
"?" Neutral

You may also generate the SPF record using the online SPF generator from Microsoft at .

is their any other dns entry we need to add?

Yes, you need to add the above as a 'TXT' record. Ref: .

share|improve this answer
Thanks Pothi. whats is difference between and – ganesh Oct 7 '13 at 6:48
Just enter whatever the name of the mail server after include:. was the example I used. was the example you used. No other difference. – Pothi Oct 7 '13 at 7:16

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.