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

My server hostname is:


and its IP address is:


I want to configure a postfix mail server on this server. Can anyone tell me the correct DNS zone file configuration for this server so that I get a spf="Pass", when I send mail from my mail server to gmail or any other mail server.

share|improve this question
up vote 3 down vote accepted

You need to create a TXT record for that looks like: "v=spf1 a -all".

You can validate the record by using something like:

Hey, look, Microsoft has an SPF record generator:

Once you generate your record, you will need to add it to your DNS service.

share|improve this answer
Thanks i will try this. – achal tomar Apr 5 '12 at 8:39

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.