Technical Tip: How to configure the alert-mail settings with Microsoft office365
Description
This article describes how to configure email alerts because sometimes the FortiGate cannot access to the account in order to send the email alert.
Scope
FortiGate.
Solution
This is an example of the configuration in FortiGate:
Configure a Microsoft Office 365 account in the FortiGate.
Go to System -> Settings-> scroll down to the Email Service option.
- SMTP SERVER: smtp.office365.com
- PORT: 587
- AUTHENTICATION: example@domain.it
- Password: xxxxxxxxx
- SECURITY MODE: STARTTLS.
Note: The password entered should be the app password generated from the Microsoft account
- An App Password is a 16-digit passcode that gives a less secure app or device permission to access the Microsoft Account.
- App Passwords can only be used with accounts that have 2-Step Verification turned on.
For more information on how to set up App Password on the Microsoft account, refer to Create app passwords from the Security info (preview) page - Microsoft Support.
config alertemail setting
set username fortigate@example.com
set mailto1 admin1@example.com
set mailto2 admin2@example.com
set filter category
set IPS-logs enable
end
Test this with the following command:
Related articles:
