DomainKeys Identified Mail (DKIM) is an email authentication method designed to detect and prevent email spoofing. It allows the sender to attach a digital signature to the email header, which is then verified by the recipient's mail server to ensure the email has not been altered in transit and that it was indeed sent from the claimed domain.
How It Works:
- Digital Signature: When an email is sent, the sender’s mail server generates a unique cryptographic signature based on the email's content and headers.
- Public Key Publishing: The sender’s domain publishes a public key in the DNS (Domain Name System) records.
- Verification: The recipient’s mail server retrieves the public key from the DNS and uses it to verify the signature. If the signature matches the email content, the email is authenticated.
Learn why DNS authentication is paramount when it comes to deliverability and security and how to handle email authentication with OneSignal.