mirror of
https://github.com/PhyreApps/PhyrePanel.git
synced 2024-11-25 00:50:32 +00:00
Update DkimSetup.php
This commit is contained in:
parent
b0aa66e756
commit
538adb73c5
1 changed files with 4 additions and 4 deletions
|
@ -35,19 +35,19 @@ class DkimSetup extends Component
|
||||||
$checks = [];
|
$checks = [];
|
||||||
$checkOne = shell_exec('dig @1.1.1.1 +short MX '.$getMainDomain);
|
$checkOne = shell_exec('dig @1.1.1.1 +short MX '.$getMainDomain);
|
||||||
$checkOnePass = false;
|
$checkOnePass = false;
|
||||||
if (str_contains($checkOne, '10 '.$this->domain)) {
|
if (str_contains($checkOne, '10 mail.'.$this->domain)) {
|
||||||
$checkOnePass = true;
|
$checkOnePass = true;
|
||||||
}
|
}
|
||||||
$checks[] = [
|
$checks[] = [
|
||||||
'check' => 'MX',
|
'check' => 'MX',
|
||||||
'pass' => $checkOnePass,
|
'pass' => $checkOnePass,
|
||||||
'result'=>$checkOne,
|
'result'=>$checkOne,
|
||||||
'must'=>'10 '.$this->domain
|
'must'=>'10 mail'.$this->domain
|
||||||
];
|
];
|
||||||
|
|
||||||
$checkTwo = shell_exec('dig @1.1.1.1 +short A '.$this->domain);
|
$checkTwo = shell_exec('dig @1.1.1.1 +short A mail.'.$this->domain);
|
||||||
$checkTwo = trim($checkTwo);
|
$checkTwo = trim($checkTwo);
|
||||||
$getIpOfDomain = gethostbyname($this->domain);
|
$getIpOfDomain = gethostbyname('mail.'.$this->domain);
|
||||||
$checkTwoPass = false;
|
$checkTwoPass = false;
|
||||||
if ($checkTwo == $getIpOfDomain) {
|
if ($checkTwo == $getIpOfDomain) {
|
||||||
$checkTwoPass = true;
|
$checkTwoPass = true;
|
||||||
|
|
Loading…
Reference in a new issue