Email remains one of the most important communication channels for businesses. From client correspondence and invoices to internal discussions and important business documents, organizations depend on email every day.
However, email also creates security risks. Cybercriminals can impersonate a company’s domain, send fraudulent messages that appear to come from legitimate business addresses, and use email spoofing to trick customers, employees, and business partners.
For example, imagine receiving an email that appears to come from your company’s finance department, requesting an urgent payment to a new bank account. The sender’s address looks legitimate, but the message was actually sent by someone impersonating your organization.
This is where email authentication becomes important.
Three technologies help businesses establish trust in their email communications: SPF (Sender Policy Framework), DKIM (DomainKeys Identified Mail), and DMARC (Domain-based Message Authentication, Reporting, and Conformance).
Although each serves a different purpose, they work together to verify email sources, validate message authenticity, and help prevent unauthorized parties from using your domain.
In this guide, we explain what SPF, DKIM, and DMARC are, how they work, and how businesses can configure them through their domain’s DNS settings.
What Are SPF, DKIM, and DMARC?
SPF, DKIM, and DMARC are email authentication protocols that help receiving mail servers determine whether an email claiming to come from your domain is legitimate.
All three rely on DNS records, which allow domain owners to publish authentication instructions that other mail servers can check.
Think of them as three different security checks:
- SPF: Identifies which email servers are authorized to send messages on behalf of your domain.
- DKIM: Adds a digital signature to outgoing emails so recipients can verify that the message is authentic and has not been altered.
- DMARC: Establishes what receiving servers should do when emails fail authentication checks and provides reporting information to domain owners.
Using these protocols together makes it harder for attackers to impersonate your business domain.
1. What Is SPF (Sender Policy Framework)?
Sender Policy Framework (SPF) is an email authentication protocol that identifies which mail servers are permitted to send emails using your domain.
When you configure SPF, you publish a DNS TXT record listing the authorized email sources for your domain.
When a receiving mail server gets an email, it checks the sender’s sending infrastructure against the published SPF record.
If the sending server is authorized, the SPF check can pass. If it is not listed, the check may fail.
Example of an SPF DNS Record
Suppose your company uses Google Workspace to send business emails.
A simplified SPF record could look like this:
Type: TXT
Host: @
Value: v=spf1 include:_spf.google.com ~all
Here is what each part means:
v=spf1: Identifies the record as an SPF policy.include:_spf.google.com: Authorizes the sending infrastructure specified by Google’s SPF policy.~all: Indicates that other sources should receive a soft-fail result.
The exact SPF value depends on your email hosting provider and all the services authorized to send email using your domain.
Important SPF Configuration Rules
There are several things businesses should understand before configuring SPF:
1. Maintain only one SPF record per domain.
If your organization uses multiple email platforms, their authorized sending sources must be combined into one SPF record. Creating multiple SPF records can cause authentication failures.
2. Include every legitimate sending service.
Consider all the platforms that send emails using your domain, including:
- Business email hosting platforms
- CRM systems
- Marketing automation platforms
- Invoicing and accounting software
- Website contact forms
Missing an authorized sender can cause legitimate emails to fail SPF checks.
3. Watch the DNS lookup limit.
SPF permits a maximum of 10 DNS lookups during evaluation. Exceeding this limit can result in SPF authentication errors.
4. Choose the correct SPF policy.
The all mechanism can use different qualifiers:
~all: Soft fail for unauthorized sources.-all: Hard fail for unauthorized sources.?all: Neutral result.
The appropriate setting depends on your email environment. A stricter policy should be introduced after confirming that all legitimate sending services are included.
2. What Is DKIM (DomainKeys Identified Mail)?
DKIM stands for DomainKeys Identified Mail. It is an email authentication protocol that uses cryptographic signatures to help verify the authenticity of outgoing messages.
Unlike SPF, which checks whether a sending server is authorized, DKIM verifies a digital signature attached to an email.
When your email platform sends a message, it uses a private cryptographic key to generate a DKIM signature.
The receiving mail server retrieves the corresponding public key from your domain’s DNS records and uses it to verify the signature.
If verification succeeds, the recipient’s mail server can establish that the signed parts of the message have not been altered after signing.
Example of a DKIM DNS Record
A DKIM record generally follows this structure:
Type: TXT
Host: selector._domainkey
Value: v=DKIM1; k=rsa; p=YOUR_PUBLIC_KEY
The individual components mean:
v=DKIM1: Identifies the record as a DKIM record.k=rsa: Specifies the cryptographic key type.p=YOUR_PUBLIC_KEY: Contains the public key used to verify email signatures.selector: Identifies which DKIM key should be used.
The selector is important because it helps receiving mail servers locate the correct public key.
Your email hosting provider generates the DKIM configuration, including the selector and public key. The example above is illustrative; you should always use the actual values provided by your email platform.
Why Is DKIM Important for Businesses?
DKIM provides an additional layer of email security by:
- Helping recipients verify the authenticity of signed emails.
- Detecting unauthorized modifications to signed message content.
- Supporting DMARC authentication and domain alignment.
- Improving trust in legitimate business communications.
For organizations sending invoices, contracts, proposals, and other important business correspondence, DKIM is an important part of a reliable email security setup.
3. What Is DMARC (Domain-based Message Authentication, Reporting, and Conformance)?
DMARC is the policy and reporting layer that brings SPF and DKIM together.
While SPF identifies authorized sending servers and DKIM verifies digital signatures, DMARC tells receiving email servers how to handle messages that fail authentication.
It also checks whether the authenticated domain aligns with the domain visible in the sender’s email address.
This alignment is important.
For example, an attacker might send an email from an unauthorized server while displaying your company’s email address in the From field.
Even if some authentication check succeeds against a different domain, DMARC checks whether the authenticated domain matches the visible sending domain according to the configured alignment policy.
A message passes DMARC if at least one of the following conditions is met:
- SPF passes and the authenticated SPF domain aligns with the visible From domain.
- DKIM passes and the signing domain aligns with the visible From domain.
Both do not need to pass for DMARC to pass.
Example of a DMARC DNS Record
A basic DMARC record can look like this:
Type: TXT
Host: _dmarc
Value: v=DMARC1; p=none; rua=mailto:dmarc@example.com
Here is what the different elements mean:
v=DMARC1: Identifies the record as a DMARC policy.p=none: Requests monitoring without applying a DMARC enforcement action.rua=mailto:dmarc@example.com: Specifies where aggregate DMARC reports should be sent.
Replace example.com and the reporting email address with your actual domain and a mailbox configured to receive DMARC reports.
Understanding the Three DMARC Policies
DMARC supports three main policies.
1. None (p=none)
This is the monitoring policy. Receiving servers are not asked to quarantine or reject messages based on DMARC failures.
It allows administrators to collect reports, identify legitimate sending services, and understand authentication problems before enforcing stricter policies.
2. Quarantine (p=quarantine)
Messages that fail DMARC authentication are requested to be treated as suspicious, commonly by placing them in the recipient’s spam or junk folder.
This is a useful intermediate step once legitimate email sources have been identified.
3. Reject (p=reject)
Messages that fail DMARC authentication are requested to be rejected by receiving servers.
This provides the strongest protection against unauthorized use of your domain, although actual handling depends on the receiving mail server.
Businesses should normally begin with monitoring and move towards enforcement after reviewing their authentication reports.
SPF vs DKIM vs DMARC: What Is the Difference?
Although these three protocols are closely connected, they perform different functions.
SPF answers: Is this sending server authorized to send email for the domain?
DKIM answers: Does this email have a valid cryptographic signature?
DMARC answers: Does the email pass an aligned SPF or DKIM check, and what should happen if it fails?
Together, they create a more comprehensive email authentication framework.
How to Set Up SPF, DKIM, and DMARC for Your Business Domain
Configuring email authentication requires access to your domain’s DNS management panel and your email hosting platform.
This may be your domain registrar, DNS hosting provider, or a platform such as Cloudflare.
The following steps provide a general setup process.
Step 1: Identify Your Email Sending Services
Before changing DNS records, identify every service that sends email using your business domain.
For example, your organization might use:
- IceWarp for business email.
- A CRM platform for customer communications.
- An email marketing service for campaigns.
- An accounting platform for invoices and payment notifications.
This step is important because overlooking even one legitimate sending service can lead to authentication failures.
Step 2: Configure Your SPF Record
Log in to your DNS management panel and locate the TXT records for your domain.
Create or update your SPF record using the configuration provided by your email hosting provider.
For example, a simplified SPF record might look like:
Type: TXT
Host: @
Value: v=spf1 include:YOUR-PROVIDER-SPF ~all
Replace the placeholder with the actual SPF mechanism provided by your email platform.
If you use multiple authorized email services, combine their approved mechanisms into the same SPF record.
Do not create a second SPF record.
Step 3: Generate and Publish Your DKIM Record
Access your email platform’s administration settings and locate the DKIM authentication configuration.
Generate or retrieve your DKIM public key and selector.
Your provider may supply a TXT record or a CNAME record, depending on its implementation.
Add the exact record to your DNS management panel.
For example, a TXT-based DKIM record may look like:
Type: TXT
Host: selector._domainkey
Value: v=DKIM1; k=rsa; p=YOUR_PUBLIC_KEY
After publishing the record, return to your email administration panel and enable DKIM signing if the platform requires a separate activation step.
Step 4: Publish Your DMARC Record
Once SPF and DKIM are configured, create a DMARC record in your DNS settings.
A basic monitoring configuration looks like this:
Type: TXT
Host: _dmarc
Value: v=DMARC1; p=none; rua=mailto:dmarc@yourdomain.com
Replace the reporting email address with a valid mailbox that can receive aggregate reports.
Start with p=none to monitor authentication results before introducing enforcement.
Step 5: Monitor Authentication Reports
Publishing DNS records is not the final step.
You should monitor your authentication results to confirm that legitimate emails are passing SPF, DKIM, and DMARC checks.
Review DMARC aggregate reports to identify:
- Authorized email services sending messages from your domain.
- Unauthorized or unexpected sending sources.
- SPF authentication failures.
- DKIM signature failures.
- Domain alignment issues.
Once all legitimate sending services are properly authenticated, you can gradually move towards p=quarantine and eventually p=reject.
Step 6: Test Your Email Authentication Configuration
After configuring the records, send test emails to external mailboxes and inspect their message headers.
Look for authentication results such as:
spf=pass
dkim=pass
dmarc=pass
These results indicate that the respective authentication checks have passed for the tested message.
You can also use DNS lookup and email authentication testing tools to verify that your records are publicly accessible and correctly formatted.
Remember that DNS propagation times vary, and a successful DNS lookup alone does not guarantee that email authentication is working correctly.
Common SPF, DKIM, and DMARC Configuration Mistakes
Even when businesses understand the importance of email authentication, configuration mistakes can weaken their protection or disrupt legitimate communications.
Here are some common issues to avoid.
1. Publishing Multiple SPF Records
Having multiple SPF TXT records for the same domain can cause SPF validation errors. Consolidate all authorized sending sources into one record.
2. Forgetting Third-Party Email Services
Marketing platforms, CRM systems, and website applications may send emails using your domain. These services must be included in your authentication planning.
3. Publishing an Incorrect DKIM Selector
If the selector in the outgoing email signature does not match the published DNS record, the receiving server may be unable to verify the DKIM signature.
4. Enforcing DMARC Too Early
Moving directly to p=reject without reviewing authentication reports can cause legitimate emails to be rejected if some sending services are not properly configured.
5. Ignoring DMARC Reports
DMARC reports provide visibility into how your domain is being used for email. Ignoring them means missing important information about authentication failures and unauthorized sending sources.
6. Assuming DNS Configuration Guarantees Inbox Delivery
SPF, DKIM, and DMARC help establish email authenticity, but they do not guarantee inbox placement. Sender reputation, message quality, recipient engagement, and other filtering factors also influence deliverability.
How Emerald Labs Helps Businesses Secure Their Email Infrastructure
Email authentication should be part of every organization’s business email deployment, not an afterthought.
At Emerald Labs, we help businesses establish reliable email environments through professional email infrastructure and configuration services.
Our IceWarp Business Suite deployments include SPF, DKIM, and DMARC configuration as part of the email setup process.
We help businesses with:
- Business email infrastructure deployment.
- Domain and DNS configuration.
- SPF record setup and validation.
- DKIM key generation and authentication.
- DMARC policy configuration.
- Email authentication testing.
- Ongoing email infrastructure support.
Whether you are setting up a new business email environment or improving the security of your existing infrastructure, having the correct authentication records in place helps protect your domain and strengthen trust in your business communications.
Explore Emerald Labs’ IceWarp Business Suite to learn how we can help your organization establish a secure and professional business email environment.
Frequently Asked Questions (FAQs)
1. Do I need SPF, DKIM, and DMARC for my business domain?
Yes. Businesses should implement all three protocols to establish a comprehensive email authentication framework. Each serves a different purpose, and using them together provides stronger protection against domain spoofing and unauthorized email use.
2. Can I use SPF without DKIM?
Yes. SPF can operate independently of DKIM. However, relying on SPF alone provides limited protection. Implementing DKIM alongside SPF also supports DMARC authentication and helps protect the integrity of signed messages.
3. Does DMARC work without SPF and DKIM?
DMARC relies on SPF and DKIM authentication results to determine whether an email passes its checks. It is most effective when both protocols are configured correctly, although an aligned pass from either one is sufficient for DMARC to pass.
4. How long does it take to configure SPF, DKIM, and DMARC?
The configuration process depends on your email hosting provider, DNS access, and the number of services sending emails through your domain. DNS changes may become visible within minutes, but propagation and provider-side activation can take longer.
5. Does email authentication prevent phishing attacks?
SPF, DKIM, and DMARC help prevent attackers from impersonating your domain. However, they do not prevent every form of phishing, particularly messages sent from compromised legitimate accounts or unrelated domains. They should be part of a broader email security strategy.
6. What is the difference between DMARC quarantine and reject?
Quarantine requests receiving servers to treat messages failing DMARC as suspicious, often placing them in spam. Reject requests receiving servers to refuse those messages. Reject is the stricter enforcement option.
7. Can I configure SPF, DKIM, and DMARC for IceWarp?
Yes. IceWarp deployments can be configured with the necessary email authentication records. The exact DNS values depend on the deployment’s sending configuration and domain setup. Proper configuration and testing are important to ensure authentication works as expected.
Final Thoughts
Business email security starts with knowing who is authorized to send messages using your domain.
SPF identifies authorized sending sources, DKIM verifies digital signatures, and DMARC establishes authentication policies and reporting.
Together, these protocols help businesses reduce domain spoofing risks, improve email authenticity, and establish greater confidence in their digital communications.
If your organization uses business email for important client communication, financial transactions, or internal operations, make sure your email authentication records are properly configured.
Need help configuring your business email? Contact Emerald Labs to explore our IceWarp Business Suite deployment and email authentication services.


