Skip to main content
gcortes1
Staff
Staff
May 27, 2025

Technical Tip: How to restart/kill processes on the FortiMail with CLI commands

  • May 27, 2025
  • 0 replies
  • 688 views
Description This article describes how to restart or terminate processes in FortiMail using CLI commands.
Scope FortiMail v7.0.x, v7.2.x, v7.4.x, v7.6.x, v8.x.x.
Solution

Restarting processes on a FortiMail may be required if they are not working correctly.
Run the following command to see information on processes and their process IDs (PID): 

 

diagnose system top

 

The process ID is listed in the second column:

 

Sys-top-Fortimail.png

 

Additionally, it is possible to use 'grep' to find the list of PIDs for certain processes: diagnose system top | grep mailfilterd.

 

grep-fml.png

 

Alternatively, use the 'diagnose debug process list <process name>' command to list the specific process running on the FortiMail device.

For example:

 

diagnose debug process list mailfilterd

 

process-List.png

 

The PID is listed in the 1st column.

To terminate several selected processes, a signal can be sent one by one to the different PIDs: 

 

diagnose debug process signal 9 PID

 

process-List-kill.png

 

Starting v7.6.3, the command has been modified as follows:

 

diagnose debug tools process list mailfilterd

diagnose debug tools process signal 9 <PID>

 

Related document: debug.

 

Summary:

 

process-List-Result.png

 

Note: In addition to terminating several selected processes, a signal can be sent one by one to the different PIDs: 

 

diagnose debug process signal 11 <PID>