Prerequisites
- The subscription should contain Exchange Online Plan 1 (Microsoft 365 essentials, business standard, standard premium) or Exchange Online Plan 2 (O365 E1, E3, or E5).
- The Microsoft 365 account should be GLOBAL ADMIN.
- Add a user that you want to use in the SMTP setting and assign a license.
- PowerShell version 5.1 or higher.
Steps
- Open PowerShell as an Administrator.
- Set the execution policy for cloud CMDLets and accept the change.
Set-ExecutionPolicy RemoteSigned
- Install Powershell Exchange Online Management module and use -Allowclobber to allow update and -Force:
Install-Module ExchangeOnlineManagement -AllowClobber -Force
- Connect to ExchangeOnlineManagement module:
Connect-ExchangeOnline
- Check the status of the tenant policy for SMTP:
Get-TransportConfig | Select *smtp*
If the property "SmtpClientAuthenticationDisabled" is true, it means SMTP Client Authentication is disabled globally on tenant.
- Query the exact property for the user that added in required condition step 3:
Get-CASMailbox -identity [user_email]
"SmtpClientAuthenticationDisabled" is null, so SMTP Auth is taking the global configuration which means Disabled.
- Enable SMTP Auth for this user (Set "SmtpClientAuthenticationDisabled" as false):
Set-CASMailbox -Identity [user_email] -SmtpClientAuthenticationDisabled:$false
- Execute the command to check the properly:
- Log in to the Apex Central console, and go to Detections > Notifications > Notification Method Settings.
- Set SMTP Server Settings as the following:
Server FQDN or IP address: smtp.office365.com Port: 587 Sender email address: [user_email] Check Enable ESMTP User name: [user_email] Authentication: Login Check User SSL/TLS/encryption
- Sign in to your Google Account.
- Go to Security > Sign in to Google.
- Enable 2-Step Verification.
- Enable App passwords.
- Log in to the Apex Central console, and go to Detections > Notifications > Notification Method Settings.
- Set SMTP Server Settings as the following:
Server FQDN or IP address: smtp.gmail.com Port: 587 Sender email address: [user_email] Check Enable ESMTP User name: [user_email] Password: the app password generated in step 4 Authentication: Login Check User SSL/TLS/encryption