DKIM and dmarc hardcoded
This commit is contained in:
@@ -232,6 +232,7 @@ function createDomainZone($domain_id, $froxlorhostname = false, $isMainButSubTo
|
||||
if (Settings::Get('dkim.use_dkim') == '1') {
|
||||
$dkim_entries = generateDkimEntries($domain);
|
||||
}
|
||||
if ($domain['isemaildomain'] === '1') {
|
||||
#DKIM AND DMARC
|
||||
$zonerecords[] = new DnsEntry('mx._domainkey', 'TXT', '("v=DKIM1; k=rsa;"
|
||||
"p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAyk6+Y5RkqqGeTxWmULWE"
|
||||
@@ -244,7 +245,7 @@ function createDomainZone($domain_id, $froxlorhostname = false, $isMainButSubTo
|
||||
)');
|
||||
|
||||
$zonerecords[] = new DnsEntry('_dmarc', 'TXT', encloseTXTContent('v=DMARC1; p=reject; rua=mailto:nyvpxtul@ag.dmarcian-eu.com; fo=1; adkim=r; aspf=r; pct=100; rf=afrf; ri=86400;'));
|
||||
|
||||
}
|
||||
foreach ($required_entries as $type => $records) {
|
||||
if ($type == 'TXT') {
|
||||
foreach ($records as $record) {
|
||||
|
||||
Reference in New Issue
Block a user