Can DMARC editing just like SPF

Discussion in 'General' started by hkendusers, Sep 13, 2022.

  1. hkendusers

    hkendusers New Member

    Hi,
    I have some questions on DNS Zone modification.

    When a "client" update their SPF record by clicking the record (not SPF button), it shows "DNS SPF" editing page.
    However if a "client" update their 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 client's confusion.

    I tried to update /usr/local/ispconfig/interface/web/dns/dns_txt_edit.php and it seems working

    Update from:
    PHP:
            if ('GET' === $_SERVER['REQUEST_METHOD'] && !empty($this->dataRecord['data'])) {
                if (
    'v=spf1' === mb_substr($this->dataRecord['data'], 06)) {
                    
    header(sprintf('Location: dns_spf_edit.php?id=%d'$this->dataRecord['id']));
                    exit;
                }
            }
    Update to:
    PHP:
            if ('GET' === $_SERVER['REQUEST_METHOD'] && !empty($this->dataRecord['data'])) {
                if (
    'v=spf1' === mb_substr($this->dataRecord['data'], 06)) {
                    
    header(sprintf('Location: dns_spf_edit.php?id=%d'$this->dataRecord['id']));
                    exit;
                }else if (
    'v=DMARC1' === mb_substr($this->dataRecord['data'], 08)) {
                    
    header(sprintf('Location: dns_dmarc_edit.php?id=%d'$this->dataRecord['id']));
                    exit;
                }
            }
     
    Last edited: Sep 13, 2022
    ahrasis likes this.
  2. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    ahrasis likes this.

Share This Page