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 two servers:


I have another server which I want to be allowed to send emails in behalf of the first two websites. How do I do this?

share|improve this question
include – Steve-o Sep 7 '11 at 7:38
up vote 3 down vote accepted

Assuming that both and have SPF records, add to each of those SPF records.

Edit: you write "So if I have 10 servers, it means editing the DNS zones for those 10?".

Yes, it does. Each domain's SPF record is authoritative for itself. However, if you have many domains that should all have identical records, you can change the first one, say, to include all the relevant information, then the others can reference it by defining each of their records to say just v=spf1

You'll still have to edit all 10 now, but you can avoid having to do it again later.

share|improve this answer
So if I have 10 servers, it means editing the DNS zones for those 10? – Dave Sep 7 '11 at 13:43
Thanks for the quick reply. That's really tedious. I wonder if there is another way besides using SPF records. – Dave Sep 7 '11 at 14:25
Hang on, are you saying you don't have SPF records right now? If you don't, then there's nothing stopping you sending email right now from claiming to be from – MadHatter Sep 7 '11 at 14:37
My problem are spambots. SPF records help ensure my mails don't get marked as spam. – Dave Sep 7 '11 at 15:07
OK, that's great, and I'm glad you're using SPF - but since you are, it's SPF that prevents you from sending email from claiming to be from The only way to change the function of your SPF records is to, well, change your SPF records! If you want a faster way of editing your ten DNS zone files than "by hand", well, that's different - ask a new question with some examples of your zone files, I'm sure someone will post a sed or perl script quicker than boiled asparagus. – MadHatter Sep 7 '11 at 15: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.