Installing firmware : Installing firmware : Restoring the configuration
Restoring the configuration
You can restore a backup copy of the configuration file from your local PC using either the web UI or CLI. For information about configuration backup, see “Backup and restore”.
If you have just downgraded or restored the firmware of the FortiMail unit, restoring the configuration file can be used to reconfigure the FortiMail unit from its default settings.
To restore the configuration file using the web UI
1. Clear your browser’s cache. If your browser is currently displaying the web UI, also refresh the page.
2. Log in to the web UI.
3. In the advanced management mode, go to Maintenance > System > Configuration.
4. Under Restore Configuration, click Local PC.
5. Click Browse to locate and select the configuration file that you want to restore, then click Restore.
The FortiMail unit restores the configuration file and reboots.Time required varies by the size of the file and the speed of your network connection.
6. After restoring the configuration file, verify that the settings have been successfully loaded. For details on verifying the configuration restoration, see “Verifying the configuration”.
To restore the configuration file using the CLI
 
The following procedure restores only the core configuration file, which does not include items such as the Bayesian databases, dictionary database, and other items. To restore backups of those items, use the web UI.
1. Initiate a connection from your management computer to the CLI of the FortiMail unit, and log in as the admin administrator, or an administrator account that has system configuration read and write privileges.
2. Connect a network interface of the FortiMail unit directly or to the same subnet as a TFTP server.
3. Copy the new firmware image file to the root directory of the TFTP server.
4. Verify that the TFTP server is currently running, and that the FortiMail unit can reach the TFTP server.
To use the FortiMail CLI to verify connectivity, enter the following command:
execute ping 192.168.1.168
where 192.168.1.168 is the IP address of the TFTP server.
5. Enter the following command:
execute restore config tftp <file_name> <tftp_ipv4>
The following message appears:
This operation will overwrite the current settings!
(The current admin password will be preserved.)
Do you want to continue? (y/n)
6. Enter y.
The FortiMail unit restores the configuration file and reboots. Time required varies by the size of the file and the speed of your network connection.
7. After restoring the configuration file, verify that the settings have been successfully loaded. For details on verifying the configuration restoration, see “Verifying the configuration”.