---
title: "Resolving custom domain configuration issues for Azure Email Communication | AutoSPF"
description: "It’s important to properly configure your domains so that email deliverability is not hampered."
image: "https://autospf.com/og/blog/resolving-custom-domain-configuration-issues-for-azure-email-communication.png"
canonical: "https://autospf.com/blog/resolving-custom-domain-configuration-issues-for-azure-email-communication/"
---

Quick Answer

It’s important to properly configure your domains so that email deliverability is not hampered. If your emails are marked as spam or rejected, the recipient will not receive your message in their inbox. With correctly configured SPF and DKIM records comes the trust within recipients that they have received the email from a genuine sender and not a spoofer.

Share 

[ ](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fautospf.com%2Fblog%2Fresolving-custom-domain-configuration-issues-for-azure-email-communication%2F "Share on LinkedIn") [ ](https://twitter.com/intent/tweet?text=Resolving%20custom%20domain%20configuration%20issues%20for%20Azure%20Email%20Communication&url=https%3A%2F%2Fautospf.com%2Fblog%2Fresolving-custom-domain-configuration-issues-for-azure-email-communication%2F "Share on X/Twitter") [ ](https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fautospf.com%2Fblog%2Fresolving-custom-domain-configuration-issues-for-azure-email-communication%2F "Share on Facebook") [ ](https://reddit.com/submit?url=https%3A%2F%2Fautospf.com%2Fblog%2Fresolving-custom-domain-configuration-issues-for-azure-email-communication%2F&title=Resolving%20custom%20domain%20configuration%20issues%20for%20Azure%20Email%20Communication "Share on Reddit") [ ](mailto:?subject=Resolving%20custom%20domain%20configuration%20issues%20for%20Azure%20Email%20Communication&body=Check out this article: https%3A%2F%2Fautospf.com%2Fblog%2Fresolving-custom-domain-configuration-issues-for-azure-email-communication%2F "Share via Email") 

![Email Communication](https://media.mailhop.org/autospf/images/2024/10/spf-record-office-365-5716.jpg) 

It’s important to properly configure your domains so that [email deliverability](/blog/how-does-spf-help-marketers-in-improving-email-deliverability/) is not hampered. If your emails are [marked as spam](https://pressgazette.co.uk/publishers/digital-journalism/facebook-spam-posts-independent-small-news-publishers/) or rejected, the recipient will not receive your message in their inbox. With correctly configured [SPF](/blog/what-is-spf-email-a-guide-to-sender-validation-technology/?%5Fgl=1%2Ae2zmm%2A%5Fup%2AMQ..%2A%5Fga%2ANzAyNzE3MjY0LjE3MjQyNDU2MzM.%2A%5Fga%5F5J0R8M01Y5%2AMTcyNDI0NTYzMy4xLjAuMTcyNDI0NTYzMy4wLjAuMA..) and DKIM records comes the trust within recipients that they have received the email from a genuine sender and not a spoofer. Moreover, you can’t afford to be non-compliant with industry regulations regarding [email communications](https://writingcenter.unc.edu/tips-and-tools/effective-e-mail-communication/). 

Ensuring consistency and reliability of email communication is part of providing your customers and prospects with great services. Hence, fixing custom [domain configuration](https://help.lofty.com/hc/en-us/articles/360054554712-Domain-Configuration-Guide) problems helps you better track and analyze your [email campaigns](https://www.campaignmonitor.com/resources/glossary/email-campaign/). This enhances the overall user experience, ensuring that customers receive important communications without interruptions or delays.

![email Campaigns](https://media.mailhop.org/autospf/images/2024/10/spf-permerror-3.jpg) 

So, let’s figure out how to go about it.

## 1\. Unable to verify custom domain status

Verify the ownership of your custom domain by adding a [TXT record](https://en.wikipedia.org/wiki/TXT%5Frecord) to your domain’s DNS hosting provider. When the verification starts, [Azure Email Communication Service](https://luke.geek.nz/azure/azure-email-communication-services/) tries to read the TXT record from your custom domain. If it can’t read the TXT record, the verification fails.

However, if the verification process fails, you need to perform the following steps to detect and fix the underlying problems-

- Copy the suggested TXT record from the Azure portal. It will look something like this:

```
`ms-domain-verification=43d01b7e-996b-4e31-8159-f10119c2087a`
```

- If you haven’t added the TXT record yet, do so through your domain registrar or [DNS hosting provider](https://constellix.com/news/choosing-a-dns-hosting-provider-best-practices).
- After adding the TXT record, check your domain’s TXT records.
- To check, use the nslookup tool in Windows CMD with this command: \`nslookup -q=TXT YourCustomDomain.com.\` You can also use a [third-party](https://www.investopedia.com/terms/t/third-party.asp) DNS lookup tool like MxToolBox.
- Review the list of TXT records for your [custom domain](https://hostadvice.com/blog/domains/custom-domain/). If you don’t see the TXT record, Azure Email Communication Service won’t be able to verify your domain.

## 2\. Failing to verify SPF status

After verifying your domain, you also need to check the Sender Policy Framework (SPF) and DomainKeys Identified Mail (DKIM) records. If your SPF status is failing, follow these steps:

- Copy your [SPF record](/spf-record-checker/create-spf-record/) from the Azure portal. It should look like this: \`v=spf1 include:spf.protection.outlook.com -all\`
- _Check the TXT records for your domain. If you don’t see your SPF record, Azure Email Communication Service can’t verify it._
- Ensure your SPF record contains \`-all\` instead of \`\~all\`. If it has \`\~all\`, SPF verification will fail.
- Add the SPF record to your domain registrar or DNS hosting provider.
- After adding the SPF record, check it using one of these methods:
- Use the nslookup tool in Windows CMD with the command: \`nslookup -q=TXT YourCustomDomain.com.\` Alternatively, you can use a third-party [DNS lookup](https://www.digicert.com/faq/dns/how-does-dns-lookup-work) tool.

## 3\. Failing to verify DKIM status

If Azure Email Communication Service fails to verify [DKIM](/10-reasons-for-regular-spf-record-checks-in-cybersecurity/dkim-record-check/), follow these steps:

- Open your command prompt and run \`nslookup\`
- Then type: \`set q=TXT\`
- For DKIM issues, use ‘selector1’

```
 `selector1-azurecomm-prod-net._domainkey.contoso.com`  
```

This command will return the CNAME DKIM records for your domain. If you see your DKIM records in the output, Azure Email Communication Service should verify the status.

![email security](https://media.mailhop.org/autospf/images/2024/10/multiple-spf-records-9624.jpg) 

If the records are missing, Azure Email Communication Service cannot verify DKIM. Failing to verify DKIM status and neglecting the use of [automatic SPF flattening tools](/) can compromise [email security](/spf-validation-failed-meaning-and-troubleshooting-methods/exchange-spf-check/), increasing the risk of spoofing and delivery failures.

## Topics

[ DKIM ](/tags/dkim/)[ DKIM record ](/tags/dkim-record/)[ email security ](/tags/email-security/)[ SPF ](/tags/spf/)[ SPF Flattening tool ](/tags/spf-flattening-tool/)[ SPF record ](/tags/spf-record/) 

![Brad Slavin](https://media.mailhop.org/autospf/images/authors/brad-slavin.jpg) 

[ Brad Slavin ](/authors/brad-slavin/) 

General Manager

Founder and General Manager of DuoCircle. Product strategy and commercial lead for AutoSPF's 2,000+ customer base.

[LinkedIn Profile →](https://www.linkedin.com/in/bradslavin) 

## Ready to get started?

Try AutoSPF free — no credit card required.

[ Book a Demo ](/book-a-demo/) 

## Related Articles

[  Advanced 10m  AutoSPF’s Guide to Configuring SPF & DKIM for Avanan: A Detailed Walk-through  Nov 26, 2025 ](/blog/autospf-guide-configuring-spf-dkim-for-avanan-detailed-setup-walkthrough/)[  Advanced 6m  Does SPF play a significant role in BIMI and VMC?  Apr 30, 2025 ](/blog/does-spf-play-a-significant-role-in-bimi-and-vmc/)[  Advanced 4m  How do cybercriminals use neglected domains to evade SPF and DMARC protections?  Jul 30, 2025 ](/blog/how-cybercriminals-use-neglected-domains-evade-spf-dmarc-protection/)[  Advanced 24m  Best DNS Security Tools for Email in 2026 SPF, DKIM & DMARC Management Compared  Apr 28, 2026 ](/blog/best-dns-security-tools-email-2026-spf-dkim-dmarc-compared/)

```json
{"@context":"https://schema.org","@type":"Organization","@id":"https://www.wikidata.org/wiki/Q138897474","name":"AutoSPF","url":"https://autospf.com","logo":{"@type":"ImageObject","url":"https://autospf.com/images/autospf-logo.png"},"description":"Automatic SPF flattening and email authentication management. Resolve SPF lookup limits, flatten SPF records, and maintain email deliverability across all your domains.","parentOrganization":{"@type":"Organization","@id":"https://www.wikidata.org/wiki/Q138883901","name":"DuoCircle LLC","url":"https://www.duocircle.com","sameAs":["https://www.wikidata.org/wiki/Q138883901","https://www.crunchbase.com/organization/duocircle-llc","https://www.linkedin.com/company/duocircle","https://github.com/duocircle"],"subOrganization":[{"@type":"Organization","@id":"https://www.wikidata.org/wiki/Q138898167","name":"DMARC Report","url":"https://dmarcreport.com"},{"@type":"Organization","@id":"https://www.wikidata.org/wiki/Q138897474","name":"AutoSPF","url":"https://autospf.com"},{"@type":"Organization","@id":"https://www.wikidata.org/wiki/Q138897912","name":"Phish Protection","url":"https://www.phishprotection.com"}]},"sameAs":["https://www.wikidata.org/wiki/Q138897474","https://www.linkedin.com/company/autospf","https://x.com/autospf01","https://www.g2.com/products/autospf/reviews"],"contactPoint":{"@type":"ContactPoint","contactType":"customer support","url":"https://autospf.com/contact-us/"},"knowsAbout":["SPF Record Flattening","Sender Policy Framework","Email Authentication","DNS Management","DMARC","DKIM"]}
```

```json
{"@context":"https://schema.org","@type":"WebSite","name":"AutoSPF","url":"https://autospf.com","description":"Automatic SPF flattening and email authentication management. Resolve SPF lookup limits, flatten SPF records, and maintain email deliverability across all your domains.","publisher":{"@type":"Organization","name":"AutoSPF","url":"https://autospf.com","logo":{"@type":"ImageObject","url":"https://autospf.com/images/autospf-logo.png"},"description":"Automatic SPF flattening and email authentication management. Resolve SPF lookup limits, flatten SPF records, and maintain email deliverability across all your domains.","parentOrganization":{"@type":"Organization","@id":"https://www.wikidata.org/wiki/Q138883901","name":"DuoCircle LLC","url":"https://www.duocircle.com","sameAs":["https://www.wikidata.org/wiki/Q138883901","https://www.crunchbase.com/organization/duocircle-llc","https://www.linkedin.com/company/duocircle","https://github.com/duocircle"],"subOrganization":[{"@type":"Organization","@id":"https://www.wikidata.org/wiki/Q138898167","name":"DMARC Report","url":"https://dmarcreport.com"},{"@type":"Organization","@id":"https://www.wikidata.org/wiki/Q138897474","name":"AutoSPF","url":"https://autospf.com"},{"@type":"Organization","@id":"https://www.wikidata.org/wiki/Q138897912","name":"Phish Protection","url":"https://www.phishprotection.com"}]}}}
```

```json
{"@context":"https://schema.org","@type":"BlogPosting","headline":"Resolving custom domain configuration issues for Azure Email Communication","description":"It’s important to properly configure your domains so that email deliverability is not hampered.","url":"https://autospf.com/blog/resolving-custom-domain-configuration-issues-for-azure-email-communication/","datePublished":"2024-10-23T15:35:13.000Z","dateModified":"2026-04-18T02:36:41.000Z","dateCreated":"2024-10-23T15:35:13.000Z","author":{"@type":"Person","@id":"https://autospf.com/authors/brad-slavin/#person","name":"Brad Slavin","url":"https://autospf.com/authors/brad-slavin/","jobTitle":"General Manager","description":"Brad Slavin is the founder and General Manager of DuoCircle, the company behind AutoSPF, DMARC Report, Phish Protection, and Mailhop. He founded DuoCircle in 2014 to solve the SPF 10-DNS-lookup problem at scale and has led the company's growth to 2,000+ customers. Brad's focus is product strategy, customer relationships, and the commercial and compliance side of email authentication (DPAs, SLAs, enterprise procurement) rather than hands-on DNS engineering.","image":"https://media.mailhop.org/autospf/images/authors/brad-slavin.jpg","knowsAbout":["Email Security Strategy","SaaS Product Management","Enterprise Compliance","Customer Success","Email Deliverability Business"],"worksFor":{"@type":"Organization","name":"AutoSPF","url":"https://autospf.com"},"sameAs":["https://www.linkedin.com/in/bradslavin"]},"publisher":{"@type":"Organization","@id":"https://www.wikidata.org/wiki/Q138897474","name":"AutoSPF","url":"https://autospf.com","logo":{"@type":"ImageObject","url":"https://autospf.com/images/autospf-logo.png"},"description":"Automatic SPF flattening and email authentication management. Resolve SPF lookup limits, flatten SPF records, and maintain email deliverability across all your domains.","parentOrganization":{"@type":"Organization","@id":"https://www.wikidata.org/wiki/Q138883901","name":"DuoCircle LLC","url":"https://www.duocircle.com","sameAs":["https://www.wikidata.org/wiki/Q138883901","https://www.crunchbase.com/organization/duocircle-llc","https://www.linkedin.com/company/duocircle","https://github.com/duocircle"],"subOrganization":[{"@type":"Organization","@id":"https://www.wikidata.org/wiki/Q138898167","name":"DMARC Report","url":"https://dmarcreport.com"},{"@type":"Organization","@id":"https://www.wikidata.org/wiki/Q138897474","name":"AutoSPF","url":"https://autospf.com"},{"@type":"Organization","@id":"https://www.wikidata.org/wiki/Q138897912","name":"Phish Protection","url":"https://www.phishprotection.com"}]},"sameAs":["https://www.wikidata.org/wiki/Q138897474","https://www.linkedin.com/company/autospf","https://x.com/autospf01","https://www.g2.com/products/autospf/reviews"],"contactPoint":{"@type":"ContactPoint","contactType":"customer support","url":"https://autospf.com/contact-us/"},"knowsAbout":["SPF Record Flattening","Sender Policy Framework","Email Authentication","DNS Management","DMARC","DKIM"]},"mainEntityOfPage":{"@type":"WebPage","@id":"https://autospf.com/blog/resolving-custom-domain-configuration-issues-for-azure-email-communication/"},"articleSection":"advanced","keywords":"DKIM, DKIM record, email security, SPF, SPF Flattening tool, SPF record","wordCount":537,"image":{"@type":"ImageObject","url":"https://media.mailhop.org/autospf/images/2024/10/spf-record-office-365-5716.jpg","caption":"Email Communication","width":900,"height":600},"speakable":{"@type":"SpeakableSpecification","cssSelector":[".answer-block","h1"]}}
```

```json
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://autospf.com/"},{"@type":"ListItem","position":2,"name":"Blog","item":"https://autospf.com/blog/"},{"@type":"ListItem","position":3,"name":"Advanced","item":"https://autospf.com/advanced/"},{"@type":"ListItem","position":4,"name":"Resolving custom domain configuration issues for Azure Email Communication","item":"https://autospf.com/blog/resolving-custom-domain-configuration-issues-for-azure-email-communication/"}]}
```
