Custom domains multiple from addresses

wstaelens 36 Reputation points
2023-04-13T10:26:12.2033333+00:00

We have a B2C application where users/companies can sign in and do several things. One of them is sending out invoices.

Currently these go via the noreply@ourcustomdomain.com If a customer wants to use their own "from" account" like "billing@clientXYZdomain.com" to send emails in our application (using our azure email communication service).

  1. Can multiple custom domains be added to a single Azure Email Communication Service ? If this is possible:
  2. From our side: do we just need to add it via this method: https://learn.microsoft.com/en-us/azure/communication-services/quickstarts/email/add-custom-verified-domains
    and pass the DNS record info to the customer, in order to verify the domain?
  3. Does anything else need to happen?
  4. Can this be automated via code?
Azure Communication Services
Azure Communication Services
An Azure communication platform for deploying applications across devices and platforms.
684 questions
{count} votes

Accepted answer
  1. Grmacjon-MSFT 16,186 Reputation points
    2023-04-18T15:10:57.83+00:00

    Hi @wstaelens ,

    Thanks for your patience.

    1. Yes, multiple custom domains can be added to a single Email Communication Service (ECS) but only one of those domains can be linked to a Single Communication Service (CS) at a time which is the resource used to send email.
    2. Yes, the steps described in the link you shared would let you add custom domains. And yes, the DNS records for verification would needed to be passed onto the domain owner, in order to verify the domain and configure the email auth mechanisms.
    3. Apart from adding a custom domain under the ECS resource, this custom domain will need to be connected to an ACS resource. Steps for this are available here - How to connect a verified email domain with Azure Communication Service resource - An Azure Communication Services quick start guide | Microsoft Learn
    4. Yes. All the above steps can be automated by using the Azure management SDK, CLI commands or REST API requests.
      1. For management SDK refer to the links next to Azure Resource Manager in the table here - Reference documentation overview for Azure Communication Services - An Azure Communication Services concept document | Microsoft Learn
      2. For CLI reference - az communication | Microsoft Learn
      3. For REST API - Domains - REST API (Azure Communication) | Microsoft Learn

    Hope that helps. Please let us know if you have further questions.

    Best,

    -Grace


0 additional answers

Sort by: Most helpful