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.
vkulik
Staff
Staff
Article Id 192029
Description
A non-default SMTP port can be used to send administrative alerts from a FortiGate.  This option is not available from the GUI but it can be configured from CLI.
Scope
FortiGate, Alerts, FortiOS, Mail, Logs
Solution
1.  From the Web GUI enable Alert email and configure the initial configuration options.  Set mail server IP/name, Address from and to, enable authentication and specify credentials to use.

vkulik_FD31861_alertmail1a.jpg

2.  Select the alerts that are to be received by mail.

vkulik_FD31861_alertmail2a.jpg

3.  Connect with SSH or serial console and run from CLI the following command to view current settings.
FGT# config system alertemail
Note default port 25

FGT (alertemail) # get
port                : 25
server              : 172.17.97.158
authenticate        : enable
password            : *
username            : administrator
4.  To modify the port to be customized, run the following commands :

FGT# config system alertemail

FGT (alertemail) # set port 12222

Verify the change :

FGT (alertemail) # get
port                : 12222
server              : 172.17.97.158
authenticate        : enable
password            : *
username            : administrator

FGT (alertemail) # end

5.  From the GUI go to Log & report > Log Config > Alert Email and select the Test Connectivity button.  Verify that the mail was delivered to defined mailbox.

vkulik_FD31861_alertmail3a.jpg


Contributors