Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

I have a web application that has two web servers that have SMTP servers, with the following names:


I have the SPF record setup for the second level as:

v=spf1 a mx -all

With Network Solutions, you add an asterisk as a wildcard for the host to cover all hosts. Does this setup cover mail01 and mail02, or do I need an SPF record for mail01 and mail02?

share|improve this question
up vote 2 down vote accepted

With regard to SPF, the hostname of your mail servers do not matter; what does is what you actually use for email addresses. So if you use addresses, then you need a SPF record for the domain. If you have email addresses like and, then you ALSO need SPF records for mail01 and mail02.

Actually, if you do not use the third level names for email addresses, it might be a good idea to have SPF records to prevent spoofing with v=spf1 -all.

share|improve this answer

Publish your SPF data as TXT records and if your bind supports it add SPF records. All A records which do not support sending mail should have a v=spf1 -all record.

The SPF site recommends using ip addresses in the form ip4: You only need the address of servers which should be sending email to the network. This may not be your MXs which should be accepting email, and may send email. Only enable sending addresses for domain and sub-domains which send e-mail. If you have roaming users, configure the submission port, and have them send via your mail server. This allows you to end your rule -all rather than one of looser configurations.

Further details are available from the Sender Policy Framework site. My website has article on setting up mail services using Exim which covers SPF.

share|improve this answer

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.