FortiGate
FortiGate Next Generation Firewall utilizes purpose-built security processors and threat intelligence security services from FortiGuard labs to deliver top-rated protection and high performance, including encrypted traffic.
sselvam
Staff
Staff
Article Id 198035

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.

 

Email server.png

 

To configure the alert email in the CLI:
 

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:

 
diagnose log alertmail test
 
Note: This can also be configured using an automation stitch. For more information about the automation stitch, refer to Technical Tip: Use FortiGate automation stitches for alert emails.

 

Related articles: