Types of Anti-Spam Filters – DKIM
On this page
DKIM (DomainKeys Identified Mail) is an email authentication method that helps verify that an email message was actually sent by the domain it claims to originate from and that its content was not modified during transmission.
DKIM protects against email spoofing by allowing domain owners to digitally sign outgoing messages using cryptographic keys.
How Does DKIM Work?
When an email is sent, the sending mail server generates a digital signature and inserts it into the email header as a special field called:
DKIM-Signature
The recipient’s mail server then retrieves the corresponding public key from the sender’s DNS zone and uses it to verify the signature.
If the signature is valid:
- The message is confirmed to originate from the authorized domain.
- The message content is verified as unchanged during transit.
If verification fails:
- The message may be marked as suspicious.
- The message may be delivered to the Spam folder.
- The message may be rejected, depending on the recipient’s mail server configuration.
DKIM Verification Process
- The sender’s mail server signs the message.
- A DKIM signature is added to the email header.
- The recipient’s mail server receives the message.
- The recipient retrieves the public key from the sender’s DNS zone.
- The signature is verified.
- The message is accepted or flagged based on the verification result.
Example DKIM Signature
A DKIM signature may look similar to the following:
DKIM-Signature: v=1; a=rsa-sha256; d=example.net; s=brisbane;
c=relaxed/simple; q=dns/txt; l=1234; t=1117574938; x=1118006938;
h=from:to:subject:date:keywords:keywords;
bh=MTIzNDU2Nzg5MDEyMzQ1Njc4OTAxMjM0NTY3ODkwMTI=;
b=dzdVyOfAKCdLXdJOc9G2q8LoXSlEniSbav+yuU4zGeeruD00lszZVoG4ZHRNiYzR
The exact value will vary for every domain and message.
Cryptographic Methods Used
DKIM commonly uses:
- SHA-256 cryptographic hashing
- RSA public-key cryptography
These mechanisms ensure that the signature cannot be forged without access to the domain’s private key.
Advantages of DKIM
- Protects against email spoofing.
- Verifies sender authenticity.
- Confirms that message content has not been modified.
- Improves email deliverability.
- Increases trust in messages sent from your domain.
- Works together with SPF and DMARC for enhanced email security.
DKIM DNS Records
For DKIM verification to work correctly, the domain must publish a special TXT record in its DNS zone containing the public key.
When adding a DKIM record in the DNS zone, make sure to enter the full host name.
Example:
dhosting._domainkey.yourdomain.com
The record value should contain the DKIM public key generated for your domain.
DKIM and Other Anti-Spam Technologies
DKIM is most effective when combined with other email authentication mechanisms such as:
- SPF (Sender Policy Framework)
- DMARC (Domain-based Message Authentication, Reporting and Conformance)
- RBL (Realtime Blackhole Lists)
- Content-based spam filters
Together, these technologies significantly reduce the risk of spoofed emails and improve overall email security.
Summary
DKIM (DomainKeys Identified Mail) is an email authentication technology that digitally signs outgoing messages and allows receiving mail servers to verify their authenticity.
By using cryptographic signatures and DNS-based public keys, DKIM helps protect domains from spoofing, ensures message integrity, and improves email deliverability. Properly configured DKIM records are an important part of modern email security and anti-spam protection.
Didn't find an answer?
Our support team is here for you 24/7 – write to us and we will help you sort it out.