|
|
@@ -157,6 +157,7 @@ class DnsHelper
|
|
|
'class' => 'IN',
|
|
|
'data' => $dnsparams['dmarcthurdata']
|
|
|
);
|
|
|
+ array_push($zoneRecords, $dmarcRecord);
|
|
|
$dkimRecord = array(
|
|
|
'line' => $maildomain.'.|TXT|0',
|
|
|
'name' => $dnsparams['dkimname'],
|
|
|
@@ -164,7 +165,7 @@ class DnsHelper
|
|
|
'class' => 'IN',
|
|
|
'data' => $dnsparams['dkimthurdata']
|
|
|
);
|
|
|
- array_push($zoneRecords, $dmarcRecord);
|
|
|
+ array_push($zoneRecords, $dkimRecord);
|
|
|
foreach($dnsZone['data']->records as $record) {
|
|
|
if($record->type == 'MX') continue;
|
|
|
if(!$record->type === 'TXT') {
|
|
|
@@ -200,11 +201,11 @@ class DnsHelper
|
|
|
return 'success';
|
|
|
}
|
|
|
|
|
|
- function KerioEmailunsetMX()
|
|
|
+ function KerioEmailunsetMX($maildomain)
|
|
|
{
|
|
|
$zoneIDcollection = Capsule::table('dns_manager2_zone')
|
|
|
->select('id')
|
|
|
- ->where('name', '=', $this->params['domain'])
|
|
|
+ ->where('name', '=', $maildomain)
|
|
|
->get();
|
|
|
$zoneIDobj = $zoneIDcollection[0];
|
|
|
$zoneID = $zoneIDobj->{'id'};
|