SPF Dkim Dmarc Quick Deployment
SPF Dkim Dmarc Quick Deployment
SPF Record: Sender Policy Framework (SPF) is an email validation record designed to
detect email spoofing. It provides a mechanism to allow receiving mail servers to check that
incoming mail from a domain comes from an authorized sender host. This can be customized
for your environments needs. (SPF check = Pass or Fail in message header | DNS record can
have ~ Softfail or Hardfail)
Sample elegantleaf.com SPF Record:
Notes: Caution SPF Record is important to mail flow before changing the SPF record in DNS
be sure to understand the implications as this impacts spoof emails, relayed emails, and
Spam Confidence level (SCL) classification upon email delivery.
Links: https://technet.microsoft.com/en-us/library/dn789058(v=exchg.150).aspx |
http://www.openspf.org
DKIM Record: Domain Keys Identified Mail (DKIM) is designed to detect spoofing by
providing a mechanism to provide a digital signature included on email being sent outbound.
Upon email being received the digital signature is matched against a public key for the email
domain (in this case hosted by Office 365), this allows authorization through cryptographic
means (Signature and Public Key exchange = Pass or Fail in message header)
Sample Elegantleaf.com DKIM Record:
Type = CNAME
Name = selector1._domainkey
Link = selector1-elegantleaf-com._domainkey.nateswiftlive.onmicrosoft.com
Type = CNAME
Name = selector2._domainkey
Link = selector2-elegantleaf-com._domainkey.nateswiftlive.onmicrosoft.com
Testing: http://mxtoolbox.com/dkim.aspx
Notes: Need to have SPF set correctly and DKIM set and enabled in office 365 before
DMARC works. Best strategy is to set p=none, after reporting and tweaking of SPF record,
then set p=quarantine and set pct=20 then pct=40, and so on adjusting the percentage of
emails scanned and adjusting the SPF accordingly to include mail relays or mail senders on
your behalf until 100 percentage scanned emails. Then set the p=reject once comfortable.
Links: https://dmarc.org/ | http://blogs.msdn.com/b/tzink/archive/2014/12/03/using-dmarcin-office-365.aspx | http://www.msexchange.org/articles-tutorials/office-365/exchangeonline/dkim-and-dmarc-office-365-part2.html
Next Steps:
1.
2.
3.
4.