https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42179 Bug ID: 42179 Summary: Use Microsoft Graph for Sending Messages Initiative type: --- Sponsorship --- status: Product: Koha Version: Main Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: Architecture, internals, and plumbing Assignee: koha-bugs@lists.koha-community.org Reporter: brian.pichman@bywatersolutions.com QA Contact: testopia@bugs.koha-community.org Created attachment 196176 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=196176&action=edit patch This changes outbound email delivery via Microsoft Graph using a host-managed Entra application and tenant consent from the Koha staff interface. The goal is to reduce partner setup complexity. The host configures one Microsoft 365 app in sysprefs, and the library admin completes tenant connection by clicking “Connect Microsoft 365” from the SMTP server configuration screen. Main changes: - Add Microsoft Graph as a delivery transport (left room to be expanded on later -- IE one click AWS SES set up for partners could be accomplished this way using API calls that can add domains and share back verification needs) for smtp_servers - Add host-level sysprefs for Graph client ID/client secret - Add tenant connection storage and connection workflow - Add shared connection scope so one tenant connection can be used for all libraries using the server - Add dedicated callback endpoint for Microsoft consent return - Route queued email delivery through Graph when configured Known setup requirements: - Redirect URI must be registered in Entra - App must have Microsoft Graph Mail.Send application permission - Admin consent must be granted This shouldn't conflict with this bug: 38338 as I'm recommending an entirely new layer within smtp_servers.pl. -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.