docs: suggest mx to refer to mailserver in spf record

Much more foolproof in simple setups, because it allows all servers
mentioned in a domains MX record to also send out mail, without having to
track them here manually again.
This commit is contained in:
Martin Weinelt
2026-02-26 01:03:53 +01:00
parent 781e833633
commit 034ca15318
+5 -5
View File
@@ -122,18 +122,18 @@ Set a ``SPF`` record
Add a `SPF <https://en.wikipedia.org/wiki/Sender_Policy_Framework>`_ Add a `SPF <https://en.wikipedia.org/wiki/Sender_Policy_Framework>`_
record to the domain ``example.com``. record to the domain ``example.com``.
================ ===== ==== ================================ ================ ===== ==== ================
Name (Subdomain) TTL Type Value Name (Subdomain) TTL Type Value
================ ===== ==== ================================ ================ ===== ==== ================
example.com 10800 TXT `v=spf1 a:mail.example.com -all` example.com 10800 TXT `v=spf1 mx -all`
================ ===== ==== ================================ ================ ===== ==== ================
You can check this with You can check this with
:: ::
$ nix-shell -p bind --command "host -t TXT example.com" $ nix-shell -p bind --command "host -t TXT example.com"
example.com descriptive text "v=spf1 a:mail.example.com -all" example.com descriptive text "v=spf1 mx -all"
Note that it can take a while until a DNS entry is propagated. Note that it can take a while until a DNS entry is propagated.