DNN Forums

Ask questions about your website to get help learning DNN and help resolve issues.

Issue configuring oAuth for SMTP Authentication

 14 Replies
 3 Subscribed to this topic
 40 Subscribed to this forum
Sort:
Page 2 of 2 << < 12
Author
Messages
Senior Member
Posts: 1325
Senior Member
3 Helpful Replier
Helpful Replier
Thanks for being such a helpful replier!
Lifesaver
Lifesaver
You're Life Saver!
New Poster
New Poster
Congrats on posting!
3 Engaged Reader
Engaged Reader
You are an engaged reader!
Posted By Daniel Valadas on 9/5/2024 7:04 PM
If you figure out all the proper setup to make it work, we would greatly benefit from having that process documented :) I could never make it work with exchange.

I will :-)

 

 

Senior Member
Posts: 1325
Senior Member
3 Helpful Replier
Helpful Replier
Thanks for being such a helpful replier!
Lifesaver
Lifesaver
You're Life Saver!
New Poster
New Poster
Congrats on posting!
3 Engaged Reader
Engaged Reader
You are an engaged reader!
Posted By johnhenley on 9/5/2024 7:34 PM
Is the 503 error on DNN side? Or exchange?
What type of certificate are you using for DNN? And is the DNN endpoint accessible publicly?

I ended up on this page which showed a 503 error.
https://www.website.com/P...nline/Authorize.aspx
Using a Letsncrypt certificate.
Yes

We used a workaround for now but I'll tray again in about a week.

 

 

New Around Here
Posts: 3
New Around Here

I think I can describe how to make it work with Exchange online. It is quit simple when you know that you have to use Microsoft Graph

  • In DNN
    • Personabar - Security - More - SSL Settings:
      Make sure that SLL Settings = ON
       
  • In Exchange
    • Create a mailbox with al licence.
       
  • In Azure
    • Create an App registration
      • Redirect URIs:
        • https://[DOMAINNAME]/Providers/SmtpOAuthProviders/ExchangeOnline/Authorize.aspx

        • https://[DOMAINNAME]

      • Secret

      • API Permissions

        • Microsoft Graph

          • Delegated -> SMTP.Send (Send emails from mailboxes using SMTP AUTH)

  • In DNN

    • Servers - Seversettings - SMTP Server

      • SMTP Sever and Port = smtp.office365.com:587

      • SMTP Authentication= OAuth

      • Auth Provider = Exchange online

      • Tenant Id = [Directory (tenant) ID] 

      • Client Id = [Application (client) ID]

      • Client Secret = [client secret value]

    • Save Settings

    • Authorize

      • Using the Microsoft Mailbox credentials

    • Test SMTP Settings

Growing Member
Posts: 75
Growing Member

Thank you Mr Needle for adding the procedure to the DNN Documentation :-)
https://docs.dnncommunity.org/content/tutorials/server/smtp-servers/set-up-oauth-microsoft-365/index.html

New Around Here
Posts: 1
New Around Here
I have version 09.06.01 and I don't have these options

Servers - Seversettings - SMTP Server

SMTP Sever and Port = smtp.office365.com:587

SMTP Authentication= OAuth

Auth Provider = Exchange online

Tenant Id = [Directory (tenant) ID]

Client Id = [Application (client) ID]

Client Secret = [client secret value]
Page 2 of 2 << < 12

These Forums are for the discussion of the open source CMS DNN platform and ecosystem.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. If you have (suspected) security issues, please DO NOT post them in the forums but instead follow the official DNN security policy
  2. No Advertising. This includes the promotion of commercial and non-commercial products or services which are not directly related to DNN.
  3. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  4. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  5. No Flaming or Trolling.
  6. No Profanity, Racism, or Prejudice.
  7. Site Moderators have the final word on approving / removing a thread or post or comment.
  8. English language posting only, please.

Would you like to help us?

Awesome! Simply post in the forums using the link below and we'll get you started.

Get Involved