Replies: 2 comments
-
I also asked a question to the azure community: |
Beta Was this translation helpful? Give feedback.
0 replies
-
It might help if you post the proxy's log in debug mode so that I can see what authentication method is actually being attempted. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I have set up an Azure App Registration to send emails using Microsoft services via the client_credentials flow. I am utilizing this application for this purpose.
Working Workflow with Microsoft Graph API:
I request a token using the following command
With the obtained token, I can successfully send an email using the Microsoft Graph API:
This approach works perfectly.
Problem with SMTP and Scope https://outlook.office365.com/.default:
However, when I use the scope https://outlook.office365.com/.default to send emails via SMTP (smtp-mail.outlook.com), authentication fails. The server and configuration used are as follows:
Despite correct credentials and using the same Azure App Registration, I receive the following error when attempting to send emails:
535 5.7.139 Authentication unsuccessful, the request did not meet the criteria to be authenticated successfully.
I have also followed these steps using PowerShell:
New-ServicePrincipal -AppId "APP_ID" -ServiceId "OBJECT_ID"
Set-ServicePrincipal -Identity "OBJECT_ID" -DisplayName "email-oauth-proxy"
Add-MailboxPermission -Identity "SENDER_EMAIL" -User "OBJECT_ID" -AccessRights FullAccess
Despite these steps, the issue with SMTP authentication persists.
This is my emailproxy.config
Im using the dockerzied setup:
Does anyone know what I am doing wrong? Or does anyone have any tips or guesses for further debugging?
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions