I have a quick question regarding SPF records: Do they need to be present for all subdomains?

Lets say that I have a TXT record with SPF info for domain.com

Let's also say that I have a seperate email domain for subdomain.domain.com

Will the SPF policy/info for domain.com also apply to the subdomain? Or do I need to add a separate TXT record for that too?

link|improve this question

74% accept rate
feedback

2 Answers

up vote 8 down vote accepted

You need to have separate SPF records for each subdomain you wish to send mail from. http://www.openspf.org/FAQ/The_demon_question

This makes sense - a subdomain may very well be in a different geographical location which will have a very different SPF definition.

EDIT - the 'include:' directive for SPF may be used to provide all subdomains with the same entries. For example, on the SPF record for subdomain mailfrom.example.com enter 'include:example.com'. In this fashion whenever you update the definition for example.com your subdomains will automatically pick up the updated values.

link|improve this answer
Agreed. Thanks! – Mike B Oct 19 '11 at 16:19
feedback

No, but you can short-circuit them with the include:maindomain.invalid directive.

link|improve this answer
Can you elaborate on that? I'm curious... How would that directive work? – Mike B Oct 19 '11 at 17:55
feedback

Your Answer

 
or
required, but never shown

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