factoryreset2 keeplicense
Use this command to reset the FortiMail-VM configuration to its factory default settings, while retaining the network settings and VM license file.
Back up your FortiMail configuration, mail data, and other data before entering this command. This procedure resets all changes that you have made to the FortiMail unit’s configuration file and reverts the system to the default values for the firmware version. While this command does not include network interfaces and VM license file, other data may be erased or access lost when settings are disabled or removed.
Syntax
execute factoryreset2 keeplicense