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'm confused on how I should set up SPF records for my multiple domains. Here is my configuration:

the setup is:
(a) points to server1
(b) points to server2
(c) is a vhost in server1
(d) is a vhost in server1
(e) and so on..

I want the SPF record to be set up so that,, are authorized to send emails using I'm confused on wether to put the SPF record on each domain, or on the main server only.

share|improve this question
up vote 1 down vote accepted

You're thinking of this backwards. What you want is to allow to send mail on behalf of and The SPF records go on each of those domains, not on They would look something like

v=spf1 -all

Where any IP not matching the A record of would not be allowed to send mail (-all is a hard fail, ~all is a soft fail). Keep in mind SPF records are not necessarily enforced by recipient MTAs, it's optional

share|improve this answer

See this page:

Every domain have an SPF record, and in this record you can specify what is the allowed mail server for sending mail.

share|improve this answer

Specify the A record for like this:

v=spf1 -all

Put that record as the txt record for all 3 domains

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.