maildir
Use these commands to archive old mail, rebuild mail folders and preference files.
Syntax
diagnose maildir status mailbox <user_email> <folder_name>
diagnose maildir archive mailbox <user_email> <folder_name> {<emails_int> | <date_str>} <archive-folder_name>
diagnose maildir rebuild preference <user_email> {no | yes}
diagnose maildir rename mailbox <user_email> <folder_name>
diagnose maildir rename user <user_name> <new-user_name> <protected-domain_name>
diagnose maildir reset folder-size archive <archive-account_name>
diagnose maildir reset folder-size quarantine
diagnose maildir reset folder-size mail <protected-domain_name> <user_name>
diagnose maildir reset quota-size <user_email>
diagnose maildir rebuild mailbox archive <archive-account_name> [<folder_name>]
diagnose maildir rebuild mailbox quarantine <system-quarantine-account_name> [<folder_name>]
diagnose maildir rebuild mailbox domain <protected-domain_name> [<folder_name>]
diagnose maildir rebuild mailbox user [<folder_name>]
|
Variable |
Description |
Default |
|
Select whether or not to overwrite any existing files. |
|
|
|
Enter the email archive account name. |
|
|
|
Enter the name of a folder where FortiMail will move the archived email. |
|
|
|
Enter a date such as |
|
|
|
Enter how many of the oldest email will be archived. |
|
|
|
Enter the name of a mail folder, such as If the folder name is optional, then the command affects all mail folders within the scope of the command. |
|
|
|
Enter the new name of the folder. |
|
|
|
Enter the new name of the local part (username). |
|
|
|
Enter the name of a protected domain, such as |
|
|
|
Enter the system quarantine account name. |
|
|
|
Enter the email address of a user in a protected domain, such as |
|
|
|
Enter the local part (username) of an email address in the protected domain. |
|
Example
FortiMail # diagnose maildir status mailbox user@example.com Sent
System Time: 2025-05-23 14:12:26 EDT (Uptime: 15d 3h 9m)
3 emails exist in Sent