How to send email alerts with Microsoft 365 or Gmail?
Our email is hosted on Microsoft 365 (or Gmail / Google Workspace) and we do not have an internal SMTP server.
Which settings should I enter in IDEAL Administration to receive Active Directory audit alerts by email?
The Tools > Options > General > Email (SMTP) page (version 27.0 or later) works with any SMTP server: Exchange or internal relay, Microsoft 365, Gmail / Google Workspace or an email delivery provider. Authentication uses a user name and password, with TLS 1.2 encryption.
Microsoft 365 - authenticated submission
| SMTP server | smtp.office365.com |
| Port / Security | 587 / STARTTLS |
| Authentication required | checked: full address and password of the sending mailbox |
| Sender | the address of this same mailbox |
Prerequisites: Authenticated SMTP must be enabled for this mailbox (Microsoft 365 admin center, Users > Active users > Mail > Manage email apps), and the account must not be blocked by multi-factor authentication or security defaults. Preferably use a mailbox dedicated to sending alerts.
Note: Microsoft has announced the gradual retirement of this basic authentication for SMTP submission (disabled by default, then removed for good, announced for the second half of 2027). If it is no longer available on your tenant, use the following method.
Microsoft 365 - Direct Send, without authentication
| SMTP server | the MX endpoint of your domain, for example yourdomain-com.mail.protection.outlook.com (shown in Settings > Domains of the admin center) |
| Port / Security | 25 / STARTTLS |
| Authentication required | unchecked |
| Sender | an address of your domain |
This method only delivers to mailboxes of your organization: recipients must be internal. Outbound port 25 must be open, the public IP address of your site should be in your SPF record, and the Reject Direct Send option must not be enabled on your tenant.
Gmail / Google Workspace
| SMTP server | smtp.gmail.com |
| Port / Security | 587 / STARTTLS (or 465 / SSL/TLS) |
| Authentication required | checked: full Gmail address and an app password |
| Sender | the Gmail address used |
Google rejects the usual account password: turn on 2-Step Verification for the account, then create an app password (Google Account, Security > 2-Step Verification > App passwords) and enter it in the Password field.
With Google Workspace, you can also use Google's SMTP relay service (smtp-relay.gmail.com), configured in the Google Admin console.
Check the settings
Click Send a test email. If it fails, the message shows the server's answer (authentication rejected, certificate, connection failed...). Do not check Ignore certificate with Microsoft 365 or Gmail: this option is meant for internal relays only.

