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-04-20, 10:20:04

Author Topic: DMARC txt records does not work properly ?  (Read 15673 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 #15 on: 2015-04-24, 12:11:57 »
I will try to emulate your setting.

Yes. Just add TXT record to the template with __base__ at the beginning:

Code: [Select]
v=DMARC1; p=none; ruf=mailto:d@ruf.agari.com; rua=mailto:d@rua.agari.com; fo=1
Rebuild the DNS for domain.

Then remove the entry in DNS template and add correct TXT record with _dmarc:

Code: [Select]
v=DMARC1; p=none; ruf=mailto:d@ruf.agari.com; rua=mailto:d@rua.agari.com; fo=1
Then rebuild again.

You will have two records then:

one with __base__ and one with _dmarc which is incorrect.

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 #16 on: 2015-04-24, 12:24:49 »
I am not sure but possible in dns table of kloxo database, 'dmac' and '_dmarc' save in the same variable (where variable is 'dmarc'). And it's make Kloxo-MR panel confuse with this situation.

By default, Kloxo not accept variable like '_dmarc' (include '_' in front). In Kloxo-MR, '_dmarc' still accept but need to convert '_dmarc' to 'dmarc' and then save as 'hostname'.
..:: 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 #17 on: 2015-04-24, 14:07:11 »
I am not sure but possible in dns table of kloxo database, 'dmac' and '_dmarc' save in the same variable (where variable is 'dmarc'). And it's make Kloxo-MR panel confuse with this situation.

By default, Kloxo not accept variable like '_dmarc' (include '_' in front). In Kloxo-MR, '_dmarc' still accept but need to convert '_dmarc' to 'dmarc' and then save as 'hostname'.

Latest update to kloxo/httpdocs/driver/dns/dnsbaselib.php does not fix it.

Just add simple entry where reloading DNS template removes all old TXT records with __base__

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: DMARC txt records does not work properly ?
« Reply #18 on: 2015-04-24, 15:00:37 »
Maybe first remove all DNS records before reloading the domain:

sh /script/update --class=dns --name=$DOMAIN --subaction=general --action=delete

It kills domainkeys too ;(

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: DMARC txt records does not work properly ?
« Reply #19 on: 2015-04-24, 20:38:46 »
How to add action delete to this:

Quote
https://domain.com:7777/display.php?frm_action=updateform&frm_subaction=edit&frm_o_o[0][class]=client&frm_o_o[0][nname]=agona2&frm_o_o[1][class]=domain&frm_o_o[1][nname]=3dgsm.pl&frm_o_o[2][class]=dns&frm_o_o[3][class]=dns_record_a&frm_o_o[3][nname]=txt_base

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: DMARC txt records does not work properly ?
« Reply #20 on: 2015-04-24, 23:33:17 »
Any ideas ?

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 #21 on: 2015-04-25, 07:14:13 »
I don't testing this codes but you can try in your testing server.

Try to copy fixdnsremoverecord to /usr/local/lxlabs/kloxo/pscript and fixdnsremoverecord.php to /usr/local/lxlabs/kloxo/bin/misc
..:: 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 #22 on: 2015-04-25, 11:40:17 »
Something is wrong:

Quote
sh /script/fixdnsremoverecord --ttype=TXT --hostname=localhost
/script/fixdnsremoverecord: line 29: [: missing `]'
Remove DNS record for 'localhost' hostname in 'TXT' ttype
- For 'test.xxx.pl' ('admin') at 'localhost'
« Last Edit: 2015-04-25, 11:49:52 by Spacedust »

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 #23 on: 2015-04-25, 12:00:44 »
Wait for next update (also introduce for thehostingtool).
..:: 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 #24 on: 2015-04-25, 12:05:26 »
Wait for next update (also introduce for thehostingtool).

OK. So far tested again on 7.0.0.b-2015042502

No errors, but no action were made:

Quote
sh /script/fixdnsremoverecord --ttype=TXT --hostname=localhost
Remove DNS record for 'localhost' hostname in 'TXT' ttype
- For 'test.xxx.pl' ('admin') at 'localhost'
« Last Edit: 2015-04-25, 12:20:57 by Spacedust »

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: DMARC txt records does not work properly ?
« Reply #25 on: 2015-04-26, 14:30:05 »
Does it work now ?

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 #26 on: 2015-04-26, 14:32:49 »
I am not testing fixdnsremoverecord intensively.
..:: 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 #27 on: 2015-04-26, 20:11:27 »
I am not testing fixdnsremoverecord intensively.

It doesn't work at all. Please test it. I really need to have it working.

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 #28 on: 2015-04-26, 20:54:54 »
Replace content of fixdnsremoverecord.php with:
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['ttype'])) {
$ttype $par['ttype'];
}

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

$nolog false;

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

foreach(
$list as $c) {
$dlist $c->getList('domain');

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

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

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

$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 #29 on: 2015-04-26, 21:42:11 »
Done, but nothing has changed. All TXT records are untouched.

Code: [Select]
sh /script/fixdnsremoverecord --ttype=TXT --hostname=localhost
Remove DNS record for 'localhost' hostname in 'TXT' ttype
- For 'test.xxx.pl' ('admin') at 'localhost'

 


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

Page created in 0.088 seconds with 19 queries.

web stats analysis