dmarc entries for all emaildomains
This commit is contained in:
@@ -344,7 +344,14 @@ class Dns
|
||||
$soa_record = new DnsEntry('@', 'SOA', $soa_content);
|
||||
array_unshift($zonerecords, $soa_record);
|
||||
}
|
||||
|
||||
//DMARC
|
||||
//_dmarc 18000 IN TXT ("v=DMARC1; p=reject; fo=1; adkim=r; aspf=r; pct=100; rf=afrf; r"
|
||||
// "i=86400; rua=mailto:dmarc@zweiseitendergeschichte.de;")
|
||||
if ($domain['isemaildomain'] == '1') {
|
||||
$dmarc_txt = '("v=DMARC1; p=reject; fo=1; adkim=r; aspf=r; pct=100; rf=afrf; ri=86400; rua=mailto:dmarc@'.$domain['domain'].';")';
|
||||
$dmarc_record = new DnsEntry('_dmarc', 'TXT',$dmarc_txt );
|
||||
array_unshift($zonerecords,$dmarc_record);
|
||||
}
|
||||
$zone = new DnsZone((int) Settings::Get('system.defaultttl'), $domain['domain'], $domain['bindserial'], $zonerecords);
|
||||
|
||||
return $zone;
|
||||
|
||||
Reference in New Issue
Block a user