mirror of
https://github.com/PhyreApps/PhyrePanel.git
synced 2024-11-21 23:20:24 +00:00
update
This commit is contained in:
parent
732606270a
commit
371619c6d3
3 changed files with 11 additions and 5 deletions
|
@ -21,6 +21,7 @@ class DkimSetup extends Component
|
|||
'secure' => $secure,
|
||||
'verify' => $verify,
|
||||
'mainDomain' => $mainDomain,
|
||||
'serverIp' => $_SERVER['SERVER_ADDR'],
|
||||
]);
|
||||
}
|
||||
|
||||
|
|
|
@ -11,9 +11,13 @@ class DkimDomainSetup
|
|||
$dkimTextFile = '/etc/opendkim/keys/'.$domain.'/mail.txt';
|
||||
|
||||
if (is_file($dkimPrivateKeyFile)) {
|
||||
|
||||
$dkimText = file_get_contents($dkimTextFile);
|
||||
$dkimText = str_replace("\r\n", "\n", $dkimText);
|
||||
|
||||
return [
|
||||
'privateKey' => file_get_contents($dkimPrivateKeyFile),
|
||||
'text' => file_get_contents($dkimTextFile),
|
||||
'text' => $dkimText,
|
||||
];
|
||||
}
|
||||
|
||||
|
@ -25,6 +29,7 @@ class DkimDomainSetup
|
|||
|
||||
$dkimPrivateKey = file_get_contents($dkimPrivateKeyFile);
|
||||
$dkimText = file_get_contents($dkimTextFile);
|
||||
$dkimText = str_replace("\r\n", "\n", $dkimText);
|
||||
|
||||
return [
|
||||
'privateKey' => $dkimPrivateKey,
|
||||
|
|
|
@ -39,15 +39,15 @@
|
|||
@endif
|
||||
|
||||
<div>
|
||||
You do not have a DMARC record, please add a TXT record to your domain _dmarc.{{$mainDomain}} with the following value:
|
||||
Please add DMARC TXT record to your domain _dmarc.{{$mainDomain}} with the following value:
|
||||
<br />
|
||||
v=DMARC1; p=none
|
||||
</div>
|
||||
|
||||
<div>
|
||||
You do not have a SPF record, please add the following one to your domain {{$mainDomain}}:
|
||||
Please add SPF record to your domain {{$mainDomain}}:
|
||||
<br />
|
||||
v=spf1 a mx ip4:91.107.217.103 ~all
|
||||
v=spf1 a mx ip4:{{$serverIp}} ~all
|
||||
</div>
|
||||
|
||||
<x-filament::button wire:click="verify">
|
||||
|
|
Loading…
Reference in a new issue