Netgate pfSense email notifications (Notifications SMTP) with Microsoft 365: email through Microsoft 365 after Basic auth is switched off
Short answer: Netgate's Notifications page for pfSense offers only two authentication mechanisms, PLAIN and LOGIN, and doesn't mention OAuth. A Microsoft 365 mailbox login over SMTP AUTH stops working when Basic auth is switched off. Use your MX host on port 25 with no authentication behind a relay connector that trusts the firewall's public IP.
Deadline: Microsoft 365 turns off SMTP AUTH Basic auth by default at the end of December 2026 – dates and background.
Modern authentication (OAuth) support
Not documented. The Netgate page lists Notification E-mail Auth Mechanism with PLAIN and LOGIN only, plus a user name and password. It doesn't mention OAuth or XOAUTH2, and neither does the pfSense CE 2.8.0 release note. The only provider-specific advice on the Notifications page is for Google (an App Password with 2-Step Verification). Release notes for 2.8.1 and later were not read, so a later change can't be ruled out. A mailbox that logs in to smtp.office365.com with a password uses SMTP AUTH Basic auth and is covered by the SMTP AUTH Basic auth switch-off.
What you will see when it breaks
- Reported: Test SMTP Settings fails or the pfSense notification emails stop after the tenant disables Basic auth (no official Netgate wording found)
- "535 5.7.3 Authentication unsuccessful" (Microsoft Learn: example SMTP response when an AUTH attempt is refused)
- "5.7.57 Client not authenticated to send mail" (Microsoft Learn: SMTP AUTH refused; check the mailbox's Authenticated SMTP setting)
- Reported: package notifications (for example from monitoring packages) stop arriving too, because they reuse these SMTP settings (Netgate: Disable SMTP keeps settings for packages)
Best fix
- Open System → Advanced → Notifications → E-Mail and check E-mail server. If it is
smtp.office365.comwith an Auth Username and Password, it is using SMTP AUTH. To list every mailbox in the tenant that still logs in this way, run the free SMTP AUTH sender script. - In Exchange admin center, create a relay connector (Mail flow → Connectors, from Your organization's email server) that trusts the static public IP of the firewall's WAN connection.
- Change the settings: E-mail server your MX host (for example
contoso-com.mail.protection.outlook.com), SMTP Port of E-mail server25, clear Notification E-Mail Auth Username and Password. Netgate says port 25 may not work except to an internal mail server, because providers often block it; make sure your own ISP allows outbound 25. - Leave Secure SMTP Connection unchecked. Netgate says it makes a direct SSL/TLS connection and isn't compatible with ports that start in plain text and switch with STARTTLS (such as 25 and 587). Netgate says the firewall tries STARTTLS on 25 and 587 when authentication is configured; what it does with authentication off is not documented.
- Set From e-mail address to an address in a domain your tenant owns, or Microsoft 365 rejects the message (see 550 5.7.64 TenantAttribution).
- Click Save, then Test SMTP Settings (Netgate: save the settings before testing). If it fails, check the connector's IP and the message trace in Exchange admin center.
If it can't do OAuth
- No static public IP for a connector? Run a small SMTP relay on your network that signs in to Microsoft 365 with OAuth itself, and point E-mail server at it. Netgate doesn't document OAuth in pfSense, so the relay has to do that step.
- Without a connector, the MX host on port 25 is direct send, which only reaches mailboxes inside your organization (Microsoft Learn). Fine for firewall alerts to an admin mailbox, not for outside recipients. See 550 5.7.68 if direct send is blocked in your tenant.
- Don't switch the mechanism to LOGIN hoping it will pass: both PLAIN and LOGIN send a password, which is exactly what Basic auth means. Netgate documents the choice only as a server compatibility matter.
- Stopgap only: an admin can turn Basic auth for SMTP AUTH back on for now. See the SMTP AUTH change.
| GUI path (Netgate docs) | Advanced > Notifications > E-Mail (System > Advanced > Notifications) |
|---|---|
| Fields | Disable SMTP, E-mail server, SMTP Port of E-mail server, Connection Timeout to E-Mail Server, Secure SMTP Connection, Validate SSL/TLS, From e-mail address, Notification E-mail address, Auth Username, Auth Password, Auth Mechanism |
| Notification E-mail Auth Mechanism options | PLAIN (default), LOGIN |
| OAuth / XOAUTH2 | Not documented (not on the Notifications page or in the CE 2.8.0 release notes) |
| Ports (Netgate) | 25 and 587 are the common choices; 25 may not work except to an internal mail server |
| Secure SMTP Connection | Direct SSL/TLS only; not compatible with STARTTLS ports 25 and 587 |
| STARTTLS behaviour (Netgate) | With Secure SMTP Connection unchecked, the firewall tries STARTTLS on 25 and 587 if authentication is configured |
| Relay connector values | E-mail server: your MX host, Port: 25, Auth Username and Password empty |
| Test | Test SMTP Settings button (save first) |
Check your domain's SPF and DMARC
A relay sends from your office IP, so it must be in your SPF record.
Get the kit ($19)
Rather have it done for you? I move your devices and apps on Fiverr – relay, Direct Send or OAuth, tested, from $25.
MSP or IT partner? The M365 Readiness Pack checks SMTP AUTH, EWS and SPF/DKIM/DMARC per client tenant and writes a report with your logo (from $49).
Sources
- Netgate docs: Notifications (pfSense)
- Netgate docs: pfSense CE 2.8.0 release notes
- Microsoft Learn: Enable or disable SMTP AUTH in Exchange Online
- Microsoft Learn: Authenticate an IMAP, POP or SMTP connection using OAuth
- Microsoft Learn: How to set up a multifunction device or application to send email using Microsoft 365
- Microsoft Learn: Fix issues with printers, scanners, and LOB apps that send email using Microsoft 365
- Microsoft Exchange Team: Updated Exchange Online SMTP AUTH Basic Authentication deprecation timeline (MC786329)
Other devices and apps
- HP printers and MFPs
- Canon imageRUNNER ADVANCE and i-SENSYS/imageCLASS
- Ricoh MFPs and printers
- Xerox AltaLink and VersaLink
- Brother printers, MFCs and scanners
- Konica Minolta bizhub
- Kyocera TASKalfa and ECOSYS
- Sharp MX and BP series
- Lexmark
- Epson WorkForce and EcoTank business
- Toshiba e-STUDIO (e-BRIDGE Next) scan to email with Microsoft 365
- FUJIFILM Apeos and ApeosPort (formerly Fuji Xerox) scan to email with Microsoft 365
- WordPress SMTP plugins (WP Mail SMTP, FluentSMTP, Post SMTP) with Microsoft 365
- Synology DSM and QNAP QTS / QuTS hero email notifications with Microsoft 365
- PowerShell Send-MailMessage with Microsoft 365
- Veeam Backup & Replication email notifications with Microsoft 365
- Zabbix email media type with Microsoft 365
- Paessler PRTG Network Monitor email notifications with Microsoft 365
- Windows Server IIS 6.0 SMTP relay forwarding app mail to Microsoft 365
- Sage 50 Accounts (UK and Ireland) and Sage 200 emailing invoices with Microsoft 365
- QuickBooks Desktop emailing invoices with Microsoft 365 (Web Mail or Outlook)
- Microsoft SQL Server Database Mail (and SQL Agent alerts) with Microsoft 365
- Dell iDRAC and HPE iLO alert email (AlertMail) with Microsoft 365
- Jenkins email notifications (Mailer and Email Extension plugins) with Microsoft 365
- Fortinet FortiGate alert email (FortiOS email server) with Microsoft 365
- Atlassian Jira Data Center outgoing mail (SMTP) with Microsoft 365
- Microsoft 365 SMTP relay connector (any printer, scanner, NAS or app)