|
|
@@ -2,6 +2,7 @@
|
|
|
|
|
|
namespace ThurData\Servers\KerioEmail\Core\Helper;
|
|
|
use ThurData\Servers\KerioEmail\Core\Models\Whmcs\Server;
|
|
|
+use ThurData\Servers\KerioEmail\App\Libs\Product\ProductManager;
|
|
|
use ThurData\Servers\KerioEmail\Core\Helper\ConfigOptionsHelper;
|
|
|
|
|
|
require_once '/usr/share/php/Net/DNS2.php';
|
|
|
@@ -28,14 +29,16 @@ class DnsHelper
|
|
|
$server = Server::select('id', 'nameserver1ip', 'nameserver2ip')->findOrFail($params['serverid']);
|
|
|
$nameserver = array(trim($server->nameserver1ip), trim($server->nameserver2ip));
|
|
|
$clientDomains = localAPI('GetClientsDomains', array('clientid' => $params['userid']));
|
|
|
- $configOption = new ConfigOptionsHelper;
|
|
|
+ $productManager = new ProductManager();
|
|
|
+ $spf = $productManager->get('spf_string');
|
|
|
+ $dmarc = $productManager->get('dmarc_string');
|
|
|
|
|
|
logModuleCall(
|
|
|
'kerioEmail',
|
|
|
__FUNCTION__,
|
|
|
- $configOption,
|
|
|
+ $spf,
|
|
|
'Debug',
|
|
|
- $clientDomains
|
|
|
+ $dmarc
|
|
|
);
|
|
|
|
|
|
if($clientDomains['totalresults'] == 0){
|