web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested Answer

Dynamics 365 Marketing forms subdomain authentication (CNAME setup)

(0) ShareShare
ReportReport
Posted on by 5

Hello,

Trying to authenticate a subdomain so that I can embed a marketing form by following the instructions on Microsoft Docs
docs.microsoft.com/.../mkt-settings-authenticate-domains
However it's not clear what I should be doing for a subdomain.

Using the example, I already have the domain 'contoso.com' authenticated for both email & forms on the Marketing Authenticated Domains.
However I will be hosting the marketing form on 'promo.contoso.com'.
Should I create an entry for 'promo.contoso.com' or for 'promo'?

To add to that, I have a CNAME setup for 'promo.contoso.com', so there is already a CNAME record on my domain registrar's DNS with the 'promo.contoso.com' host so it's not letting me add the TXT record for the d365mktkey, if I create a 'promo.contoso.com' in the Marketing Authenticated Domains.

TIA

I have the same question (0)
  • Suggested answer
    cloflyMao Profile Picture
    25,210 on at

    Hi TIA,

    Here is sample of my configuration, the domain provider is CloudFlare.

    1. In Authenticated Domain settings, we should add full subdomain.

    So you should add 'promo.contoso.com' as domain name field value.

    in_5F00_crm.JPG

    2. In DNS settings:

    dns.JPG

    TXT: promo.contoso.com -> d365mktkey=s1234567(In CF, it will shorten the subdomain to promo.)

    CNAME: apjkey1._domainkey.promo -> apjkey1promocontosocom.marketing.dynamics.com 

    CNAME: apjkey2._domainkey.promo -> apjkey2promocontosocom.marketing.dynamics.com

    3. Click Confirm button and test.

    Marketing form

    form.JPG

    Marketing email

    email.JPG

    In addition,

    1. Due to DKIM hosts are fixed, (apjkey1._domainkey and apjkey2._domainkey, If CRM region is APAC.) and they can only have one value(apjkey1promocontosocom.marketing.dynamics.com), so it means that we can only use one domain(root domain or subdomain) in each time.

    2. This website is helpful to check whether DKIM was added successfully.

    https://mxtoolbox.com/SuperTool.aspx

    dkim_5F00_chk.JPG

  • ASilva Profile Picture
    5 on at

    Thank you cloflyMao

    I'm also using CF but my setup is different from yours. My domain isn't managed via CF, it's managed elsewhere and the subdomain is setup in CF as an A record.

    Also, my domain has been successfully authenticated with D365 and when I try to generate the DKIM for the 'promo.contoso.com' it doesn't create them in the same format as yours, the format is always 'apjkey1._domainkey', which may related to this part:

    "Due to DKIM hosts are fixed, (apjkey1._domainkey and apjkey2._domainkey, If CRM region is APAC.) and they can only have one value(apjkey1promocontosocom.marketing.dynamics.com), so it means that we can only use one domain(root domain or subdomain) in each time."

    I don't want emails to be sent from @promo.contoso.com so can I keep the 'contoso.com' authentication for email and enable only the form authentication for 'staging.contoso.com'? Although in this case I may still have the same issue where I can't add the TXT record to my DNS entry as there is already a 'promo.contoso.com' entry for the CF CNAME setup.

    Seem to be going around in circles with this one :D

  • cloflyMao Profile Picture
    25,210 on at

    Hi ASilva,

    It seems that I have missed something: even if the DKIM key is fixed, but we will append subdomain to them in DNS settings.

    Try following settings and check whether it would work for you.(However, my subdomain is set up as a CNAME record instead.)

    cf.JPG

    ad.JPG

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 70 Super User 2025 Season 2

#2
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 33 Most Valuable Professional

#3
Daniyal Khaleel Profile Picture

Daniyal Khaleel 32 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans