FortiMail
FortiMail provides advanced, multi-layer protection against the full spectrum of email-borne threats
gcortes1
Staff
Staff
Article Id 383288
Description

This article describes the causes of the Error: 'FortiGuard-Antispam: Query timeout or invalid response' and FortiGuard-Antispam: No Answer from server error typically indicates an issue with connectivity or configuration.

 

Invalid_response.png

 

Screenshot 2025-08-26 093424.png

Scope FortiMail.
Solution

Check DNS Configuration:

It is necessary to validate the correct resolution of names in FortiMail. Use the following commands to confirm the DNS resolution:

 

execute nslookup name www.fortinet.com

 

Verify FortiGuard License: 

It is necessary to validate that the license is valid and active.

 

Via GUI: Go to System -> Utility -> FortiGuard.

 

Fortiguard_License _Status.PNG
Or via CLI:


diagnose debug rating

 

dia_debug_rating.png

 

Network Connectivity: 

Confirm that the FortiMail has internet access and can reach FortiGuard for license validation. FortiMail uses the following URLs to access the FortiGuard Distribution Network (FDN):

  • update.fortiguard.net
  • support.fortinet.com
  • service.fortiguard.net (global) or usservice.fortiguard.net (United States only).
  • securewf.fortiguard.net (global) or ussecurewf.fortiguard.net (United States only).

Furthermore, FortiMail performs these queries and updates listed below using the following ports and protocols:

  • FortiGuard Anti-Spam rating queries: UDP/53, 8888, 8889.
  • FortiGuard AntiVirus Push updates: UDP/9443.
  • FortiGuard Anti-Spam or AntiVirus updates: TCP/443.

Use the following commands to confirm the DNS resolution and communicate with the FortiGuard servers:

 

execute nslookup name update.fortiguard.net

execute telnettest service.fortiguard.net:443

 

With communication problems to FortiGuard but no issues with name resolution.

 

connection_test_fail.png

 

Without communication errors:

 

connection_test_ok.png

 

After resolving the communication issues, FortiGuard's response is correct.

 

Fortiguard_License _Status_ok.PNG

 

Result:

 

Response_ok.png