Linux – How to set SPF record

domain-name-systememaillinuxpostfixspf

I have configured postfix to use mail.example.com

I have many virtual domains, like:

  • domain1.com
  • domain2.com
  • domain3.com

My question is, how to set the SPF? Do I have to set SPF for each domain or only to mail.example.com (MX) ?

These domains have to send email through mail.example.com.

Best Answer

You will need a TXT SPF record for each domain.

The following reason explains why:

If you send me an email from mail.example.com (as your postfix server) and claim to be dail@domain1.com then my server (SPF capable) would look up the SPF record of domain1.com.

It would be specifically looking in the TXT SPF record of domain1.com for the mention of mail.example.com and whether it is permitted to send emails on behalf of domain1.com.

(http://www.openspf.org/FAQ/What_it_does)

Related Topic