|
|
@@ -68,30 +68,18 @@ class InfoSettingDataProvider extends BaseDataProvider
|
|
|
if(empty($dnsRecords['spf'])) {
|
|
|
$spf = 'unset';
|
|
|
} else {
|
|
|
- if (count($dnsRecords['spf']) > 1) {
|
|
|
- $spf = 'multi';
|
|
|
- } else {
|
|
|
- if($dnsRecords['spf'][0] === $this->spfConfig){
|
|
|
- $dnsRecords['spf'][0];
|
|
|
- } else {
|
|
|
- $spf = 'wrong';
|
|
|
- }
|
|
|
- }
|
|
|
+ $spf = implode('',$dnsRecords['spf']);
|
|
|
}
|
|
|
if(empty($dnsRecords['dmarc'])) {
|
|
|
$dmarc = 'unset';
|
|
|
} else {
|
|
|
- if (count($dnsRecords['dmarc']) > 1) {
|
|
|
- $dmarc = 'multi';
|
|
|
- } else {
|
|
|
- if($dnsRecords['dmarc'][0] === $this->dmarcConfig){
|
|
|
- $dmarc = $dnsRecords['dmarc'][0];
|
|
|
- } else {
|
|
|
- $dmarc = 'wrong';
|
|
|
- }
|
|
|
- }
|
|
|
+ $dmarc = implode('',$dnsRecords['dmarc']);
|
|
|
+ }
|
|
|
+ if(empty($dnsRecords['dkim'])) {
|
|
|
+ $dkim = 'unset';
|
|
|
+ } else {
|
|
|
+ $dkim = implode('',$dnsRecords['dkim']);
|
|
|
}
|
|
|
- in_array($this->domainKey, $dnsRecords['dkim']) ? $dkim = 'set' : $dkim = 'unset';
|
|
|
$this->data = [
|
|
|
'id' => $maildomain,
|
|
|
'domain' => $maildomain,
|