KevinTheJedi
I think I have finally figured out the issue.
When a Shared Mailbox is used the resource_owner_email in the config table needs to be set as the Shared Mailbox email address on the Remote Mailbox tab, but it needs to be set as the User Mailbox that is authenticating the Shared Mailbox in Microsoft 365 on the Outgoing (SMTP) tab.
So the following commit works for the Outgoing (SMTP) tab, but not the Remote Mailbox tab as both are set as the User Mailbox email address on resource_owner_email in the config table
https://github.com/protich/osTicket-plugins/commit/631e83367d5638763ae3c59084b5c39502b8867f
And the following commit works for the Remote Mailbox tab, but not the Outgoing (SMTP) tab as both are set as the Shared Mailbox email address on resource_owner_email in the config table
https://github.com/protich/osTicket-plugins/commit/1bc8ceffe15bf24e87bbc2a62a0992e4311a4979
So if you had the following mailboxes in your Microsoft 365 tenant
marc@domain.com – User Mailbox
kevin@domain.com – User Mailbox
serv_usr@domain.com – User Mailbox (this is the Service User)
sales@domain.com – Shared Mailbox
support@domain.com – Shared Mailbox
booking@domain.com – Shared Mailbox
If we were to setup the sales@domain.com Shared Mailbox on osTicket we would need to authenticate it with the serv_usr@domain.com User Mailbox.
For this to work the following needs to be done in the config table in the database.
Then if the support@domain.com was configured in osTicket the following would be set in the database
Its so close to working 100%, but needs this additional fix to get the Shared Mailboxes working properly.