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.
Umer221
Staff
Staff
Article Id 286995
Description This article describes troubleshooting steps to undertake for an issue where the activation code email is sent by FortiGate, but the email is not received on the user end. After running debugs, the error 'failed to connect mailserver' is seen.
Scope FortiGate, FortiOS, FortiToken.
Solution
  1. Troubleshoot FortiToken activation email issues by following the steps in this article.
  2. Search for the error 'failed to connect mailserver' in the debugs by running the following commands:

diag debug reset

diag debug enable

diag debug console timestamp enable

diag debug application alertmail -1

 

Email1.jpg

  1. Run the following commands to check which interface is being used for SMTP:

Email.jpg

 

  1. If the results show 'set interface-select-method sdwan' but SD-WAN is not in use, or if the results show 'set interface-select-method specify' and the WAN interface manually defined is not installed in the routing table when running 'get router info routing-table details', change the interface selection method to 'auto' by running the following commands:

 

config sys email-server

    set interface-select-method auto

end

   

  1. Close the configuration, and test the solution.