20 November 2026 · DMARC Engine · 12 min read
- Use sp= tag for subdomain policy
- Implement np= for non-existent subdomains
- Monitor aggregate reports for issues
- Test policies before implementation
The Subdomain Sprawl Problem
A common pattern is for organisations to have a large number of subdomains, each with its own set of email senders, which can make managing DMARC policies challenging. Receivers typically apply DMARC policies to the organisational domain, and subdomains inherit this policy by default. For example, if the organisational domain example.com has a DMARC record, subdomains such as mail.example.com, marketing.example.com, and blog.example.com will inherit this policy.
_dmarc.example.com. IN TXT "v=DMARC1; p=none; rua=mailto:aggrep@example.com"
This can lead to issues if some subdomains are not intended to send email, as they may still be subject to the DMARC policy. A hosted or managed setup may handle this by allowing administrators to set custom DMARC policies for individual subdomains, but this can add complexity to the overall configuration.
_dmarc.mail.example.com. IN TXT "v=DMARC1; p=quarantine; rua=mailto:aggrep@example.com"
In some cases, organisations may have subdomains that are not under their direct control, such as those used by third-party services. These subdomains may not have a DMARC record, or may have a record that conflicts with the organisational domain's policy.
> Warning: Failing to manage subdomain sprawl can lead to email delivery issues, as receivers may apply the wrong DMARC policy to email sent from subdomains.
Understanding DMARC Subdomain Policies
A common pattern is for organisations to have a large number of subdomains, which can make managing DMARC policies challenging. Receivers typically apply DMARC policies to subdomains if no subdomain-specific policy is found, using the parent domain's policy instead. This can lead to unintended email handling, as the parent domain's policy may not be suitable for all subdomains.
To mitigate this, DMARC provides the sp tag, which allows domain owners to specify a DMARC policy for all subdomains of a domain. For example, a domain owner may publish a DMARC record for their parent domain, and include an sp tag to define the policy for all subdomains.
_dmarc.example.com. IN TXT "v=DMARC1; p=none; sp=quarantine; pct=100; rua=mailto:aggrep@example.com"However, the sp tag should be used with caution, as it applies the specified policy to all subdomains, regardless of whether they exist or not.
In a hosted or managed setup, the provider may handle subdomain policies differently, so it is essential to check their documentation and configuration options. Some providers may automatically apply the parent domain's policy to subdomains, while others may require manual configuration.
Tip: when implementing DMARC subdomain policies, it is crucial to monitor aggregate reports to understand how the policies are being applied and to identify any potential issues. The aggregate reports will show which subdomains are being subjected to the parent domain's policy, and which ones have their own policies.
A list of potential subdomain policy considerations includes:
- existing subdomains with their own DMARC policies
- non-existent subdomains that may be targeted by attackers
- subdomains with different email handling requirements
- the potential impact of applying a single policy to all subdomains
_subdomain.example.com. IN TXT "v=DMARC1; p=reject; pct=100; rua=mailto:aggrep@example.com"Using the sp= Tag for Subdomain Policy
The sp= tag in a DMARC record allows domain owners to specify a subdomain policy, which determines how receivers should handle messages from subdomains that do not have their own DMARC records. A common pattern is for domain owners to set a subdomain policy that is more restrictive than the organisational domain policy, to prevent unauthenticated mail from being sent from subdomains.
_dmarc.example.com. IN TXT "v=DMARC1; p=none; sp=quarantine; pct=100; rua=mailto:aggrep@example.com; ruf=mailto:forensics@example.com; fo=1"In this example, the organisational domain example.com has a DMARC policy of p=none, but the subdomain policy is set to sp=quarantine, which means that receivers should quarantine messages from subdomains that do not have their own DMARC records. The pct=100 tag is not necessary in this case, as it has been removed from the DMARC specification, and receivers typically ignore it.
Receivers typically apply the subdomain policy to all subdomains that do not have their own DMARC records, so it is essential to test the subdomain policy thoroughly before implementing it. A hosted or managed setup may handle subdomain policies differently, so it is crucial to check the documentation for the specific setup.
The aggregate reports will show which subdomains are sending mail and whether they are authenticated or not, which can help domain owners to identify and fix any issues with their subdomain policy. The reports will also show which receivers are applying the subdomain policy and how they are handling messages from subdomains.
A list of common subdomain policy settings includes:
sp=none: do not apply any policy to subdomainssp=quarantine: quarantine messages from subdomains that do not have their own DMARC recordssp=reject: reject messages from subdomains that do not have their own DMARC records
_subdomain._dmarc.example.com. IN TXT "v=DMARC1; p=reject; pct=100; rua=mailto:aggrep@example.com; ruf=mailto:forensics@example.com; fo=1"Warning: setting a subdomain policy to sp=reject can cause mail from legitimate subdomains to be rejected, so it is essential to test the policy thoroughly before implementing it.
Domain owners should monitor their aggregate reports closely after implementing a subdomain policy, to ensure that it is working as intended and to identify any issues that need to be fixed. The reports will show which subdomains are sending mail and whether they are authenticated or not, which can help domain owners to refine their subdomain policy and improve the security of their mail streams.
Implementing np= for Non-Existent Subdomains
When dealing with subdomain sprawl, one common issue is handling non-existent subdomains that may be used by attackers to send spoofed emails. The np tag in DMARC records allows you to specify a policy for non-existent subdomains. This can be particularly useful in preventing attackers from exploiting unused subdomains.
_dmarc.example.com. IN TXT "v=DMARC1; p=none; np=quarantine; pct=100; rua=mailto:aggrep@example.com; ruf=mailto:forep@example.com"In this example, the np tag is set to quarantine, which means that emails sent from non-existent subdomains will be quarantined by receivers. This can help prevent spoofing attacks while still allowing you to monitor and adjust your policy as needed.
A common pattern is for organisations to set np to reject once they have verified that all legitimate subdomains are properly configured with DMARC records. However, this requires careful planning and monitoring to avoid inadvertently blocking legitimate emails.
_dmarc.example.com. IN TXT "v=DMARC1; p=none; np=reject; pct=100; rua=mailto:aggrep@example.com; ruf=mailto:forep@example.com"Receivers typically honour the np tag when evaluating DMARC policies for non-existent subdomains. However, it is essential to note that some hosted or managed setups may handle this differently, so it is crucial to verify the behaviour in your specific environment.
Warning:
When implementing np, ensure that you have a thorough understanding of your subdomain landscape and have properly configured DMARC records for all legitimate subdomains to avoid unintended consequences.
Real-World Examples and Record Snippets
A common pattern is for organisations to have a large number of subdomains, each with its own specific purpose, such as blog.example.com, shop.example.com, or support.example.com. When implementing DMARC, it is essential to consider how to manage these subdomains to prevent unauthenticated email from being sent on their behalf. One approach is to use the sp= tag in the DMARC record to specify a subdomain policy. For example, the following DMARC record snippet:
_dmarc.example.com. IN TXT "v=DMARC1; p=none; sp=reject; adkim=s; aspf=s"specifies that the domain example.com has a DMARC policy of p=none, but any subdomains should have a policy of p=reject. This means that if a message fails DMARC authentication and claims to be from a subdomain of example.com, it will be rejected.
When using the sp= tag, it is crucial to consider the potential impact on legitimate email senders that may be using subdomains. For instance, if a company has a subdomain for its marketing team, such as marketing.example.com, and this subdomain is used to send legitimate email, then setting sp=reject could cause issues with delivery. In a hosted or managed setup, the email service provider may handle subdomain management differently, so it is vital to check their documentation and adjust the DMARC record accordingly.
The np= tag can also be used to specify a policy for non-existent subdomains. For example:
_dmarc.example.com. IN TXT "v=DMARC1; p=none; sp=reject; np=discard; adkim=s; aspf=s"This record specifies that any non-existent subdomains should have a policy of p=discard, which means that messages claiming to be from these subdomains will be discarded. This can help prevent attackers from using non-existent subdomains to send spam or phishing emails.
In some cases, organisations may have a mix of subdomains that require different DMARC policies. For example, they may have some subdomains that are used for transactional email and require a strict DMARC policy, while others are used for marketing and can have a more relaxed policy. In such cases, it is possible to use multiple DMARC records, each with its own sp= tag, to specify different policies for different subdomains. For instance:
_dmarc.example.com. IN TXT "v=DMARC1; p=none; sp=reject; adkim=s; aspf=s"
_dmarc.transactional.example.com. IN TXT "v=DMARC1; p=reject; adkim=s; aspf=s"
_dmarc.marketing.example.com. IN TXT "v=DMARC1; p=quarantine; adkim=s; aspf=s"This approach allows organisations to tailor their DMARC policies to the specific needs of each subdomain.
Note: When implementing DMARC subdomain policies, it is essential to monitor the aggregate reports to ensure that the policies are not causing issues with legitimate email senders. The aggregate reports will show which subdomains are being used to send email and whether these messages are passing or failing DMARC authentication. This information can be used to adjust the DMARC policies and prevent any potential issues with email delivery.
Monitoring and Adjusting with Aggregate Reports
A common pattern is for organisations to set up DMARC subdomain policies, then neglect to monitor their effectiveness, leading to a lack of insight into authentication results and potential security issues. Receivers typically send aggregate reports to the email address specified in the DMARC record, which can be used to monitor and adjust subdomain policies. The aggregate reports will show the number of messages that passed or failed DMARC authentication, allowing organisations to identify areas for improvement.
_dmarc.example.com. IN TXT "v=DMARC1; p=none; rua=mailto:dmarc-aggregate@example.com; ruf=mailto:dmarc-failure@example.com; sp=none; np=none"
Organisations can use these reports to adjust their subdomain policies, such as changing the sp tag to quarantine or reject to increase security. A hosted or managed setup may handle aggregate report collection and analysis differently, so it is essential to check the specific setup's documentation. The reports can also be used to identify potential issues with subdomain configuration, such as a missing or misconfigured np tag, which can lead to authentication failures.
- identify authentication results for each subdomain
- monitor the number of messages that pass or fail DMARC authentication
- adjust subdomain policies based on the results
_subdomain.example.com. IN TXT "v=DMARC1; p=quarantine; rua=mailto:dmarc-aggregate@example.com; ruf=mailto:dmarc-failure@example.com"
Note: when adjusting subdomain policies, it is crucial to consider the potential impact on legitimate email traffic, as overly restrictive policies can lead to false positives and blocked emails. Organisations should carefully evaluate the trade-offs between security and deliverability when making changes to their subdomain policies.
Trade-Offs and Best Practices for Subdomain Management
When implementing DMARC subdomain policies, it is crucial to consider the trade-offs between security, complexity, and manageability. A common pattern is for organisations to have a large number of subdomains, each with its own set of mail servers and authentication mechanisms. In such cases, using the sp tag to specify a subdomain policy can help to simplify the management of these subdomains. For example, a company with multiple subdomains for different departments or regions can use a single DMARC record with an sp tag to apply a uniform policy across all subdomains.
_dmarc.example.com. IN TXT "v=DMARC1; p=none; sp=quarantine; pct=100; rua=mailto:aggrep@example.com"However, this approach can also lead to a loss of granularity, as the same policy will be applied to all subdomains, regardless of their specific needs. A better approach may be to use a combination of the sp tag and the np tag to specify different policies for existing and non-existent subdomains. This allows for more flexibility and control over the DMARC policy, while still simplifying the management of subdomains.
_dmarc.example.com. IN TXT "v=DMARC1; p=none; sp=quarantine; np=none; pct=100; rua=mailto:aggrep@example.com"In a hosted or managed setup, the management of subdomains and DMARC policies can be handled by the provider, which can simplify the process for organisations. However, it is still important for organisations to understand the trade-offs and best practices involved in managing subdomains and DMARC policies, in order to ensure that their email authentication and security needs are met.
_dmarc.subdomain.example.com. IN TXT "v=DMARC1; p=reject; pct=100; rua=mailto:aggrep@example.com"A key consideration when implementing DMARC subdomain policies is the potential impact on email deliverability. If a subdomain is not properly configured, or if the DMARC policy is too restrictive, it can lead to emails being blocked or quarantined. To mitigate this risk, it is recommended to start with a monitoring-only policy (p=none) and gradually move to a more restrictive policy (p=quarantine or p=reject) once the organisation is confident that their subdomains are properly configured.
_dmarc.example.com. IN TXT "v=DMARC1; p=none; sp=quarantine; np=none; pct=100; rua=mailto:aggrep@example.com; ruf=mailto:forensic@example.com"Note: It is essential to monitor the aggregate reports and forensic reports to identify any issues or misconfigurations, and to adjust the DMARC policy accordingly. The aggregate reports will show the number of emails that passed or failed DMARC authentication, while the forensic reports will provide more detailed information about the emails that failed authentication.
When managing subdomains and DMARC policies, it is also important to consider the organisational structure and the needs of different departments or teams. For example, a company with multiple departments may need to have different DMARC policies for each department, depending on their specific email authentication and security requirements. In such cases, it may be necessary to use a combination of the sp tag and the np tag to specify different policies for different subdomains.
In short, managing subdomains and DMARC policies requires careful consideration of the trade-offs between security, complexity, and manageability. By using a combination of the sp tag and the np tag, and by monitoring the aggregate reports and forensic reports, organisations can simplify the management of their subdomains while ensuring that their email authentication and security needs are met.