diff --git a/assets/styles/main.css b/assets/styles/main.css index a881e6c..69ab909 100644 --- a/assets/styles/main.css +++ b/assets/styles/main.css @@ -75,6 +75,20 @@ a { color: #039BE5; } +code { + font-family: "JetBrains Mono", monospace; + background-color: #EEE; + border-radius: 3px; + padding: 0 0.25rem; +} + +blockquote { + color: #757575; + padding-left: 1rem; + margin-left: 1rem; + border-left: 2px solid #EEE; +} + hr { border: none; border-bottom: 1px solid #BDBDBD; diff --git a/spf-creator/index.html b/spf-creator/index.html index 8107615..070d360 100644 --- a/spf-creator/index.html +++ b/spf-creator/index.html @@ -45,9 +45,7 @@

For advanced usage, domain fields may contain macros. These start with a percentage sign and will expand to a dynamic value. For example, %{d} expands to the current domain and %{i} to the - current IP address. See - the SPF specification - for a list of macros you can use. + current IP address. See the Macro Guide for a list of all macros.

diff --git a/spf-macro-guide/index.html b/spf-macro-guide/index.html new file mode 100644 index 0000000..3c2248d --- /dev/null +++ b/spf-macro-guide/index.html @@ -0,0 +1,152 @@ + + + + + SPF Macro Guide - Explanation of all SPF macros with examples + + + + +

SPF Macro Guide

+ +
+

Overview of SPF macros

+ +

+ Using SPF, you can specify which IP addresses are authorized to send emails from a mail server. + Many of the directives you can use allow you to specify a domain name, but here SPF comes with an + extra feature: Macros. +

+ +

+ Macros allow you to insert dynamic values into the values of SPF directives, which can be used for + e.g. per-user authentication and more. This guide will go through all macros, along with some examples. +

+ +

+ The mechanisms and modifiers that allow macros are: include, a, mx, ptr, + exists, redirect and exp. +

+ +

List of macros

+ + + +

Transformers

+ +

SPF macros can be transformed in a few different ways, by adding another character after the macro letter.

+ + + +

Explanations

+ +

+ SPF allows you to set custom error messages in case of failed validations using the exp modifier. + The message is retrieved from the TXT records of the domain name defined by the modifier. + This error message also supports macros, and has extended support for a few more than the ones above: +

+ + + +
+

SPF tools:

+ SPF Validator Tool • + SPF Creator Tool +
+
+ + diff --git a/spf-validator/index.html b/spf-validator/index.html index 9342db9..893e360 100644 --- a/spf-validator/index.html +++ b/spf-validator/index.html @@ -64,7 +64,7 @@

More tools:

- DMARC Validator Tool + SPF Creator Tool