SPF authorizes sending servers
An SPF record is a TXT record that lists the hosts allowed to send mail for a domain. The receiving server compares the connecting IP with that list and returns pass, fail, softfail or neutral.
SPF allows ten DNS lookups. Records that chain through include, a and mx mechanisms can exceed the limit, which produces a permerror. Flattening or trimming the record is the usual fix.
DKIM signs the message
DKIM adds a cryptographic signature to a message. The public key is published at a selector-specific name such as selector._domainkey.example.com, and the receiver verifies that the signed parts were not changed in transit.
A missing or rotated key breaks the signature even when SPF passes. Check the selector your mail provider actually uses; a list of common selectors is only a starting point.
DMARC ties it to the From domain
DMARC tells receivers what to do when SPF and DKIM do not align with the visible From domain: none, quarantine or reject. It also sends aggregate reports about who is sending as the domain.
Start with p=none and a reporting address, read the reports, fix legitimate senders, then move to quarantine and reject. Jumping straight to reject can block invoices and password resets. MTA-STS adds a policy that requires TLS for inbound mail.
