Fortinet white logo
Fortinet white logo

CLI Reference

factoryreset

factoryreset

Use this command to reset the FortiMail unit to its default settings for the currently installed firmware version. If you have not upgraded or downgraded the firmware, this restores factory default settings.

This command also erases all the log files and mail data on the hard drive.

Back up your configuration and mail 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, including factory default settings for the IP addresses of network interfaces. For information on creating a backup, see the FortiMail Administration Guide.

Syntax

execute factoryreset

Example

The following example resets the FortiMail unit to default settings for the currently installed firmware version.

execute factoryreset

The CLI displays the following:

This operation will change all settings to

factory default! Do you want to continue? (y/n)

After you enter y (yes), the CLI displays the following and logs you out of the CLI:

System is resetting to factory default...

Related topics

restore config

backup

factoryreset

factoryreset

Use this command to reset the FortiMail unit to its default settings for the currently installed firmware version. If you have not upgraded or downgraded the firmware, this restores factory default settings.

This command also erases all the log files and mail data on the hard drive.

Back up your configuration and mail 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, including factory default settings for the IP addresses of network interfaces. For information on creating a backup, see the FortiMail Administration Guide.

Syntax

execute factoryreset

Example

The following example resets the FortiMail unit to default settings for the currently installed firmware version.

execute factoryreset

The CLI displays the following:

This operation will change all settings to

factory default! Do you want to continue? (y/n)

After you enter y (yes), the CLI displays the following and logs you out of the CLI:

System is resetting to factory default...

Related topics

restore config

backup