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 now will be available under Log & Reports -> Local Reports.

 

To configure the scheduled email report:

  1. Configure email-server. A default Fortinet email server can be used. 

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

 

  1. Configure username in alertmail setting:

    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 

Configure the schedule required. 

 

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 enable
diag debug console timestamp enable
diag debug application alertmail -1

 

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

     

 

KB_11_3.png

 

When using the default SMTP server, email alert debug may show that the email was sent successfully, but the email is not received. 

 

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

 

In this case, if using the default email server, check that the username in alertmail setting is 'DoNotReply@fortinet-notifications.com'.