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.
Article Id 191458



This article explains how to configure email alerts because sometimes the fortiGate can't access to the account in order to send the email alert.


This is an example of the configuration in FortiGate:

Configure gmail account in the FortiGate.
# config system email-server
    set server ""
    set port 587
    set authenticate enable
    set username "test"
    set password SGKSDHFK
    set security starttls

Configure the destination to the email alert.


# config alertemail setting
    set username ""
    set mailto1 ""

Configure the Gmail account to use an App Password:


An App Password is a 16-digit passcode that gives a less secure app or device permission to access the Google 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 Google account, refer to the below document:

Following this, it will be possible to send alert mails.

Test this with following command:


# diagnose log alertmail test