Created on 05-26-2020 02:08 AM Edited on 09-04-2024 05:33 AM By Jean-Philippe_P
Description
This article describes how to configure email alerts for security profile, administrative, and VPN events.
Scope
FortiGate.
Solution
From GUI.
Configure a mail service.
By default, it will be using the mail server of Fortinet and can be customized by enabling the custom settings under System -> Settings -> Email Service.
config system email-server
set interface-select-method specify
set interface port1====== specify the outgoing interface
end
auto --> Set outgoing interface automatically.
sdwan --> Set outgoing interface by SD-WAN or policy routing rules.
specify --> Set outgoing interface manually.
After the settings are completed, a test email can be triggered to test the settings:
diagnose log alertmail test
If the issue persists, it is possible to collect the below debug:
To collect the debug for email alert :
diag debug reset
diag debug enable
diag debug console timestamp enable
diag debug application alertmail -1
Send a test activation mail:
diagnose log alertmail test
Then disable debug:
diag debug disable
diag debug reset
Save the output either download it via the CLI window or use the Putty tool to log them, to attach the debug logs to the case for TAC review.
Note:
If 'username' and 'mailto' are set on the same domain name, the email cannot be received. They must be on different domain names.
Related articles:
Technical Tip: How to configure SMTP using custom server and port on FortiGate
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2024 Fortinet, Inc. All Rights Reserved.