summaryrefslogtreecommitdiff
path: root/content/mail
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2024-07-16 08:33:44 -0400
committerGitHub <noreply@github.com>2024-07-16 08:33:44 -0400
commit7c5e26ccb1c1b401880bf7e22c74b92c86df7e5e (patch)
tree137b4202e7a362401ed66b9cd85482a4a9a1e642 /content/mail
parentb5d7e4b977208d89b4615a8ded2525c97e3ba517 (diff)
parent613b27642fa4c5315ae925ec6701a224eec08c39 (diff)
Merge pull request #298 from m-chrzan/m-chrzan/spf
Specify ip4 and ip6 SPF mechanisms to comply with gmail's policies
Diffstat (limited to 'content/mail')
-rw-r--r--content/mail/rdns.md1
-rw-r--r--content/mail/validate.md15
2 files changed, 15 insertions, 1 deletions
diff --git a/content/mail/rdns.md b/content/mail/rdns.md
index 0e2943d..85cce0f 100644
--- a/content/mail/rdns.md
+++ b/content/mail/rdns.md
@@ -3,6 +3,7 @@ title: "Setup rDNS"
tags: ['mail']
date: 2022-12-02
---
+
While [DNS records](/basic/dns) refer a domain name to the IP address
where the the website is hosted, there is also rDNS (reverse DNS) and
specifically PTR (pointer) records which do the reverse: link a
diff --git a/content/mail/validate.md b/content/mail/validate.md
index 15db0c7..8447409 100644
--- a/content/mail/validate.md
+++ b/content/mail/validate.md
@@ -209,9 +209,22 @@ an email-authentication standard used to prevent spammers from sending messages
that appear to come from a spoofed domain.
cat /etc/mailname
- echo "v=spf1 mx a:mail.$(cat /etc/mailname) -all"
+ IP4=<your VPS's IPv4 address>
+ IP6=<your VPS's IPv6 address>
+ echo "v=spf1 mx a:mail.$(cat /etc/mailname) ip4:$IP4 ip6:$IP6 -all"
+
+**Note**: previous versions of this guide didn't ask you to specify the `ip4`
+and `ip6` mechanisms. If you don't include them, some email hosts (most
+notoriously gmail) will not accept mail from your server.
+
+The `IP4` and `IP6` values should be the same as what you set your [PTR
+records](../rdns) to.
The output of `cat /etc/mailname` is the Host field. The output of the second command is the TXT value.
Again, you can check [that site](https://appmaildev.com/en/spf)
to make sure your DKIM, DMARC, and SPF entries are valid. That's it!
+
+## Contribution
+
+- SPF mechanisms updated by Martin Chrzanowski \-- [website](https://m-chrzan.xyz), [donate](https://m-chrzan.xyz/donate.html)