M365 email settings for notifications

BigBadBlack

New Member
Feb 12, 2026
9
0
1
I'm making PBS email me vital emails. i use m365. is that the best route to go with email? it seems to be problematic, so far. im trying to make this command work but i keep bombing out. does it look right?

proxmox-backup-manager notification endpoint smtp create prod-mail \
--server smtp-mail.outlook.com \
--port 587 \
--username email@email.com \
--password 'SMTP_PASSWORD' \
--from-address backup-alerts@email.com \
--to-address infra-team@email.com \
--mode starttls
 
I use another mail provider via SMTP but a different domain.
Notifications go to my inbox anyway so i don't mind having them send from another domain.

XOAUTH2 won't solve the issue that MS will disable SMTP completely and it most likely won't work with an account that has MFA enabled / enforced.
Maybe a plugin that sends mails via MS Graph API would solve these issues (partially)?

Otherwise switching from Mail to something else would be another option:
https://pbs.proxmox.com/docs/notifications.html#notification-targets