CSchantz Wiki

Email related information

Email Stuff

SPF records

Create a TXT record in DNS

Example: 

v=spf1 +a +mx +ip4:123.123.123.123 -all

SPF Info

v=spf1

This means SPF version 1

a

All IPs defined by the A records for the domain are allowed.

mx

This means that all servers defined by the MX records for the domain are allowed to send emails on the domain’s behalf.

ip4:123.123.123.123

The IP address(es) listed are allowed to send emails. In this case, a single IP (123.123.123.123) is in the list.

-all

The ‘_all_‘ setting traditionally goes at the end and handles anything that did not match the rest of the settings in the record. In this case, the ‘-all’ mechanism indicates to reject anything that makes it that far.

Prefix info

+

Pass

 Any host listed in the mechanism with this prefix is allowed.

-

Fail

 Hosts listed with a mechanism using this prefix will not be allowed.

~

soft fail

 Although listed as not allowed, hosts listed under mechanisms with this prefix will be allowed, but marked.

?

Nuetral

 Hosts listed using this prefix will be allowed. There is nothing specific said either way about it. This has the same effect as having no prefix before the mechanism

dmarc records

Create a TXT record in the domain.

Name= _dmarc

TTL=3600

Type = TXT

Record=

In this field you must choose how you want recipient servers to handle email from your domain that fails SPF/DKIM validation. Options are outlined below in red:
None: v=DMARC1; p=none; sp=none; rf=afrf; pct=100; ri=86400
Reject: v=DMARC1; p=reject; sp=none; rf=afrf; pct=100; ri=86400
Quarantine: v=DMARC1; p=quarantine; sp=none; rf=afrf; pct=100; ri=86400

Alternately, you can request an email report of failed DMARC validations by adding a valid email address, such as the following:

None: v=DMARC1; p=none; sp=none; ruf=mailto:user@example.com; rf=afrf; pct=100; ri=86400
Reject: v=DMARC1; p=reject; sp=none; rf=afrf; pct=100; ruf=mailto:user@example.com; ri=86400
Quarantine: v=DMARC1; p=quarantine; sp=none; ruf=mailto:user@example.com; rf=afrf; pct=100; ri=86400