Fortinet white logo
Fortinet white logo

CLI Reference

db

db

Use this command to repair, rebuild, or reset the following FortiMail databases:

  • Address book
  • Bayesian database
  • Certificate database
  • Customized messages
  • Dictionaries
  • DKIM key database
  • Email migration database
  • End point database
  • End point sender reputation database
  • Greylist database
  • Greylist exempt database
  • IBE database
  • Sender reputation database
  • User alias database
  • User address mapping database

Syntax

execute db dump

execute db force-recover

execute db info

execute db rebuild

execute db reset <database>

execute db restore

execute db transfer

Variable

Description

Default

dump

Dumps one database file for troubleshooting.

force-recover

Try to repair all of the databases using force recovery.

info

Provides database information.

rebuild

Clean and rebuild all of the databases.

reset <database>

Clean and rebuild one of the FortiMail databases. <database> is one of the above-listed databases.

restore

Restores one database.

transfer

Transfer last dumped db file to a remote server via FTP, SCP, or TFTP.

Use the following format:

execute db transfer {ftp-dump | scp-dump | tftp-dump} <file-name> <server-ip> <username> <password>

Related topics

maintain

db

db

Use this command to repair, rebuild, or reset the following FortiMail databases:

  • Address book
  • Bayesian database
  • Certificate database
  • Customized messages
  • Dictionaries
  • DKIM key database
  • Email migration database
  • End point database
  • End point sender reputation database
  • Greylist database
  • Greylist exempt database
  • IBE database
  • Sender reputation database
  • User alias database
  • User address mapping database

Syntax

execute db dump

execute db force-recover

execute db info

execute db rebuild

execute db reset <database>

execute db restore

execute db transfer

Variable

Description

Default

dump

Dumps one database file for troubleshooting.

force-recover

Try to repair all of the databases using force recovery.

info

Provides database information.

rebuild

Clean and rebuild all of the databases.

reset <database>

Clean and rebuild one of the FortiMail databases. <database> is one of the above-listed databases.

restore

Restores one database.

transfer

Transfer last dumped db file to a remote server via FTP, SCP, or TFTP.

Use the following format:

execute db transfer {ftp-dump | scp-dump | tftp-dump} <file-name> <server-ip> <username> <password>

Related topics

maintain