SPF record for domain won't verify for custom Email domain

Martin Haug 36 Reputation points
2022-07-17T09:17:27.49+00:00

Hello,
I'm trying to add a custom Email domain to Azure Communication Services. The domain verification using the TXT DNS record was successful.

However, because I need the sent mails to be DKIM and SPF authenticated, I also started adding those records.
This domain has a preexisting SPF record, let's say v=spf1 include:spf.service1.com include:servers.service2.com -all.
After modifying it to include Azure's SPF listing, it now reads as v=spf1 include:spf.protection.outlook.com include:spf.service1.com include:servers.service2.com -all.

Azure does not seem to be able to successfully verify this record. The dashboard is stuck saying "Verification in progress" for SPF for days now, even though DKIM validation worked just fine.

What can I do to fix this? Is there anything I'm missing?

Azure Communication Services
Azure Communication Services
An Azure communication platform for deploying applications across devices and platforms.
675 questions
{count} vote

Accepted answer
  1. Ebraheem Al-Muneyeer (MSFT) 951 Reputation points Microsoft Employee
    2022-07-24T09:36:53.083+00:00

    Hi @Martin Haug , I'm sorry for any inconvenience happened because of this.

    As you know Email Service is still in public preview which means that it is not recommended for production workloads and certain capabilities might not be supported or might have constrained.

    That said, currently, you can have only 1 SPF value and verification will fail if you have many. The product group is working on this to have a better experience with a such scenario.

    At the moment you can try to have only 1 SPF value, and after the verification is done, you can add the others (Note: This workaround will be working now but not in the future, as we are working on periodic verification too)


2 additional answers

Sort by: Most helpful
  1. ajkuma 22,086 Reputation points Microsoft Employee
    2022-07-21T19:10:12.907+00:00

    @Martin Haug , Following-up after my discussions with ACS product engineering team, currently, we do not support multiple SPF records. They have a work item to track this, the fix will be rolled out in next couple of weeks.

    Note: Please note that this timeline is just an estimate and is subject to change, depending on a myriad of factors. I will keep you posted as soon as I have more updates.

    Thanks for your patience and cooperation!

    If your requirement fits, as a temporary alternate solution, you may add only our SPF, verify domain and then update the SPF record to include your other IP as well. (this workaround may not work in future).

    1 person found this answer helpful.

  2. Rodrigues,Diego 5 Reputation points
    2023-07-26T15:04:16.3133333+00:00

    What worked for us just now was changing from ~all to -all temporarily to get it verified.

    1 person found this answer helpful.