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.
aahmadbasri
Staff
Staff
Article Id 350667
Description This article describes local report scheduled email configuration and troubleshooting commands.
Scope FortiGate.
Solution

Before configuring the local reports, it needs to be enabled from System -> Feature Visibility -> Local Reports.

 

KB_11_1.png

 

The local Reports tab will now be available under Log & Reports -> Local Reports.

 

To configure the scheduled email report:

 

  1. Use Fortinet's default SMTP server. Note: the commands below should be executed in a global VDOM:

 

config system email-server
    set server "fortinet-notifications.com"
    set port 465
    set security smtps
end

 

  1. Configure the sender address for alert emails.

    config alertemail setting
        set username "DoNotReply@fortinet-notifications.com    --> If using default SMTP server.
    end

     

  2. Configure report schedule in Log & Report -> Local Reports -> Report Schedule.  

 

KB_11_2.png

 

If the email is not received, troubleshooting will be based on Troubleshooting Tip: Email alert.

 

  1. Run the alertmail debug:

diag debug reset
diag debug disable


diag debug console timestamp enable
diag debug application alertmail -1

diag debug enable

 

  1. In Log & Report -> Local Reports -> Generate Now.

 

KB_11_3.png

 

When using the default Fortinet SMTP server, the email alert debug log may indicate that the email was sent successfully, even if the email is not received:

 

2024-09-02 12:16:15 <== send mail success, m = 0x963e590 s = 0x9640380

 

In such cases, verify that the username under the alert email settings is correctly set to 'DoNotReply@fortinet-notifications.com' as this setting is required for proper operation when using the default SMTP server.

 

Note:

Local reports are only available on FortiGates that have local disk storage.