records.append((qname,"TXT",'v=spf1 a mx -all',"Recommended. Prevents unauthorized use of this domain name for outbound mail by specifying that only servers pointed to by a parallel A or MX record are valid sources for mail from @%s."%(qname+"."+domain)))
records.append((qname,"TXT",'v=spf1 -all',"Recommended. Prevents use of this domain name for outbound mail by specifying that no servers are valid sources for mail from @%s. If you do send email from this domain name you should either override this record such that the SPF rule does allow the originating server, or, take the recommended approach and have the box handle mail for this domain (simply add any receiving alias at this domain name to make this machine treat the domain name as one of its mail domains)."%(qname+"."+domain)))
records.append((dmarc_qname,"TXT",'v=DMARC1; p=reject',"Recommended. Prevents unauthorized use of this domain name for outbound mail by specifying that the SPF rule should be honoured for mail from @%s."%(qname+"."+domain)))
records.append((dmarc_qname,"TXT",'v=DMARC1; p=reject',"Recommended. Prevents use of this domain name for outbound mail by specifying that the SPF rule should be honoured for mail from @%s."%(qname+"."+domain)))
# Sort the records. The None records *must* go first in the nsd zone file. Otherwise it doesn't matter.