Updated Order And Syntax Of SPF Records (#395)

* Updated order and syntax of SPF records.

* Re-added the 'ra' field and corrected the order of the SPF records to have '-all' at the end.
This commit is contained in:
Meade 2024-05-06 12:44:35 +00:00 committed by GitHub
parent 67db7348e7
commit 8c224290aa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -212,14 +212,14 @@ impl JMAP {
records.push(DnsRecord {
typ: "TXT".to_string(),
name: format!("{server_name}."),
content: "v=spf1 a -all ra=postmaster".to_string(),
content: "v=spf1 a ra=postmaster -all".to_string(),
});
}
records.push(DnsRecord {
typ: "TXT".to_string(),
name: format!("{domain_name}."),
content: "v=spf1 mx -all ra=postmaster".to_string(),
content: "v=spf1 mx ra=postmaster -all".to_string(),
});
// Add DMARC records