ADR 0007: Email notifications via Graph by default, SMTP as alternative¶
Status: Accepted
Date: 2026-12-02
Context¶
Backup admins need email for job results, alerts and reports. The app already has Graph access to the tenant. Exchange Online SMTP AUTH with basic authentication is being retired by Microsoft.
Decision¶
Default delivery is Microsoft Graph
sendMailfrom a dedicated shared mailbox (backup-alerts@…), using a separate Notifications app registration whoseMail.Sendpermission is granted only through Exchange RBAC for Applications, scoped to that mailbox (no tenant-wide Entra grant).The setup wizard creates the mailbox and the scoped role assignment itself, via a second device code sign-in and Exchange Online PowerShell in an
exo-runnercontainer.SMTP is supported as an alternative or as a fallback for when Graph is the thing that is broken.
Consequences¶
No extra mail service is needed for Microsoft 365 tenants.
The admin signs in twice during setup (Graph, then Exchange Online).
Adds PowerShell 7 to the project, isolated in its own optional container image so the main image stays small. If Microsoft’s Exchange admin REST API later covers these cmdlets, the container can be dropped.
RBAC changes can take up to ~2 hours to apply, so email may show as pending right after setup.
A third app registration and certificate to manage (handled by the wizard and the same renewal process).
Alerts about Graph failures need the SMTP fallback or an external watchdog to be delivered.