1
1
Fork 0
mirror of https://github.com/docker-mailserver/docker-mailserver synced 2024-06-01 23:06:05 +02:00
docker-mailserver/docs/content/config/best-practices/spf.md
2016-04-24 17:46:33 +02:00

835 B

Sender Policy Framework (SPF) is a simple email-validation system designed to detect email spoofing by providing a mechanism to allow receiving mail exchangers to check that incoming mail from a domain comes from a host authorized by that domain's administrators. The list of authorized sending hosts for a domain is published in the Domain Name System (DNS) records for that domain in the form of a specially formatted TXT record. Email spam and phishing often use forged "from" addresses, so publishing and checking SPF records can be considered anti-spam techniques.

To add a SPF record in your DNS, insert the following line in your DNS zone:

; Check that MX is declared
domain.com. IN  MX 1 mail.domain.com.

; Add SPF record
domain.com. IN TXT "v=spf1 mx ~all" 

Increment DNS serial and reload configuration.