From 538adb73c5a9d0a73e6a9adc1c0b0d3e6be64354 Mon Sep 17 00:00:00 2001 From: Bozhidar Date: Mon, 30 Sep 2024 17:15:11 +0300 Subject: [PATCH] Update DkimSetup.php --- web/Modules/Email/App/Http/Livewire/DkimSetup.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/web/Modules/Email/App/Http/Livewire/DkimSetup.php b/web/Modules/Email/App/Http/Livewire/DkimSetup.php index d9599fd..69349a3 100644 --- a/web/Modules/Email/App/Http/Livewire/DkimSetup.php +++ b/web/Modules/Email/App/Http/Livewire/DkimSetup.php @@ -35,19 +35,19 @@ class DkimSetup extends Component $checks = []; $checkOne = shell_exec('dig @1.1.1.1 +short MX '.$getMainDomain); $checkOnePass = false; - if (str_contains($checkOne, '10 '.$this->domain)) { + if (str_contains($checkOne, '10 mail.'.$this->domain)) { $checkOnePass = true; } $checks[] = [ 'check' => 'MX', 'pass' => $checkOnePass, '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); - $getIpOfDomain = gethostbyname($this->domain); + $getIpOfDomain = gethostbyname('mail.'.$this->domain); $checkTwoPass = false; if ($checkTwo == $getIpOfDomain) { $checkTwoPass = true;