DMARC update just like SPF
Summary
When I update SPF record by clicking the record (not SPF button), it shows "DNS SPF" editing page.
However if I update DMARC record by clicking the record (not DMARC button), it shows "DNS TXT" editing page but not showing "DNS DMARC" editing page, and it even shows error "DMARC is not allowed. Use the DMARC button" if save it.
Is it OK that DMARC editing just like SPF? Means clicking the record then show "DNS DMARC" editing page directly, it will prevent user's confusion.'
Environment
Server OS + version: CentOS Stream release 8
ISPConfig version: 3.2.8p1
Proposed fix
Open /usr/local/ispconfig/interface/web/dns/dns_txt_edit.php
if ('v=spf1' === mb_substr($this->dataRecord['data'], 0, 6)) { header(sprintf('Location: dns_spf_edit.php?id=%d', $this->dataRecord['id'])); exit; }
Update to
if ('v=spf1' === mb_substr($this->dataRecord['data'], 0, 6)) { header(sprintf('Location: dns_spf_edit.php?id=%d', $this->dataRecord['id'])); exit; } else if ("v=DMARC1"== mb_substr($this->dataRecord["data"], 0, 8)) { header(sprintf("Location: dns_dmarc_edit.php?id=%d", $this->dataRecord["id"])); exit; }