use ~all instead of -all for SPF

This commit is contained in:
Son Nguyen Kim 2021-09-23 10:30:59 +02:00
parent 486dd831cf
commit 469c2011aa
2 changed files with 2 additions and 2 deletions

View File

@ -161,7 +161,7 @@ Similar to DKIM, setting up SPF is highly recommended.
Add a TXT record for `mydomain.com.` with the value:
```
v=spf1 mx -all
v=spf1 mx ~all
```
What it means is only your server can send email with `@mydomain.com` domain.

View File

@ -42,7 +42,7 @@ def domain_detail_dns(custom_domain_id):
custom_domain.ownership_txt_token = random_string(30)
db.session.commit()
spf_record = f"v=spf1 include:{EMAIL_DOMAIN} -all"
spf_record = f"v=spf1 include:{EMAIL_DOMAIN} ~all"
# hardcode the DKIM selector here
dkim_cname = f"dkim._domainkey.{EMAIL_DOMAIN}"