Maintaining the system : Backup and restore
Backup and restore
Before installing FortiMail firmware or making significant configuration changes, back up your FortiMail configuration. Backups let you revert to your previous configuration if the new configuration does not function correctly. Backups let you compare changes in configuration.
A complete configuration backup consists of several parts:
core configuration file (fml.cfg), including the local certificates
Bayesian databases
mail queues
system, per-domain, and per-user block/safe list databases
email users’ address books
images and language files for customized appearance of the web UI and webmail
To access those parts of the web UI, your administrator account’s:
Domain must be System
access profile must have Read-Write permission to all categories
For details, see “About administrator account permissions and domains”.
In addition, although they are not part of the configuration, you may want to back up the following data:
email archives
log files
generated report files
mailboxes
To back up the configuration file
 
Although mailboxes and quarantines cannot be downloaded to your management computer, you can configure the FortiMail unit to back up mail data by storing it externally, on a NAS server. For details, see “Selecting the mail data storage location”.
1. Go to Maintenance > System > Configuration.
2. In the Backup Configuration area:
Enable System configuration.
Click Backup.
Your management computer downloads the configuration file. Time required varies by the size of the file and the speed of your network connection. You can restore the backup configuration later when required. For details, see “Restoring the configuration”.
To back up the Bayesian databases
1. Go to Maintenance > AntiSpam > Database Maintenance.
2. Click Backup Bayesian database.
Your management computer downloads the database file. Time required varies by the size of the file and the speed of your network connection.
To back up the mail queues
1. Go to Maintenance > System > Mail Queue.
2. Click Backup Queue.
Your management computer downloads the database file. Time required varies by the size of the file and the speed of your network connection.
To back up the block/safe list database
1. Go to Maintenance > AntiSpam > Block/Safe List Maintenance.
2. Click Export Block/Safe List.
The database will be saved on your management computer as a .fml file. This database file contains the system-wide, per-domain and per-user block lists and safe lists.
To import the block/safe list database
1. Go to Maintenance > AntiSpam > Block/Safe List Maintenance.
2. Click Import Block/Safe List.
The file to be imported must be the .fml file that has been exported from FortiMail.
To back up email users’ accounts (server mode only)
1. Go to User > User > User.
2. Click Export .CSV.
Your management computer downloads the user account spreadsheet file. Time required varies by the size of the file and the speed of your network connection.
To back up the global address book (server mode only)
1. Go to Mail Settings > Address Book > Contacts.
2. Click Export.
3. On the pop-up menu, select CSV.
You are prompted for a location to save the file. Follow the prompts and click Save.
Your management computer downloads the address book spreadsheet file. Time required varies by the size of the file and the speed of your network connection.
To back up customized appearances of the web UI and webmail UI
1. Go to System  > Customization > Appearance.
2. In Administration interface, for each image file, save the image to your management computer.
Methods vary by web browser. For example, you might need to click and drag the images into a folder on your management computer in order to save them to that folder. For instructions, see your browser’s documentation.
3. Click the arrow to expand Webmail interface.
4. For each webmail language, click the name of the language to select it, then click Download.
Your management computer downloads the language file. Time required varies by the size of the file and the speed of your network connection.
5. To back up email archivesGo to Maintenance > System > Mail Data.
 
In addition to downloading email archives to your management computer, you can configure the FortiMail unit to store email archives on an SFTP or FTP server. For details, see “Managing archived email” and “Configuring email archiving accounts”.
6. Continue using the instructions in “Configuring mailbox backups”.