Comprehensive data protection for all workloads
Post Reply
antoineL
Lurker
Posts: 1
Liked: never
Joined: Sep 07, 2023 3:34 pm
Full Name: Antoine
Contact:

OAuth: Sending emails as shared mailbox

Post by antoineL »

Using VBR v12 (CE). In General Options>E-mail Settings, I am using Microsoft's Modern authentication using an application I created on my Azure tenant, following the explanations in the help (I am a newbie when it comes to that workflow.)
Using my own account as sender (From:) as well as recipient (To:), after authenticating myself everything works smoothly.

However, I would like to use a shared mailbox as sender instead of my own account.
I gave that mailbox permission to the Azure application; then I went back to Veeam console, changed the sender to the shared mailbox, and tried to re-authenticate.
  • On the 1st try, I faced with VBR asking me to authenticate to Microsoft as the shared mailbox; a (unlicensed) shared mailbox does not have a login/password, so it could not work.
  • On the 2nd try, I gave myself SendAs permission on the shared mailbox (which is how this is dealt with in applications like Outlook) and authenticate to Microsoft as myself; but when I was granted the permission, as I went back to the console, I found the From: field was changed back to myself, which is not what I was asking for.
  • On a 3rd try, I unlocked the shared mailbox account on Exchange online (giving it a password), and then I was able to successfully login at Microsoft, and the test email went smoothly with the shared mailbox as sender; however to comply with the terms of Exchange, I should assign a license to that mailbox, making it essentially a regular mailbox, and it was not my initial intent doing so.
Is there something I had wrong?

Alternatively, since the workflow on the 2nd try appears to work, why is the console resetting the From: field?
It should be possible to operate as some licensed account with registered login rights and SendAs or SendOnBehalf permission on a (different) sender? I do not know enough of OAuth to describe exactly how it should work, but at least Microsoft general documentation about Graph API explains it should be possible.
Mildur
Product Manager
Posts: 9848
Liked: 2606 times
Joined: May 13, 2017 4:51 pm
Full Name: Fabian K.
Location: Switzerland
Contact:

Re: OAuth: Sending emails as shared mailbox

Post by Mildur »

Hi Antoine

I believe, it's not possible because our application does not have the permission "Mail.Send.Shared" and VBR is missing functionality to send mails over Send As permissions. "Mail.Send.Shared" is required to send mails with those permissions.

Let me check with the team if we support Shared Mailboxes. For now, please use a regular mailbox to send the mails.

Best,
Fabian
Product Management Analyst @ Veeam Software
Post Reply

Who is online

Users browsing this forum: Bing [Bot], Marius Grecu and 118 guests