DMARC
{authentication.dmarc.result}
{#if authentication.dmarc.domain}
Domain:
{authentication.dmarc.domain}
{/if}
{#snippet DMARCPolicy(policy)}
Policy:
{policy}
{/snippet}
{#if authentication.dmarc.result != "none"}
{#if authentication.dmarc.details.indexOf("policy.published-domain-policy=") > 0}
{@const policy = authentication.dmarc.details.replace(/^.*policy.published-domain-policy=([^\s]+).*$/, "$1")}
{@render DMARCPolicy(policy)}
{:else if authentication.dmarc.domain}
{@render DMARCPolicy(dnsResults.dmarc_record.policy)}
{/if}
{/if}
{#if authentication.dmarc.details}
{authentication.dmarc.details}
{/if}