SPF, DKIM and DMARC: a plain-English guide for Canadian businesses
Why your invoices land in spam, what SPF, DKIM and DMARC actually do, and the step-by-step order to set them up without breaking your email.

Since 2024, Google, Yahoo and Microsoft have required organisations that send email to prove who they are. If your domain is not authenticated, your invoices, quotes and password-reset emails are increasingly filtered to spam or rejected outright. The fix is three DNS records: SPF, DKIM and DMARC. Here is what each one does and the safe order to set them up.
SPF: who is allowed to send for your domain
SPF (Sender Policy Framework) is a TXT record listing the services allowed to send email using your domain: for example Microsoft 365, your website’s SMTP provider and your newsletter tool. A receiving server checks the sending IP address against that list.
- You can only have one SPF record per domain. Merge services into a single record.
- SPF allows a maximum of 10 DNS lookups. Too many "include:" entries cause it to fail.
- End with ~all (soft fail) while testing, then -all once every sender is listed.
DKIM: a signature that proves the message wasn’t changed
DKIM (DomainKeys Identified Mail) adds a cryptographic signature to each message. The receiving server looks up your public key in DNS and checks the signature. Each sending service (Microsoft 365, Google Workspace, Amazon SES, Postmark…) gives you its own DKIM record to publish.
DMARC: the policy that ties it together
DMARC tells receivers what to do when a message fails SPF and DKIM alignment, and where to send reports. Alignment means the domain in the visible From address matches the domain authenticated by SPF or DKIM. This is what stops criminals sending fake invoices that appear to come from your company.
- Publish DMARC with p=none and a reporting address. Collect reports for 2–4 weeks.
- Use the reports to find every legitimate service sending as your domain, and fix their SPF/DKIM.
- Move to p=quarantine with a small percentage (pct=25), then 100%.
- When reports are clean, move to p=reject. Spoofed mail is now blocked.
Tip: Never jump straight to p=reject. If you have forgotten a legitimate sender, such as your accounting software sending invoices, its mail will start bouncing.
Transactional email from websites and apps
Websites and apps should not send email through the web server’s own mail function. Use an authenticated SMTP or API service such as Amazon SES (available in the Canada Central region), Postmark or SendGrid, with its own DKIM signature on your domain. You get delivery logs, bounce handling and far better inbox placement.
What about CASL?
Authentication is about technical trust. Canada’s Anti-Spam Legislation (CASL) is about consent for commercial messages: you need express or implied consent, clear identification and a working unsubscribe. Keep marketing email on a separate tool and subdomain from transactional email, so a marketing complaint never affects your invoices.
Need it done for you?
Our Business Email & SMTP Set-up configures SPF, DKIM and DMARC, connects your website or app to authenticated SMTP and migrates mailboxes, usually within a week.