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.
jera
Staff
Staff
Article Id 360093
Description This article describes a debug error received when FortiGate is unable to send email for Local Reports or Activation code. 
Scope FortiOS.
Solution

When running the alert email debug, the SMTP server may respond with a 530 error code.

 

diagnose debug reset

diagnose debug enable

diagnose debug console timestamp enable

diagnose debug application alertmail -1

 

Sample debug output that reflects the SMTP server response during the time of the issue. 

 

2024-11-25 13:13:00 session: 0x99fb790, rsp_state: ehlo, code: 250
2024-11-25 13:13:00 session: 0x99fb790, rsp_state: auth, code: 334
2024-11-25 13:13:08 session: 0x99fb790, rsp_state: auth2, code: 535
2024-11-25 13:13:08 session: 0x99fb790, rsp_state: auth, code: 334
2024-11-25 13:13:08 session: 0x99fb790, rsp_state: auth2, code: 334
2024-11-25 13:13:14 session: 0x99fb790, rsp_state: auth2, code: 535
2024-11-25 13:13:19 session: 0x99fb790, rsp_state: mail, code: 530  <----- Server responded with 530 error code.
2024-11-25 13:13:19 _session_on_destroy
2024-11-25 13:13:19 <== send mail failed, m = 0x99beba0 s = 0x99fb790 <----- Email delivery failed. 

 

To fix this issue:

 

  1. Make sure that the authentication/credential configured under the email setting is correct.
  2. The source IP address used by FortiGate to send the email is not included on the SMTP server blocklist. 

 

Related articles: 

Troubleshooting Tip: Email alert

Troubleshooting Tip: Alertmail queries 

Technical Tip: Send mail failed due to ‘buffer is full’ when trying to authenticate FortiToken Mobil...