-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Add DMARC record explainer (Fixes #40) * Fixed wording of a description and ordering * Add SP * Change descriptions * Forgot sp * Add DMARC modal * Add further information to learning modal * Resolve outstanding lint issue * Add dmarc desciptions/edited some others * Use <code> for DMARC tag description values
- Loading branch information
Showing
10 changed files
with
162 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/* | ||
Copyright 2019 DigitalOcean | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
*/ | ||
|
||
import i18n from "../i18n" | ||
|
||
export default { | ||
v: i18n.data.dmarc.v, | ||
ruf: i18n.data.dmarc.ruf, | ||
rua: i18n.data.dmarc.rua, | ||
pct: i18n.data.dmarc.pct, | ||
p: i18n.data.dmarc.p, | ||
aspf: i18n.data.dmarc.aspf, | ||
adkim: i18n.data.dmarc.adkim, | ||
sp: i18n.data.dmarc.sp, | ||
fo: i18n.data.dmarc.fo, | ||
rf: i18n.data.dmarc.rf, | ||
ri: i18n.data.dmarc.ri, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
export default { | ||
v: `This dictates the DMARC protocol version that is being used. This is normally located at the start of a record and set to <code class="slim">DMARC1</code>.`, | ||
ruf: "This is a comma separated list of e-mails where forensic reports should be sent.", | ||
rua: "This is a comma separated list of e-mails where aggregate reports should be sent.", | ||
pct: "This defines the percentage of e-mail which will have this policy applied.", | ||
p: `This defines how domain administrators want e-mail treated on the primary domain that fail the DMARC validation checks. The options are <code class="slim">none</code> (treat the same as usual), <code class="slim">quarantine</code> (mark as spam) or <code class="slim">reject</code> (reject the message).`, | ||
aspf: `If this is set to strict <code class="slim">s</code> mode the domain which e-mails are being sent from must exactly pass SPF record validation. If not, it will default to relaxed <code class="slim">r</code> mode where any sub-domain can inherit the root domain's SPF records.`, | ||
adkim: `By default this is set to relaxed <code class="slim">r</code> mode where any sub-domain can inherit the root domain's DKIM records. If this is set to strict <code class="slim">s</code> mode, the domain which e-mails are being sent from must exactly pass DKIM record validation.`, | ||
sp: `This defines how domain administrators want e-mail treated on sub-domains that fail the DMARC validation checks. The options are <code class="slim">none</code> (treat the same as usual), <code class="slim">quarantine</code> (mark as spam) or <code class="slim">reject</code> (reject the message).`, | ||
fo: `This option allows you to configure when failure reports should be sent. The available options are <code class="slim">0</code> which is the default and specifies that a report should be sent if an email fails SPF and DKIM checks, <code class="slim">1</code> to send a report if SPF or DKIM checks fail, <code class="slim">d</code> to send a report for only DKIM failures and <code class="slim">s</code> to send a report for only SPF failures.`, | ||
rf: `This is the format reports are sent in. It currently only has one supported value, <code class="slim">afrf</code>, which is the default.`, | ||
ri: `The requested interval between DMARC reports being sent in seconds. This defaults to <code class="slim">86400</code>.`, | ||
} as {[key: string]: string} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
import txt from "./txt" | ||
import dmarc from "./dmarc" | ||
import records from "./records" | ||
import recordKeyHelp from "./record_key_help" | ||
|
||
export default { | ||
txt, records, recordKeyHelp, | ||
txt, records, recordKeyHelp, dmarc, | ||
} as {[key: string]: {[key: string]: string}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
export default { | ||
title: "DMARC Explanations", | ||
intro: `<p>A DMARC record is a normal TXT DNS records that is created at <code class="slim">_dmarc.hostname.</code> instead of just the root hostname. | ||
This record can contain any of the following "tags" formatted as <code class="slim">tag=value</code> and separated by semi-colons.</p> | ||
<p>An example of a DMARC TXT record would be: <pre><code>_dmarc.hostname. 300 IN TXT "v=DMARC1;p=reject;pct=100;rua=mailto:postmaster@hostname"</code></pre></p>`, | ||
learnMore: "Learn more about DMARC at", | ||
} as {[key: string]: string} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
<!-- | ||
Copyright 2019 DigitalOcean | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
--> | ||
|
||
<template> | ||
<div :class="`modal ${toggled ? 'is-active' : ''}`"> | ||
<div class="modal-background"></div> | ||
<div class="modal-card"> | ||
<header class="modal-card-head"> | ||
<p class="modal-card-title"> | ||
{{ i18n.templates.dmarcExplainer.title }} | ||
</p> | ||
<button class="delete" :aria-label="i18n.common.close" @click="toggle"></button> | ||
</header> | ||
<section class="modal-card-body"> | ||
<div v-html="i18n.templates.dmarcExplainer.intro"></div> | ||
<hr> | ||
<p v-for="(value, key) in dmarc" :key="key"> | ||
<b>{{ key }}</b>: <span v-html="value"></span> | ||
</p> | ||
<hr> | ||
<p> | ||
{{ i18n.templates.dmarcExplainer.learnMore }} | ||
<ExternalLink link="https://dmarc.org/" text="dmarc.org"></ExternalLink>. | ||
</p> | ||
</section> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
import i18n from "../i18n" | ||
import dmarc from "../data/dmarc" | ||
import ExternalLink from "./ext_link" | ||
export default { | ||
name: "DMARCExplainerModal", | ||
components: { ExternalLink }, | ||
data() { | ||
return { | ||
toggled: false, | ||
i18n, | ||
dmarc, | ||
} | ||
}, | ||
methods: { | ||
toggle() { | ||
this.$data.toggled = !this.$data.toggled | ||
}, | ||
}, | ||
} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters