From e25148c733753df376ab807c24b6cfd45888f88d Mon Sep 17 00:00:00 2001 From: Marcin Chrzanowski Date: Wed, 17 Jan 2024 11:48:25 +0100 Subject: Add ip SPF mechanisms to comply with gmail's policies --- content/mail/validate.md | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/content/mail/validate.md b/content/mail/validate.md index fbdba50..f443768 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= + IP6= + 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.html) 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) -- cgit v1.2.3 From ed8eda775c17b707576744e81f0738724aa64978 Mon Sep 17 00:00:00 2001 From: Marcin Chrzanowski Date: Wed, 17 Jan 2024 11:51:51 +0100 Subject: Fix links --- content/mail/rdns.md | 2 +- content/mail/validate.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/content/mail/rdns.md b/content/mail/rdns.md index 6a6ddf2..9ef700c 100644 --- a/content/mail/rdns.md +++ b/content/mail/rdns.md @@ -3,7 +3,7 @@ title: "Setup rDNS" tags: ['mail'] date: 2022-12-02 --- -While [DNS records](dns.html) refer a domain name to the IP address +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 server\'s IP to a domain name. diff --git a/content/mail/validate.md b/content/mail/validate.md index f443768..833ae13 100644 --- a/content/mail/validate.md +++ b/content/mail/validate.md @@ -218,7 +218,7 @@ 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.html) to. +records](../rdns) to. The output of `cat /etc/mailname` is the Host field. The output of the second command is the TXT value. -- cgit v1.2.3