Description | This article describes how to troubleshoot Email alert not able to sent out via default email alert settings. |
Scope | FortiGate, |
Solution |
Make sure to have a working WAN link to send out the email. Do a test ping to the default mail server: notification.fortinet.net
exe ping notification.fortinet.net
Then, check the existing configuration in FortiGate.
Below is an example of default settings:
Fortigate# get system email-server
In some cases, it is necessary to configure the interface manually:
Fortigate# set interface-select-method
When the custom email server is used on FortiGate to send the emails out from the FortiGate for purposes like FortiToken Activation Email or Email Alerts, the emails may not be received at the user side
Check the connection to the Email Server:
exe ping <SMTP server IP>
So that, FortiGate can reach the server over the tunnel.
config system email-server ... set source-ip {ipv4-address} ... end
Run the alert mail debugs:
diag debug reset
diagnose log alertmail test
Note: This test will send out the test mail to the email address that is configured in the alertmail setting (#conf alertmail setting). If not configured not emails will be sent out.
Refer to this article to configure the same: Technical Tip: How to configure alert email settings
Troubleshooting:
If that is not set, the debugs will show 'send mail success' but mails will not be received.
config system email-server set server "<Email server IP>" set reply-to "admin@example.com" <----- Email address which is used to send emails.
If any failed are erroring the debugs, check for the below things:
diag sniffer packet any “host <server IP> and port <port no>” 4 0 l
If the issue still persists, collect all the debugs and the output of the above commands and submit them to the TAC ticket along with the configuration file of the FortiGate.
Then disable debug:
Save the output either download it via the CLI window or use the Putty tool to log them, in order to attach the debug logs to the case for TAC review. |
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.