Book a free 30 minute consultation

DKIM and DMARC demystified

Email is the cornerstone of communication, however, its ubiquity also makes it a prime target for malicious actors. Email spoofing, phishing, and other forms of email-based attacks can damage your brand’s reputation, compromise sensitive information, and erode customer trust.

That’s where DKIM (DomainKeys Identified Mail) and DMARC (Domain-based Message Authentication, Reporting & Conformance) come in. These are essential email authentication methods that work together to enhance email security and protect both senders and recipients. Let’s delve deeper into each:

DKIM (DomainKeys Identified Mail): Your email’s digital signature

Imagine sending a physical letter. Historically, a wax seal bearing your family crest was a way to prove the letter’s authenticity and ensure it hadn’t been tampered with during transit. DKIM serves a similar purpose in the digital world.

DKIM provides a mechanism to verify that an email truly originated from the domain it claims to be from and that its contents haven’t been altered. It achieves this through cryptography:

The Private Key: When you send an email, your mail server uses a private key (a secret code known only to your server) to create a digital signature. This signature is added to the email’s header, an invisible section containing information about the message.

The Public Key: A corresponding public key is published in your domain’s DNS (Domain Name System) records. DNS is essentially the internet’s phonebook, translating domain names into IP addresses.

Verification: When the recipient’s mail server receives the email, it retrieves the public key from your domain’s DNS records and uses it to verify the digital signature.
If the signature is valid, it confirms two crucial things:

Domain Authentication: The email genuinely originated from the claimed domain. This helps prevent attackers from spoofing your domain to send phishing emails.

Integrity Assurance: The email’s content hasn’t been modified during transit. If someone were to intercept and alter the message, the digital signature would no longer match, revealing the tampering.

In essence, DKIM acts as a digital stamp of authenticity, assuring receiving mail servers that the email is legitimate and hasn’t been compromised.

DMARC (Domain-based Message Authentication, Reporting & Conformance): Defining your email security policy

While DKIM provides authentication, DMARC allows domain owners to define how receiving mail servers should handle emails that fail authentication checks (including DKIM and SPF, Sender Policy Framework, another important email authentication method). Think of DMARC as setting the rules of engagement for your email.

DMARC empowers you to:

Specify Actions for Failed Authentication: You can instruct receiving mail servers to take specific actions when an email fails DKIM or SPF authentication. Your options typically include:

None: The email is delivered to the recipient’s inbox, but the authentication failure may be noted.

Quarantine: The email is typically moved to the recipient’s spam or junk folder.

Reject: The email is blocked, and the receiving mail server may send a bounce message to the sender.

This level of control is crucial for protecting your domain’s reputation. By instructing receiving servers to quarantine or reject suspicious emails, you minimise the risk of your domain being used for malicious purposes.

Receive Reports: DMARC also provides a feedback loop. You can specify an email address where receiving mail servers send reports about email authentication results. These reports provide valuable insights into:

Authentication Success Rates: How often your legitimate emails are passing authentication checks.

Authentication Failures: Instances where emails claiming to be from your domain are failing authentication, which could indicate spoofing attempts.

Analysing these reports allows you to monitor your email security posture, identify potential issues, and make necessary adjustments to your configuration.

Why DKIM and DMARC are essential

Implementing DKIM and DMARC is no longer a “nice-to-have” but a necessity for any organisation that relies on email communication. Here’s why:

Protecting Your Brand Reputation: Email spoofing can severely damage your brand’s reputation. Customers are less likely to trust emails from your organization if they’ve received phishing emails that appear to be from you. DKIM and DMARC help prevent attackers from using your domain to send fraudulent emails.

Enhancing Email Deliverability: Many email providers use authentication checks like DKIM and DMARC as factors in determining email deliverability. Emails that fail authentication are more likely to be flagged as spam or rejected altogether, reducing the chances of your legitimate messages reaching their intended recipients.

Preventing Phishing Attacks: Phishing attacks often rely on email spoofing to trick recipients into divulging sensitive information. DKIM and DMARC make it significantly harder for attackers to impersonate your domain, helping to protect your customers and employees from falling victim to phishing scams.

Improving Email Security Posture: DKIM and DMARC provide a robust layer of defence against email-based threats. By implementing these technologies, you demonstrate a commitment to email security and take proactive steps to protect your organization and its stakeholders.

In summary, DKIM provides the authentication mechanism, while DMARC empowers you to define your email security policy and monitor its effectiveness. Together, they form a powerful combination that significantly enhances email security, protects your brand, and helps ensure that your legitimate emails reach their intended recipients.

While implementing DKIM, SPF, and DMARC is crucial, managing these protocols effectively can be complex and time-consuming. That’s where a specialised DMARC management solution like Sendmarc can make a significant difference. Sendmarc simplifies the entire process by automating configuration, providing clear and actionable reports, and offering expert support. Instead of manually parsing complex XML reports and struggling with DNS configurations, Sendmarc provides a user-friendly dashboard that gives you instant visibility into your email authentication status. This allows you to quickly identify and address potential issues, ensuring your email security posture remains strong and your brand reputation is protected without the headache of manual management.

If you want to test whether you have DKIM and DMARC correctly setup, please try our Cygnus Score tool. 

Kevin Walker, Founder of Black Swan Cyber Security Solutions

Written by: Kevin Walker

Founder, Black Swan Cyber Security Solutions

Based in Chesterfield, Kevin has over 20 years’ experience helping schools, care providers and small businesses meet DfE and Cyber Essentials standards. He’s passionate about calm, compliance-led cyber security and supporting local communities across Derbyshire and South Yorkshire.

View LinkedIn Profile ↗

Recent Posts

Stay Ahead of Cyber Threats - Subscribe to the Black Swan Cyber Security Newsletter

Protect your business with the latest cyber threat insights and practical data protection tips. Subscribe for expert advice tailored to small businesses, covering password security, ransomware prevention, and cyber compliance.

Stay connected with Black Swan Cyber Security Solutions and keep your company ahead in the fight against cybercrime.