Skip to main content

Notifications

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

  • cloflyMao Profile Picture
    cloflyMao 25,202 on at
    RE: Dynamics 365 Marketing forms subdomain authentication (CNAME setup)

    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

  • ASilva Profile Picture
    ASilva 5 on at
    RE: Dynamics 365 Marketing forms subdomain authentication (CNAME setup)

    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

  • Suggested answer
    cloflyMao Profile Picture
    cloflyMao 25,202 on at
    RE: Dynamics 365 Marketing forms subdomain authentication (CNAME setup)

    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

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,965 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,817 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans