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.
892 questions
{count} vote

Accepted answer
  1. Ebraheem Al-Muneyeer (MSFT) 956 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)

    1 person found this answer helpful.

3 additional answers

Sort by: Most helpful
  1. Rodrigues,Diego 10 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.

    2 people found this answer helpful.

  2. ajkuma 26,471 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.

  3. Matheus Schreiber 0 Reputation points
    2024-10-18T01:27:25.1366667+00:00

    Still faced the same problem after 2 years :\
    Basically, I just did what @Ebraheem Al-Muneyeer (MSFT) said.

    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)

    I did it recently though, maybe this "periodic verifciation" is still coming and this answer its just useless.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.