12 November 2026 · DMARC Engine · 10 min read
- Use DMARC to protect non-mailing domains
- Implement a strict DMARC policy
- Monitor aggregate reports regularly
- Test DMARC setup before implementing a strict policy
The Spoofing Problem for Non-Mailing Domains
A common pattern is for non-mailing domains, such as those used for web services or internal applications, to be targeted by spammers attempting to spoof the domain. Receivers typically have no prior knowledge of the domain's mailing behaviour, making it difficult to distinguish between legitimate and spoofed emails.
The aggregate reports will show a high volume of emails claiming to be from the non-mailing domain, but failing DMARC validation due to the absence of a valid SPF or DKIM record. For example, a domain with no mailing infrastructure may still receive aggregate reports showing emails with a from domain of example.com, but with no valid SPF or DKIM alignment.
example.com. IN TXT "v=spf1 -all"This SPF record indicates that the domain does not send emails, but it does not prevent spammers from attempting to send emails claiming to be from example.com.
In a hosted or managed setup, the email provider may handle non-mailing domains differently, potentially applying stricter spam filtering or blocking emails claiming to be from such domains. However, this is not a reliable solution, as it relies on the provider's specific configuration and may not be consistently applied.
Warning:
Failing to protect non-mailing domains with DMARC can lead to reputational damage, as spammers may use the domain to send phishing or spam emails, potentially causing the domain to be blocked or flagged by receivers.
Assessing the Need for DMARC Protection
When evaluating the need for DMARC protection on non-mailing domains, consider the potential risks of spoofing and the benefits of implementing a DMARC policy. A common pattern is for attackers to target non-mailing domains, as they often lack the same level of security measures as mailing domains. For instance, a company may have a domain, example.co.uk, which is not used for sending emails, but an attacker could still use this domain to send spoofed emails.
example.co.uk. IN TXT "v=DMARC1; p=none; rua=mailto:aggrep@example.co.uk"The aggregate reports will show whether the domain is being used in spoofing attempts, helping to inform the decision to implement a stricter DMARC policy. Receivers typically honour DMARC policies, so it is crucial to assess the potential impact on legitimate traffic before making any changes.
example.co.uk. IN TXT "v=DMARC1; p=quarantine; rua=mailto:aggrep@example.co.uk"In a hosted or managed setup, the provider may offer tools to simplify the process of assessing the need for DMARC protection and implementing a policy.
Regularly review aggregate reports to ensure the DMARC policy is effective and not causing unintended issues with legitimate email traffic.
Implementing DMARC with a Strict Policy
Implementing DMARC with a strict policy involves setting up a DMARC record with a policy of p=reject to reject all emails that fail authentication, which helps protect non-mailing domains from spoofing. A common pattern is to start with a monitoring-only policy, p=none, to gather data on email traffic, then move to p=quarantine to quarantine unauthenticated emails, and finally to p=reject to reject them.
The DMARC record for a domain with a strict policy would look like this:
_dmarc.example.com. IN TXT "v=DMARC1; p=reject; rua=mailto:aggregate@example.com; ruf=mailto:forensic@example.com; fo=1"This record specifies that the domain example.com has a DMARC policy of reject, and aggregate reports should be sent to aggregate@example.com, while forensic reports should be sent to forensic@example.com.
A hosted or managed setup may handle the DMARC record setup differently, for instance, some providers may offer a web interface to configure DMARC settings, while others may require manual DNS record setup. Receivers typically honour the DMARC policy specified in the record, so it is crucial to test and verify the setup before implementing a strict policy.
Note:
> When implementing a strict DMARC policy, it is essential to ensure that all legitimate email senders are authenticated, either through SPF or DKIM, to avoid rejecting genuine emails. The aggregate reports will show which sources are sending emails on behalf of the domain, allowing for adjustments to the authentication setup as needed.
Some email services, like mailing list providers, may not authenticate emails correctly, which could lead to false rejections. In such cases, it may be necessary to add these services to the SPF record or implement custom authentication mechanisms. The trade-off is between protecting the domain from spoofing and ensuring that all legitimate emails are delivered.
To mitigate potential issues, it is recommended to monitor aggregate reports closely after implementing a strict DMARC policy and adjust the setup as needed to ensure that legitimate emails are not being rejected.
DNS Setup Considerations for Non-Mailing Domains
When setting up DMARC for non-mailing domains, careful consideration of the DNS setup is crucial to ensure effective protection against spoofing. A common pattern is for organisations to have multiple domains, some of which may not be used for sending email, but can still be used by attackers to spoof emails. To protect these non-mailing domains, a DMARC record should be published on each domain, with a policy that indicates to receivers how to handle unauthenticated email.
_dmarc.example.com. IN TXT "v=DMARC1; p=reject; rua=mailto:example@example.com"This record tells receivers to reject any email that fails DMARC authentication, and to send aggregate reports to the specified email address. The p=reject policy is the most effective way to prevent spoofing, as it instructs receivers to reject any email that fails authentication. However, it is essential to ensure that all legitimate email senders are authenticated before implementing this policy, to avoid disrupting legitimate email flows.
_dmarc.example.net. IN TXT "v=DMARC1; p=quarantine; rua=mailto:example@example.net"In some cases, organisations may prefer to use a p=quarantine policy, which instructs receivers to quarantine email that fails authentication, rather than rejecting it outright. This can be a useful intermediate step, allowing organisations to test the effectiveness of their DMARC setup before moving to a p=reject policy.
_dmarc.example.io. IN TXT "v=DMARC1; p=none; rua=mailto:example@example.io"A p=none policy can also be used, which instructs receivers to take no action on email that fails authentication, but still sends aggregate reports to the specified email address. This can be useful for organisations that want to monitor email authentication without disrupting email flows.
_dmarc.subdomain.example.com. IN TXT "v=DMARC1; p=reject; rua=mailto:example@example.com"It is also essential to consider subdomains when setting up DMARC for non-mailing domains. Subdomains can be used by attackers to spoof emails, so it is crucial to publish DMARC records on subdomains as well. Receivers typically honour DMARC records on subdomains, so it is essential to ensure that these records are correctly configured.
> Warning: Failing to publish DMARC records on subdomains can leave them vulnerable to spoofing, which can have serious consequences for organisations. It is essential to ensure that all subdomains are properly configured with DMARC records to prevent this type of attack.
When using a hosted or managed DMARC setup, the DNS setup considerations may be handled automatically. However, it is still essential to understand the underlying DNS setup and to ensure that the DMARC records are correctly configured. The aggregate reports will show whether the DMARC setup is effective in preventing spoofing, and whether any adjustments need to be made to the DNS setup.
Monitoring and Analysing Aggregate Reports
To effectively protect non-mailing domains from spoofing with DMARC, it is crucial to monitor and analyse aggregate reports. These reports, typically sent to the email address specified in the rua tag of the DMARC record, provide valuable insights into the email traffic purportedly coming from the domain. A common pattern is for receivers to send these reports periodically, usually daily, to the specified address.
The aggregate reports will show the source IP addresses, message disposition (e.g., delivered, rejected, quarantined), and the authentication results for SPF and DKIM. For example, a DMARC record like the following:
_dmarc.example.com. IN TXT "v=DMARC1; p=none; rua=mailto:dmarc-aggregate@example.com; ruf=mailto:dmarc-failure@example.com; fo=1"will instruct receivers to send aggregate reports to dmarc-aggregate@example.com.
When analysing these reports, it is essential to look for source IP addresses that consistently fail authentication, as these could be indicators of spoofing attempts. Receivers typically include the IP addresses and the number of messages in the reports, allowing for the identification of potential spoofing sources.
A list of key points to consider when monitoring aggregate reports includes:
* Source IP addresses of messages that fail authentication
* Message disposition and the reason for rejection or quarantine
* Authentication results for SPF and DKIM
* Consistency of reporting from major receivers
import xml.etree.ElementTree as ET
# Parse the aggregate report XML
root = ET.parse('aggregate_report.xml').getroot()
# Extract and print the source IP addresses that failed authentication
for record in root.findall('.//record'):
for result in record.findall('.//result'):
if result.attrib['disposition'] == 'none':
print(record.find('source_ip').text)
Note: A hosted or managed DMARC setup may handle the analysis and monitoring of aggregate reports differently, potentially offering automated tools for identifying spoofing attempts and simplifying the process of maintaining DMARC protection for non-mailing domains.
Potential Impacts on Legitimate Traffic
When implementing DMARC on non-mailing domains, it is crucial to consider the potential impacts on legitimate traffic. A common pattern is for organisations to use their non-mailing domains for other purposes, such as hosting websites or providing API services. In these cases, the DMARC policy may interfere with legitimate traffic, particularly if the policy is set to reject or quarantine messages.
_dmarc.example.com. IN TXT "v=DMARC1; p=reject; rua=mailto:aggregate@example.com"
A hosted or managed setup may handle this by providing options to customise the DMARC policy for specific use cases. However, it is essential to carefully evaluate the potential impacts on legitimate traffic before implementing a strict DMARC policy.
Warning:
Implementing a reject policy without thorough testing and monitoring may result in unintended consequences, such as blocking legitimate messages or disrupting business-critical services. It is recommended to start with a monitoring-only policy and gradually move to a stricter policy after verifying that it does not interfere with legitimate traffic.
Best Practices for DMARC Deployment on Non-Mailing Domains
When deploying DMARC on non-mailing domains, it is crucial to consider the potential impact on legitimate traffic. A common pattern is for organisations to publish a DMARC record with a strict policy, such as p=reject, to prevent spoofing. However, this can lead to issues with legitimate email senders that are not properly configured.
_dmarc.example.com. IN TXT "v=DMARC1; p=reject; pct=100; rua=mailto:aggrep@example.com; ruf=mailto:forensics@example.com; fo=1"
A better approach is to start with a monitoring-only policy, such as p=none, and then gradually increase the strictness of the policy based on the analysis of aggregate reports. Receivers typically provide these reports, which contain information about email messages that fail DMARC authentication.
Tip:
> When using a hosted or managed DMARC setup, ensure that the provider handles aggregate reports correctly, and that you have access to the reports to analyse and adjust your DMARC policy accordingly.
In a hosted setup, the DNS records are typically managed by the provider, so it is essential to verify that the records are correctly published on the domain you control, such as example.com, rather than the provider's hostname. The aggregate reports will show the effectiveness of the DMARC policy and help identify any issues with legitimate email senders.