Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2024-03-28, 22:40:39

Author Topic: DMARC txt records does not work properly ?  (Read 15537 times)

0 Members and 1 Guest are viewing this topic.

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: DMARC txt records does not work properly ?
« Reply #45 on: 2015-04-28, 18:53:39 »
It does not work ;(

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: DMARC txt records does not work properly ?
« Reply #46 on: 2015-04-28, 19:16:25 »
Try this:
Code: [Select]
<?php 

include_once "lib/html/include.php"

initProgram('admin');

$login->loadAllObjects('client');
$list $login->getList('client');

$par parse_opt($argv);

if (isset(
$par['type'])) {
$ttype strtolower($par['type']);
}

if (isset(
$par['key'])) {
$hostname strtolower($par['key']);
}

$client = (isset($par['client'])) ? $par['client'] : null;
$clist = array();

$nolog false;

log_cleanup("Remove DNS record for '{$hostname}' key in '{$ttype}' type"$nolog);

foreach(
$list as $c) {
if ($client) {
$ca explode(","$client);

if (!in_array($c->nname$ca)) { continue; }
}

$dlist $c->getList('domain');

foreach($dlist as $l) {
$dns $l->getObject('dns');
$dns->setUpdateSubaction('full_update');

print("- For '{$dns->nname}' domain ('{$c->nname}' client) at '{$c->syncserver}' server\n");

$removed false;

foreach($dns->dns_record_a as $drec) {
if (($drec->ttype === $ttype) && ($drec->hostname === $hostname)) {
print("-- remove '{$drec->hostname}' key in '{$drec->ttype}' type\n");
$removed true;
} else {
$x[] = $drec;
}
}

if ($removed === false) {
print("-- NO exists of '{$hostname}' key in '{$ttype}' type\n");
}

$dns->dns_record_a $x;

$dns->was();
}
}

..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: DMARC txt records does not work properly ?
« Reply #47 on: 2015-04-28, 19:19:46 »
Ok. First I need to investigate why Kloxo is such slow and it wasn't before.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: DMARC txt records does not work properly ?
« Reply #48 on: 2015-04-28, 19:37:25 »
Try restart mysql and kloxo itself.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

 


MRatWork Affiliates:    BIGRAF(R) Inc.    House of LMAR    EFARgrafix
Click Here

Page created in 0.031 seconds with 21 queries.

web stats analysis