Place 'p' tag after 'v' according to RFC 7489.

This commit is contained in:
Zhang Huangbin 2020-12-28 12:26:50 +08:00
parent 85b47b5a39
commit 5d211db1e5
2 changed files with 18 additions and 8 deletions

View File

@ -311,7 +311,7 @@ v=DMARC1; p=none; rua=mailto:dmarc@mydomain.com
A detailed sample record looks like this: A detailed sample record looks like this:
``` ```
v=DMARC1; adkim=s; aspf=s; p=reject; sp=none; rua=mailto:dmarc@mydomain.com; ruf=mailto:dmarc@mydomain.com v=DMARC1; p=reject; sp=none; adkim=s; aspf=s; rua=mailto:dmarc@mydomain.com; ruf=mailto:dmarc@mydomain.com
``` ```
* `v=DMARC1` identifies the DMARC protocol version, currently only `DMARC1` is * `v=DMARC1` identifies the DMARC protocol version, currently only `DMARC1` is
@ -337,9 +337,13 @@ v=DMARC1; adkim=s; aspf=s; p=reject; sp=none; rua=mailto:dmarc@mydomain.com; ruf
!!! attention !!! attention
If you're sure all your emails are sent by the server(s) listed in SPF - If you're sure all your emails are sent by the server(s) listed in SPF
record, or have correct DKIM signature signed, `p=reject` is strongly record, or have correct DKIM signature signed, `p=reject` is strongly
recommended. recommended.
- According to [RFC 7489](https://tools.ietf.org/html/rfc7489#section-6.3),
__the "v" and "p" tags MUST be present and MUST appear in that order.__
so please always place "p" tag immediately follow the "v" tag. e.g.
`v=DMARC1; p=reject; aspf=s; ...` is ok, but not `v=DMARC1; aspf=s; p=reject; ...`.
* `sp` specifies policy for all subdomains. This is optional. Available options * `sp` specifies policy for all subdomains. This is optional. Available options
are same as `p`. are same as `p`.

View File

@ -317,7 +317,7 @@ correct and up to date SPF and DKIM records published.</p>
</code></pre> </code></pre>
<p>A detailed sample record looks like this:</p> <p>A detailed sample record looks like this:</p>
<pre><code>v=DMARC1; adkim=s; aspf=s; p=reject; sp=none; rua=mailto:dmarc@mydomain.com; ruf=mailto:dmarc@mydomain.com <pre><code>v=DMARC1; p=reject; sp=none; adkim=s; aspf=s; rua=mailto:dmarc@mydomain.com; ruf=mailto:dmarc@mydomain.com
</code></pre> </code></pre>
<ul> <ul>
@ -349,9 +349,15 @@ correct and up to date SPF and DKIM records published.</p>
</ul> </ul>
<div class="admonition attention"> <div class="admonition attention">
<p class="admonition-title">Attention</p> <p class="admonition-title">Attention</p>
<p>If you're sure all your emails are sent by the server(s) listed in SPF <ul>
record, or have correct DKIM signature signed, <code>p=reject</code> is strongly <li>If you're sure all your emails are sent by the server(s) listed in SPF
recommended.</p> record, or have correct DKIM signature signed, <code>p=reject</code> is strongly
recommended.</li>
<li>According to <a href="https://tools.ietf.org/html/rfc7489#section-6.3">RFC 7489</a>,
<strong>the "v" and "p" tags MUST be present and MUST appear in that order.</strong>
so please always place "p" tag immediately follow the "v" tag. e.g.
<code>v=DMARC1; p=reject; aspf=s; ...</code> is ok, but not <code>v=DMARC1; aspf=s; p=reject; ...</code>.</li>
</ul>
</div> </div>
</li> </li>
<li> <li>