DMARC Engine
Home/Blog/Optimising Email Authentication for Senders with Multi-Cloud Infrastructure
Blog

Optimising Email Authentication for Senders with Multi-Cloud Infrastructure

Senders with multi-cloud infrastructure face unique email authentication challenges, requiring consistent DMARC policies and accurate SPF and DKIM configurations across clouds

20 September 2026 · DMARC Engine · 39 min read

Optimising Email Authentication for Senders with Multi-Cloud Infrastructure

Introduction to Multi-Cloud Email Authentication Challenges

Senders with multi-cloud infrastructure face a unique set of challenges when it comes to email authentication, centre of which is the need to maintain consistent and accurate Domain-based Message Authentication, Reporting, and Conformance (DMARC) policies across different cloud providers. This complexity is further exacerbated by the varying levels of support for email authentication protocols such as Sender Policy Framework (SPF) and DomainKeys Identified Mail (DKIM) offered by different cloud providers. For instance, a sender may use Amazon Web Services (AWS) for their main application, Microsoft Azure for their marketing automation, and Google Cloud Platform (GCP) for their customer support platform, each requiring its own set of SPF and DKIM configurations.

One of the primary challenges in managing email authentication across multiple clouds is ensuring that all sending sources are properly configured and aligned with the organisation's overall DMARC policy. This involves maintaining accurate and up-to-date SPF records that include all authorised sending sources, as well as implementing DKIM signing for emails sent from each cloud provider. The following is an example of an SPF record that includes sending sources from multiple cloud providers:

v=spf1 include:_spf.aws.example.com include:_spf.azure.example.com include:_spf.google.com -all

In this example, the SPF record includes sending sources from AWS, Azure, and GCP, and specifies that all emails sent from these sources are authorised to send on behalf of the domain.

However, managing SPF records can become increasingly complex as the number of sending sources grows, and it is not uncommon for organisations to have dozens or even hundreds of different sending sources across their multi-cloud infrastructure. To optimise SPF record management, it is essential to implement a centralised management system that can automate the process of updating SPF records and ensure that all sending sources are properly configured. Hosted or managed DMARC setups, such as those offered by DMARC Engine, can simplify this process by providing a unified interface for managing SPF records and DMARC policies across multiple cloud providers.

DKIM signing also presents its own set of challenges in multi-cloud environments, particularly when it comes to key management and rotation. Each cloud provider may have its own requirements and recommendations for DKIM key sizes, rotation frequencies, and selector names, which can make it difficult to maintain consistency across different sending sources. For example, AWS recommends using a key size of 2048 bits or larger, while Azure recommends using a key size of 1024 bits or larger. The following is an example of a DKIM record that uses a 2048-bit key:

default._domainkey.example.com. IN TXT "v=DKIM1; k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCqGKukO1De7zhZj6+H0qtjTkVxwTCpvKe4eCZ0FPqri0cb2JZfXJ/DgYSF6vUpwmJG8wVQZKjeGcjDOL5UlsuusFncCzWBQ7RKNUSesmQRMSGkVb1/3j+skZ6UtW+5u09lHNsj6tQ51s1SPrCBkedbNf0Tp0GbMJDyR4e9T04ZZwIDAQAB"

In this example, the DKIM record uses a 2048-bit RSA key, which is considered to be a secure key size for DKIM signing.

To address these challenges, organisations with multi-cloud infrastructure should consider implementing a unified DMARC strategy that takes into account the specific requirements and limitations of each cloud provider. This may involve working with a hosted or managed DMARC provider to design and implement a custom DMARC policy that meets the organisation's specific needs and ensures consistent email authentication across all sending sources. By taking a proactive and strategic approach to email authentication, organisations can optimise their email deliverability, reduce the risk of email spoofing and phishing attacks, and improve their overall email security posture.

In addition to the technical challenges, organisations should also consider the operational and administrative aspects of managing email authentication in a multi-cloud environment. This includes ensuring that all relevant teams and stakeholders are aware of the organisation's DMARC policy and are properly trained on how to configure and manage email authentication settings for each cloud provider. It is also essential to have a clear understanding of the organisational structure and the different departments that are involved in email sending, as this can help to identify potential gaps in email authentication coverage and ensure that all sending sources are properly configured.

By taking a comprehensive and strategic approach to email authentication, organisations with multi-cloud infrastructure can ensure that their email communications are secure, reliable, and compliant with industry standards and best practices. This requires a deep understanding of the technical, operational, and administrative aspects of email authentication, as well as the ability to design and implement a unified DMARC strategy that meets the organisation's specific needs and ensures consistent email authentication across all sending sources.

Assessing Cloud Provider Variations in Email Authentication Support

When organisations operate within a multi-cloud infrastructure, one of the critical aspects to consider is how each cloud provider supports email authentication protocols such as DMARC, SPF, and DKIM. The variability in support and implementation can significantly impact the effectiveness of email authentication and, by extension, email deliverability.

For instance, Amazon Web Services (AWS) provides a comprehensive suite of tools for managing email authentication, including Amazon SES (Simple Email Service) which supports DMARC, SPF, and DKIM. AWS also offers detailed guides on setting up these protocols, making it relatively straightforward for users to configure email authentication.

# Example of an AWS SES DKIM record
"DKIM key" : {
 "privateKey" : "-----BEGIN RSA PRIVATE KEY-----\nMIIEpAIBAAKCAQEAn1... ",
 "selector" : "123456789",
 "publicKey" : "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG... "
}

In contrast, Microsoft Azure offers Azure Communication Services which also supports these email authentication protocols, but the setup process might differ, requiring a deeper understanding of Azure's specific configuration requirements. Google Cloud Platform (GCP) provides similar support through Google Cloud Messaging and Google Workspace, with its own set of guidelines and best practices for implementing DMARC, SPF, and DKIM.

A key consideration when assessing cloud provider variations is the ease of setup and management of email authentication records. For example, some providers may offer automated tools for generating and applying DKIM keys, while others may require manual configuration. The choice between these providers can depend on the organisation's specific needs, technical expertise, and the scale of their email operations.

Organisations using a hosted or managed DMARC setup, such as the one provided by DMARC Engine, can often simplify the process of managing email authentication across multiple cloud providers. These services typically offer a centralised dashboard for configuring DMARC, SPF, and DKIM records, as well as tools for analysing aggregate reports and troubleshooting issues. This can be particularly beneficial for organisations lacking the in-house expertise or resources to manage complex email authentication setups across different cloud infrastructures.

However, even with managed services, understanding the underlying variations in how each cloud provider supports email authentication is crucial. This knowledge helps in optimising the configuration for each provider, ensuring seamless email deliverability. For instance, configuring SPF records to include all sending IPs from various cloud providers requires careful planning to avoid exceeding the SPF record size limit of 255 characters, which can lead to SPF permerror.

# Example of an SPF record with multiple include statements
"v=spf1 include:_spf.example.net include:_spf.example.com include:_spf.aws.example.co.uk -all"

In a multi-cloud setup, managing DKIM signing can also become complex due to the need to generate, rotate, and manage DKIM keys across different providers. Each provider may have its own recommendations for DKIM key sizes and rotation policies, which must be considered to ensure consistent email authentication.

Assessing these variations and planning accordingly is essential for maintaining high email deliverability rates. Organisations should centre their strategy around a deep understanding of each cloud provider's email authentication capabilities, the specific requirements for setup and management, and how these can be optimised for a multi-cloud infrastructure. By doing so, they can navigate the complexities of email authentication in a multi-cloud environment effectively, ensuring that their emails reach their intended recipients without being flagged as spam or blocked due to authentication failures.

In practice, this might involve creating a detailed inventory of all email sending services and servers across different cloud providers, along with their respective IP addresses and email authentication configurations. Regular audits and monitoring of email authentication records, as well as analysis of DMARC aggregate reports, are also critical for identifying and addressing any issues promptly. By taking a proactive and informed approach to managing email authentication across multiple cloud providers, organisations can significantly improve their email deliverability and reduce the risk of email-based threats.

Designing a Unified DMARC Strategy Across Multiple Clouds

When organisations operate across multiple cloud infrastructures, designing a unified DMARC strategy becomes crucial to maintain consistent email authentication and prevent delivery issues. A key challenge is ensuring that all email senders, regardless of the cloud they originate from, align with the organisation's overall DMARC policy. This involves centralising the management of DMARC records, monitoring, and analysis to ensure a cohesive approach to email authentication.

One of the primary considerations is the domain alignment strategy. For example, if an organisation uses example.com as its primary domain and sends emails from both Amazon Web Services (AWS) and Microsoft Azure, it must ensure that the DMARC records for example.com include all relevant IP addresses and mail servers from both clouds. This can be achieved by using a hosted DMARC service that aggregates reports and provides a centralised management interface, simplifying the process of maintaining up-to-date records.

# Example DMARC record for example.com
_dmarc.example.com. IN TXT "v=DMARC1; p=reject; pct=100; rua=mailto:aggrep@example.com; ruf=mailto:forensics@example.com; fo=1"

In this example, the DMARC record specifies a reject policy for all emails that fail authentication, with 100% of messages being subject to this policy. The rua and ruf tags define the email addresses where aggregate and forensic reports are sent, respectively. A hosted DMARC service can help manage these reports, providing insights into authentication failures and helping to identify areas for improvement.

Another critical aspect of a unified DMARC strategy is the management of subdomains. Many organisations use subdomains for specific services or departments, and each of these may have its own DMARC record. For instance, marketing.example.com might have a different DMARC policy than support.example.com. In a multi-cloud environment, it's essential to ensure that all subdomains are properly configured and aligned with the overall DMARC strategy.

To optimise the DMARC strategy, organisations should also consider implementing BIMI (Brand Indicators for Message Identification) and MTA-STS (Mail Transfer Agent Strict Transport Security). BIMI allows brands to specify a logo that is displayed next to authenticated emails in supporting email clients, enhancing brand recognition and trust. MTA-STS, on the other hand, defines a security protocol for mail transfer agents, ensuring that emails are transmitted securely.

# Example BIMI record for example.com
default._bimi.example.com. IN TXT "v=BIMI1; l=https://example.com/logo.svg; a=;"

In a hosted or managed setup, the configuration and management of these additional protocols can be streamlined, reducing the administrative burden on the organisation. For example, a managed DMARC service might provide a simple interface for uploading logos and configuring BIMI records, or for enabling MTA-STS with a few clicks.

When designing a unified DMARC strategy, it's also important to consider the impact of organisational changes, such as mergers and acquisitions, or the introduction of new email services. These events can lead to changes in the email infrastructure, requiring updates to DMARC records and policies. A centralised management approach, potentially facilitated by a hosted DMARC service, can help mitigate these challenges by providing a single point of control and visibility.

To further complicate matters, some cloud providers may have specific requirements or recommendations for DMARC configuration. For instance, Google Cloud requires that DMARC records include a specific syntax for identifying Google's mail servers. Understanding these variations and incorporating them into the unified DMARC strategy is vital for ensuring seamless email authentication across all clouds.

In short, designing a unified DMARC strategy for senders with multi-cloud infrastructure involves careful consideration of domain alignment, subdomain management, and the implementation of additional email authentication protocols like BIMI and MTA-STS. By centralising the management of DMARC records and leveraging hosted or managed services, organisations can optimise their email authentication, improve deliverability, and enhance brand trust. This unified approach also facilitates better monitoring and analysis of email authentication issues, enabling proactive measures to prevent delivery problems and maintain a strong email reputation.

SPF Record Management for Multi-Cloud Infrastructures

Managing SPF records in a multi-cloud infrastructure can be a complex task, especially when dealing with multiple cloud providers, each with their own set of IP addresses and mail servers. A well-designed SPF record is crucial to prevent spam filters from blocking legitimate emails. In a multi-cloud setup, the SPF record needs to be carefully crafted to include all the IP addresses of mail servers from different cloud providers.

One of the key challenges in managing SPF records is keeping track of the IP addresses of mail servers from different cloud providers. For instance, if you are using Amazon Web Services (AWS) and Microsoft Azure, you need to ensure that your SPF record includes the IP addresses of mail servers from both providers. This can be a daunting task, especially if you have a large number of mail servers across different cloud providers.

To optimise SPF record management, it is essential to use a consistent naming convention for your SPF records. For example, you can use a format like spf.example.com or smtp.example.com to identify your SPF records. This helps to avoid confusion and makes it easier to manage your SPF records.

When managing SPF records for multiple cloud providers, it is crucial to consider the include mechanism. The include mechanism allows you to include other SPF records in your main SPF record. For example, if you have an SPF record for your AWS mail servers, you can include it in your main SPF record using the include directive.

example.com. IN TXT "v=spf1 include:_spf.aws.example.com -all"

In this example, the SPF record for example.com includes the SPF record for _spf.aws.example.com, which contains the IP addresses of AWS mail servers.

However, it is essential to be cautious when using the include mechanism, as it can lead to SPF record bloat. SPF record bloat occurs when an SPF record includes too many other SPF records, resulting in a large and complex record that can be difficult to manage. To avoid SPF record bloat, it is recommended to limit the number of includes in your SPF record to a maximum of 10.

Another important consideration when managing SPF records is the use of IP addresses versus CIDR blocks. IP addresses are specific addresses assigned to mail servers, while CIDR blocks are ranges of IP addresses. Using CIDR blocks can help to simplify your SPF record and reduce the risk of IP address typos. For example, instead of listing individual IP addresses like 192.0.2.1 and 192.0.2.2, you can use a CIDR block like 192.0.2.0/24.

example.com. IN TXT "v=spf1 ip4:192.0.2.0/24 -all"

In this example, the SPF record for example.com includes the CIDR block 192.0.2.0/24, which covers all IP addresses from 192.0.2.0 to 192.0.2.255.

In a hosted or managed setup, such as DMARC Engine, SPF record management is often automated, and the service provider handles the complexity of managing SPF records for multiple cloud providers. For instance, DMARC Engine can automatically generate and update SPF records based on the IP addresses of mail servers from different cloud providers. This can help to simplify the process of managing SPF records and reduce the risk of errors.

When it comes to troubleshooting SPF record issues, it is essential to use tools like SPF record checkers and DNS lookup tools. These tools can help you to identify issues with your SPF record, such as syntax errors or missing IP addresses. For example, you can use a tool like dig to check the SPF record for a domain:

dig +short txt example.com

This command will return the SPF record for example.com, which you can then check for errors or issues.

In addition to using tools, it is also essential to monitor your SPF record regularly to ensure that it is up-to-date and accurate. This can help to prevent issues with email deliverability and ensure that your emails are not blocked by spam filters. You can use a service like DMARC Engine to monitor your SPF record and receive alerts if there are any issues.

In terms of best practices, it is recommended to keep your SPF record as simple as possible, with a limited number of includes and IP addresses. You should also use a consistent naming convention for your SPF records and avoid using IP addresses that are not in use. Regularly monitoring your SPF record and updating it as needed can also help to prevent issues with email deliverability.

To illustrate the complexity of managing SPF records in a multi-cloud infrastructure, let's consider an example. Suppose you have a domain example.com that uses mail servers from AWS, Azure, and Google Cloud Platform (GCP). You need to create an SPF record that includes the IP addresses of mail servers from all three cloud providers.

example.com. IN TXT "v=spf1 include:_spf.aws.example.com include:_spf.azure.example.com include:_spf.gcp.example.com -all"

In this example, the SPF record for example.com includes the SPF records for _spf.aws.example.com, _spf.azure.example.com, and _spf.gcp.example.com, which contain the IP addresses of mail servers from AWS, Azure, and GCP, respectively.

However, this approach can lead to SPF record bloat, especially if each cloud provider has a large number of IP addresses. To avoid this, you can use a more granular approach, where you create separate SPF records for each cloud provider and then include them in your main SPF record.

_spf.aws.example.com. IN TXT "v=spf1 ip4:192.0.2.0/24 ip4:192.0.2.128/25 -all"
_spf.azure.example.com. IN TXT "v=spf1 ip4:203.0.113.0/24 ip4:203.0.113.128/25 -all"
_spf.gcp.example.com. IN TXT "v=spf1 ip4:198.51.100.0/24 ip4:198.51.100.128/25 -all"
example.com. IN TXT "v=spf1 include:_spf.aws.example.com include:_spf.azure.example.com include:_spf.gcp.example.com -all"

In this example, the SPF records for _spf.aws.example.com, _spf.azure.example.com, and _spf.gcp.example.com contain the IP addresses of mail servers from AWS, Azure, and GCP, respectively. The main SPF record for example.com includes these SPF records, resulting in a more granular and manageable approach.

In short, managing SPF records in a multi-cloud infrastructure requires careful planning and attention to detail. By using a consistent naming convention, limiting the number of includes, and using IP addresses or CIDR blocks, you can create an SPF record that is accurate and effective. Regular monitoring and updates are also crucial to ensure that your SPF record remains up-to-date and accurate, and to prevent issues with email deliverability.

Implementing DKIM Signing with Multiple Cloud Providers

Implementing DomainKeys Identified Mail (DKIM) signing in a multi-cloud infrastructure poses a unique set of challenges, primarily centred around key management, selector configuration, and ensuring consistent authentication across different cloud providers. When a sender operates in a multi-cloud environment, the complexity of managing DKIM keys, which are used to sign emails, increases significantly. Each cloud provider may have its own method for generating, storing, and managing DKIM keys, and integrating these methods seamlessly is crucial for maintaining a high level of email deliverability.

One of the first decisions a sender must make is how to organise DKIM keys across multiple cloud providers. A common approach is to use a single set of DKIM keys for all cloud providers, which simplifies key management but may introduce security risks if not properly managed. For example, if a private key is compromised in one cloud provider, the impact could be felt across all providers using that key. To mitigate this risk, it is advisable to use unique DKIM keys for each cloud provider, but this approach requires careful key management to avoid confusion and ensure that all keys are properly rotated and updated in DNS records.

To illustrate the complexity, consider a scenario where a sender uses Amazon Web Services (AWS) for marketing emails and Microsoft Azure for transactional emails. Each provider would ideally have its own DKIM key pair. The sender would need to generate a key pair for AWS and another for Azure, then publish the public keys in DNS as TXT records. For instance, the DKIM TXT record for the AWS key might look like this:

default._domainkey.example.com. IN TXT "v=DKIM1; k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCq4jLr7NzHS4x4bW0N9wPIpO6+HvwjK6o6SM6pBbzTBMQ8h0s+VtFzJ9NllZGK5zlO7rD4TXhNQvRJpTb6l5HJm9/5bE7YjNqX+TdmN7uS6UQJm2Nq9rM9rJm2Nq9rM9rJm2Nq9rM8BAQIDAQAB"

And similarly for Azure, with a different selector and public key.

In a hosted or managed setup, such as the one provided by DMARC Engine, the process of generating, managing, and rotating DKIM keys can be significantly streamlined. These services often provide automated tools for key generation, DNS record management, and even offer centralised key management solutions that can simplify the process of using unique keys across multiple cloud providers. For instance, DMARC Engine can automate the rotation of DKIM keys and ensure that the latest public keys are published in DNS, reducing the administrative burden on the sender.

Another critical aspect of DKIM signing in a multi-cloud environment is the configuration of selectors. Selectors are used to identify which DKIM key was used to sign an email, allowing receivers to verify the signature. In a multi-cloud setup, it is essential to use unique selectors for each cloud provider to ensure that emails can be correctly authenticated regardless of which provider they originate from. For example, a sender might use selector1 for AWS and selector2 for Azure, each pointing to a different DKIM key pair.

selector1._domainkey.example.com. IN TXT "v=DKIM1; k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC..."
selector2._domainkey.example.com. IN TXT "v=DKIM1; k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC..."

The use of unique selectors also facilitates the troubleshooting process. If authentication issues arise, being able to pinpoint which cloud provider and which DKIM key are involved can significantly reduce the time to resolve the problem.

In terms of best practices, it is recommended to implement a centralised logging and monitoring system to keep track of DKIM signing and verification successes and failures across all cloud providers. This can help in identifying issues early and taking corrective action before they impact email deliverability. Also, regular rotation of DKIM keys (e.g., every 3-6 months) is advisable to minimise the risk associated with key compromise.

Finally, when implementing DKIM signing with multiple cloud providers, it is crucial to test the setup thoroughly to ensure that emails sent from each provider are correctly signed and can be verified by receivers. This includes testing with major email providers like Gmail, Yahoo, and Outlook, as their handling of DKIM signatures can vary. Tools like DMARC Engine's diagnostic features can be invaluable in this process, offering insights into authentication outcomes and helping to identify configuration issues.

In short, implementing DKIM signing in a multi-cloud infrastructure requires careful planning, particularly around key management and selector configuration. By using unique DKIM keys for each cloud provider, implementing a robust key management strategy, and leveraging hosted or managed services where possible, senders can optimise their email authentication and improve deliverability across multiple cloud environments.

Aggregate Report Analysis for DMARC in Multi-Cloud Environments

Aggregate report analysis is a critical component of DMARC, providing senders with insights into their email authentication posture, helping identify potential issues, and guiding optimisation efforts. In multi-cloud environments, this analysis becomes even more complex due to the diversity of infrastructure and the potential for inconsistent reporting. At DMARC Engine, we manage DMARC, SPF, DKIM, MTA-STS, and BIMI for our customers, and our experience with aggregate reports has highlighted several key considerations for senders operating in multi-cloud setups.

One of the primary challenges in analysing aggregate reports in a multi-cloud environment is dealing with the volume and variability of data. Each cloud provider may generate reports in slightly different formats or at different intervals, making it difficult to centralise and standardise the analysis. For instance, a sender might use Amazon Web Services (AWS) for their main application, Google Cloud Platform (GCP) for analytics, and Microsoft Azure for storage. Each of these providers might report on DMARC compliance and failures in distinct ways, requiring the sender to either manually reconcile these reports or implement a custom solution for aggregation and analysis.

To illustrate this challenge, consider a scenario where a sender receives the following aggregate report from AWS:

{
 "report_metadata": {
 "org_name": "example.com",
 "email": "dmarc@example.com",
 "extra_contact_info": "https://example.com/dmarc",
 "report_id": "1234567890",
 "date_range": {
 "begin": "2023-01-01T00:00:00Z",
 "end": "2023-01-07T23:59:59Z"
 }
 },
 "policy_published": {
 "domain": "example.com",
 "adkim": "r",
 "aspf": "r",
 "p": "none",
 "sp": "none",
 "pct": "100"
 },
 "summary": {
 "total_messages": 1000,
 "total_pass_dkim": 800,
 "total_pass_spf": 900,
 "total_fail_dkim": 100,
 "total_fail_spf": 50,
 "total_dmarc_fail": 150
 }
}

Meanwhile, the report from GCP might look like this:

{
 "report": {
 "domain": "example.com",
 "dkim": {
 "pass": 700,
 "fail": 120
 },
 "spf": {
 "pass": 850,
 "fail": 70
 },
 "dmarc": {
 "fail": 180
 }
 },
 "date": "2023-01-07T23:59:59Z"
}

As shown, while both reports provide valuable information on DMARC compliance, they differ in structure and detail. The sender must decide how to consolidate this data to get a unified view of their email authentication performance across all cloud providers.

In our experience, a hosted or managed DMARC setup can significantly simplify this process by providing a centralised platform for report collection and analysis. Such platforms can automatically fetch reports from various sources, standardise the data, and offer detailed insights and recommendations for improvement. For example, DMARC Engine's platform allows customers to view their DMARC performance across different cloud providers in a single dashboard, making it easier to identify trends, detect issues, and optimise their email authentication configuration.

Another critical aspect of aggregate report analysis in multi-cloud environments is the handling of subdomains. Many organisations use subdomains for different departments or services, and each subdomain might have its own DMARC policy. Ensuring that all subdomains are properly configured and monitored is essential for maintaining a strong email authentication posture. This can be particularly challenging in multi-cloud setups, where subdomains might be hosted across different providers, each with its own set of DNS records and reporting mechanisms.

To manage subdomains effectively, we recommend implementing a consistent naming convention and organisational structure for DMARC policies across all subdomains. This could involve creating a template policy that can be easily replicated and customised for each subdomain, ensuring that all have a uniform level of protection. Also, using a managed DMARC service can help streamline the process of monitoring and updating policies for multiple subdomains, reducing the administrative burden and minimising the risk of misconfiguration.

The analysis of aggregate reports also plays a crucial role in identifying and mitigating phishing attacks. By examining the reports for signs of unauthorised email activity, such as unexpected DMARC failures from unknown sources, senders can quickly respond to potential security threats. In a multi-cloud environment, this requires not only the ability to collect and analyse reports from all cloud providers but also to integrate this analysis with broader security monitoring and incident response processes.

In practice, this might involve setting up alerts for unusual patterns in DMARC report data, such as a sudden increase in DMARC failures from a specific IP address or a spike in emails failing DKIM or SPF checks. These alerts can trigger further investigation and, if necessary, prompt actions to block malicious activity, update DNS records, or adjust DMARC policies to better protect the sender's domain.

In conclusion to this section, aggregate report analysis is a vital tool for optimising email authentication in multi-cloud environments. By centralising report collection, standardising data analysis, and implementing consistent policies across subdomains, senders can improve their DMARC posture, reduce the risk of phishing attacks, and enhance overall email deliverability. Whether through manual processes or the use of a hosted DMARC service, effective aggregate report analysis is essential for navigating the complexities of email authentication in today's multi-cloud world.

Operational Guidance for Configuring DMARC, SPF, and DKIM Records

Configuring DMARC, SPF, and DKIM records for senders with multi-cloud infrastructure requires careful planning and execution to ensure optimal email deliverability. One of the key challenges is managing the complexity of multiple cloud providers, each with their own set of requirements and limitations. For instance, when configuring DMARC records, it is essential to consider the organisational domain and all its subdomains, as well as any third-party services that may be sending emails on behalf of the organisation.

A typical DMARC record snippet may look like this:

_dmarc.example.com. IN TXT "v=DMARC1; p=reject; pct=100; rua=mailto:dmarc@example.com; ruf=mailto:dmarc@example.com; fo=1" 

In this example, the p parameter is set to reject, which means that any email that fails DMARC validation will be rejected by the receiving server. However, this setting may not be suitable for all organisations, particularly those that are still in the process of implementing DMARC. A more conservative approach may be to set the p parameter to none or quarantine, which allows for a more gradual rollout of DMARC.

When it comes to SPF records, the key challenge is ensuring that all IP addresses that are authorised to send emails on behalf of the organisation are included in the record. This can be particularly complex in multi-cloud environments, where there may be multiple IP addresses and domains to manage. For example, an SPF record snippet may look like this:

example.com. IN TXT "v=spf1 include:_spf.example.net include:_spf.example.io -all" 

In this example, the SPF record includes two external domains, _spf.example.net and _spf.example.io, which are authorised to send emails on behalf of example.com. However, the -all parameter at the end of the record means that any IP address that is not explicitly authorised will be rejected. This setting can help to prevent spam and phishing attacks, but it requires careful management to ensure that all legitimate email sources are included.

DKIM signing is another critical component of email authentication, and it requires careful configuration to ensure that emails are properly signed and verified. A typical DKIM record snippet may look like this:

default._domainkey.example.com. IN TXT "v=DKIM1; k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC+ycg5s4+Xt0+4mV4S9Vk3144QMM5E+Gk2+3Vv6mKxJ5K+9xvWq/1nGw0Oi3+2U7mK7YjZ8TwUM2+2XKf1Qj3wNw1gW7K6x7l4N9T1m0K+G8wQhV4L1j2GwT4QJ2QJ3QJ4QJ5QJ6QJ7QJ8QJ9QK9QK+G8wQK+G8wQK+G8" 

In this example, the DKIM record includes the public key that is used to verify the signature of outgoing emails. However, the private key that is used to sign the emails must be carefully managed to ensure that it is not compromised. This requires a high level of security and access controls, particularly in multi-cloud environments where there may be multiple parties involved in email sending and receiving.

In a hosted or managed setup, the configuration of DMARC, SPF, and DKIM records is typically handled by the service provider. For example, DMARC Engine provides a managed service that includes the configuration and management of DMARC, SPF, and DKIM records, as well as the analysis of aggregate reports and the provision of feedback to senders. This can help to simplify the process of email authentication and reduce the risk of errors or misconfiguration. However, it is still essential for senders to understand the underlying configuration and management of email authentication records, particularly in multi-cloud environments where there may be multiple providers and services involved.

One of the key trade-offs in configuring DMARC, SPF, and DKIM records is between security and deliverability. For example, setting the p parameter to reject in a DMARC record can help to prevent spam and phishing attacks, but it may also block legitimate emails that fail DMARC validation. Similarly, including multiple external domains in an SPF record can help to ensure that all legitimate email sources are authorised, but it may also increase the risk of spam and phishing attacks. To manage this trade-off, senders must carefully monitor and analyse their email authentication data, including aggregate reports and feedback from receivers. This can help to identify areas for improvement and optimise the configuration of DMARC, SPF, and DKIM records for optimal email deliverability.

In terms of operational guidance, it is essential to have a clear and well-defined process for configuring and managing DMARC, SPF, and DKIM records. This should include regular monitoring and analysis of email authentication data, as well as feedback from receivers and other stakeholders. It is also essential to have a robust security and access control framework in place, particularly for DKIM private keys and other sensitive information. By following these best practices and guidelines, senders can help to ensure optimal email deliverability and reduce the risk of errors or misconfiguration in multi-cloud environments.

For example, a sender may use a combination of automated tools and manual processes to configure and manage their DMARC, SPF, and DKIM records. This may include using a managed service provider like DMARC Engine to handle the configuration and management of records, as well as using automated tools to monitor and analyse email authentication data. The sender may also use manual processes to review and update their records on a regular basis, particularly in response to changes in their email sending infrastructure or security requirements.

In addition to these operational guidelines, it is also essential to consider the centre of excellence for email authentication, which includes the development of best practices and guidelines for configuring and managing DMARC, SPF, and DKIM records. This may include the use of industry-recognised standards and frameworks, such as the DMARC specification and the SPF protocol, as well as the development of custom guidelines and procedures that are tailored to the specific needs and requirements of the organisation. By following these best practices and guidelines, senders can help to ensure optimal email deliverability and reduce the risk of errors or misconfiguration in multi-cloud environments.

In terms of colour coding and organisational systems, it is essential to have a clear and well-defined system for categorising and prioritising email authentication data. This may include the use of colour codes or other visual indicators to highlight areas of risk or concern, as well as the development of custom dashboards and reports that provide real-time visibility into email authentication performance. For example, a sender may use a colour-coded system to categorise their email authentication data, with green indicating optimal performance, yellow indicating caution, and red indicating areas of risk or concern. By using this system, the sender can quickly and easily identify areas for improvement and optimise their email authentication configuration for optimal deliverability.

Overall, configuring DMARC, SPF, and DKIM records for senders with multi-cloud infrastructure requires careful planning and execution, as well as a deep understanding of the underlying technology and protocols. By following these operational guidelines and best practices, senders can help to ensure optimal email deliverability and reduce the risk of errors or misconfiguration in multi-cloud environments. This includes having a clear and well-defined process for configuring and managing records, using a combination of automated tools and manual processes, and considering the centre of excellence for email authentication. It also includes using colour coding and organisational systems to categorise and prioritise email authentication data, and developing custom guidelines and procedures that are tailored to the specific needs and requirements of the organisation.

Troubleshooting Common Email Authentication Issues in Multi-Cloud Setups

Troubleshooting email authentication issues in a multi-cloud setup can be a complex task, requiring a deep understanding of the interactions between different cloud providers, email authentication protocols, and the organisation's email infrastructure. At DMARC Engine, we have encountered a variety of issues that can arise in these setups, and we will discuss some of the most common problems and their solutions in this section.

One of the most common issues we see is misconfigured SPF records. For example, a customer may have an SPF record that includes multiple cloud providers, but the record is not properly formatted, leading to authentication failures. A typical example of this is an SPF record that looks like this:

v=spf1 include:_spf.google.com include:_spf.amazon.com include:_spf.microsoft.com -all

This record includes the SPF records for Google, Amazon, and Microsoft, but it does not account for the fact that each of these providers has its own set of IP addresses that need to be included in the record. A better approach would be to use a record like this:

v=spf1 include:_spf.google.com ip4:35.201.128.0/20 ip4:52.95.128.0/20 ip4:13.107.128.0/20 -all

This record includes the specific IP addresses for each cloud provider, which helps to prevent authentication failures.

Another common issue is DKIM signing errors. DKIM signing is a complex process that involves generating a digital signature for each email message, and this signature must be verified by the receiving mail server. If the DKIM signing process is not properly configured, the signature may not be valid, leading to authentication failures. For example, a customer may be using a third-party email service to send emails, but the service is not properly configured to sign emails with the customer's domain key. This can lead to a situation where the emails are being signed with the wrong domain key, causing authentication failures.

To troubleshoot DKIM signing errors, we typically start by checking the email headers to see if the DKIM signature is present and if it is valid. We can do this by looking for the DKIM-Signature header in the email message. For example:

DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=example.com; s=selector;
 h=from:to:subject:date:mime-version:content-type;
 bh=...; b=...

If the DKIM signature is present and valid, we then check the DNS records to ensure that the domain key is properly configured. This involves checking the TXT record for the domain key, which should look something like this:

selector._domainkey.example.com. IN TXT "v=DKIM1; k=rsa; p=..."

If the domain key is not properly configured, we work with the customer to update the DNS records and ensure that the DKIM signing process is working correctly.

DMARC-related issues are also common in multi-cloud setups. DMARC is a protocol that allows domain owners to specify which email authentication protocols are being used to send emails on their behalf, and it provides a way for receiving mail servers to report back to the domain owner about any authentication failures. However, if the DMARC record is not properly configured, it can lead to authentication failures and deliverability issues. For example, a customer may have a DMARC record that looks like this:

v=DMARC1; p=none; pct=100; rua=mailto:example@example.com

This record specifies that the domain owner wants to receive aggregate reports about any authentication failures, but it does not specify which email authentication protocols are being used to send emails on their behalf. A better approach would be to use a record like this:

v=DMARC1; p=quarantine; pct=100; rua=mailto:example@example.com; sp=quarantine; adkim=r; aspf=r

This record specifies that the domain owner wants to quarantine any emails that fail authentication, and it also specifies which email authentication protocols are being used to send emails on their behalf.

In a hosted or managed setup, such as the one provided by DMARC Engine, these issues can be mitigated through the use of automated tools and expert guidance. For example, our platform provides a range of tools and features that can help customers to troubleshoot email authentication issues, including SPF and DKIM record generators, DMARC record analysers, and automated reporting and alerting systems. Our team of experts also works closely with customers to ensure that their email authentication setup is properly configured and that any issues are quickly identified and resolved.

In addition to these tools and features, we also provide guidance on best practices for email authentication in multi-cloud setups. For example, we recommend that customers use a unified DMARC strategy across all of their cloud providers, and that they implement DKIM signing and SPF records for each domain. We also recommend that customers regularly monitor their email authentication setup and make adjustments as needed to ensure that it remains secure and effective.

Overall, troubleshooting email authentication issues in multi-cloud setups requires a deep understanding of the interactions between different cloud providers, email authentication protocols, and the organisation's email infrastructure. By using the right tools and features, and by following best practices for email authentication, organisations can help to ensure that their emails are properly authenticated and delivered to the intended recipient. At DMARC Engine, we are committed to helping our customers to navigate the complex world of email authentication and to ensure that their emails are always properly authenticated and delivered.

In terms of specific recommendations, we suggest that organisations start by reviewing their email authentication setup and identifying any potential issues or vulnerabilities. This can involve checking SPF and DKIM records, reviewing DMARC reports, and testing email authentication protocols. We also recommend that organisations implement a unified DMARC strategy across all of their cloud providers, and that they use automated tools and expert guidance to help troubleshoot any issues that may arise. By taking a proactive and comprehensive approach to email authentication, organisations can help to ensure that their emails are always properly authenticated and delivered, and that they are able to maintain a high level of email deliverability and security.

It is also worth noting that email authentication is an ongoing process that requires regular monitoring and maintenance. Organisations should regularly review their email authentication setup and make adjustments as needed to ensure that it remains secure and effective. This can involve updating SPF and DKIM records, reviewing DMARC reports, and testing email authentication protocols. By staying on top of email authentication and making adjustments as needed, organisations can help to ensure that their emails are always properly authenticated and delivered, and that they are able to maintain a high level of email deliverability and security.

At DMARC Engine, we are committed to helping our customers to navigate the complex world of email authentication and to ensure that their emails are always properly authenticated and delivered. Our team of experts has years of experience in email authentication and deliverability, and we are dedicated to providing the highest level of service and support to our customers. Whether you are just starting to implement email authentication or you are looking to optimise your existing setup, we are here to help.

Optimising Email Deliverability Through Continuous Monitoring and Feedback

To centre email authentication efforts around deliverability, organisations must adopt a mindset of continuous monitoring and feedback. This involves regularly reviewing aggregate reports, such as those provided via DMARC's Aggregate Reporting (RUA) mechanism, to identify trends, issues, and areas for improvement. At DMARC Engine, we have seen firsthand the colour of email authentication data, with its nuances and complexities, and the importance of staying on top of it to optimise deliverability.

A key aspect of this process is understanding the feedback loop that DMARC provides. By analysing RUA reports, senders can gain insights into how their emails are being authenticated and delivered across different providers. For example, a sender might notice a high rate of SPF failures from a particular IP range, indicating a potential misconfiguration in their SPF record. This could be due to a recent change in their infrastructure, such as the addition of a new cloud provider, which has not been properly accounted for in their SPF setup.

{
 "org_name": "example.com",
 "date_range": {
 "start": "2023-02-01T00:00:00Z",
 "end": "2023-02-28T23:59:59Z"
 },
 "records": [
 {
 "row": {
 "source_ip": "192.0.2.1",
 "count": 100,
 "disposition": "none",
 "dkim": "pass",
 "spf": "fail"
 }
 }
 ]
}

In this example, the RUA report snippet shows an SPF failure for emails sent from the IP address 192.0.2.1. To address this, the sender would need to update their SPF record to include this IP range. In a hosted or managed setup, such as DMARC Engine, this process can be streamlined through automated SPF record management tools that help identify and add missing IP ranges.

Continuous monitoring also involves keeping a close eye on DKIM signing practices. With multiple cloud providers, ensuring consistent DKIM signing across all sending infrastructure is crucial. A common issue we see is inconsistent selector usage, where different providers use different selectors, leading to authentication failures. To mitigate this, organisations should standardise on a single DKIM selector across their infrastructure, making it easier to manage and rotate keys as needed.

default._domainkey.example.com. IN TXT "v=DKIM1; k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCq6xU5UvCj0v4cxrT4sHqG" "vXuF9TbZp7bHcY3fG0ZKU9T5zjzV9T5zjzV9T5zjzV9T5zjzV9T"

In this DKIM record example, the selector is default, and the public key is specified. By using a consistent selector and key management practice, organisations can simplify their DKIM setup and reduce the risk of authentication issues.

Another critical aspect of continuous monitoring is tracking DMARC disposition trends. By analysing the disposition of emails (e.g., none, quarantine, reject), senders can identify potential issues with their authentication setup. For instance, a sudden increase in reject dispositions might indicate a problem with DKIM signing or SPF alignment. In response, the sender could adjust their DMARC policy to a more permissive setting temporarily while they investigate and resolve the issue.

To optimise email deliverability, it's also essential to consider the impact of BIMI (Brand Indicators for Message Identification) on the authentication landscape. As BIMI adoption grows, organisations should ensure their logos are correctly configured and that their DMARC setup supports BIMI. This involves verifying that the BIMI logo is properly linked to the organisation's domain and that DMARC records are correctly configured to support BIMI.

In a multi-cloud infrastructure, managing MTA-STS (Mail Transfer Agent Strict Transport Security) can also be complex. MTA-STS helps ensure that emails are delivered over encrypted channels, which is critical for preventing eavesdropping and tampering. However, with multiple cloud providers, ensuring consistent MTA-STS policies can be challenging. Organisations should aim to standardise their MTA-STS setup across all providers, ensuring that all emails are delivered securely.

To streamline these efforts, organisations can leverage automation and orchestration tools. For example, automated scripts can help monitor RUA reports, detect issues, and trigger updates to SPF or DKIM records as needed. Also, integrating email authentication management with existing security information and event management (SIEM) systems can provide a more comprehensive view of email security and deliverability.

In our experience, one of the most significant challenges in optimising email deliverability is balancing security with deliverability. Overly restrictive DMARC policies can lead to legitimate emails being blocked, while too permissive policies can leave organisations vulnerable to spoofing. To navigate this trade-off, organisations should continuously monitor their email authentication data and adjust their policies accordingly. This might involve temporarily relaxing DMARC policies during periods of high email volume or adjusting SPF and DKIM configurations to better align with changing infrastructure needs.

Ultimately, optimising email deliverability through continuous monitoring and feedback requires a deep understanding of the complex interplay between DMARC, SPF, DKIM, and other email authentication protocols. By staying attuned to the nuances of email authentication data and leveraging automation and orchestration tools, organisations can improve their email deliverability and better protect their brand and users from email-based threats. At DMARC Engine, we have seen the benefits of this approach firsthand, and we recommend that all organisations prioritise continuous monitoring and feedback as a core part of their email authentication strategy.

Share

See where your domain stands today

Run a free DMARC scan, then let us take you to enforced p=reject with no email outage.