Email backup
Kerio MailServer can store copies of all messages (or only messages sent to the Internet) in special archiving folders or re-send them to another SMTP server. This makes it easy to keep backup copies of all messages for cases where it is necessary to look for a specific message or message deleted by mistake.
Set parameters for email archiving in the Configuration Archiving section.
Figure 23. Archiving tab
- Enable mail archiving
- Self explanatory.
- Archive to remote address
- Email will be re-sent to this remote email address.
- Archive to local folder
- Copies of email messages will be stored in local folders, created automatically in the name space #archive (on the disk, it appears in the mail_archive folder in the directory where Kerio MailServer is installed) according to a defined format.
- Interval used for creating...
- A suitable interval for creating archive folders can be set in this option. Note: The interval for creating new archiving folders (implied from the name format) is up to the Kerio MailServer administrator. We recommend bearing in mind the number of messages passing through the MailServer (or the number of local users). A greater number of folders containing smaller numbers of messages is faster to access and easier to comprehend.
- Compress old archive folders
- When this option is selected, the folder can be archived.
- Local messages (local sender, local recipient)
- All local messages (messages sent from the local domain) will be archived.
- Incoming messages (remote sender, local recipient)
- All incoming messages will be archived (from remote senders to local recipients).
- Outgoing messages (local sender, remote recipient)
- All outgoing messages will be archived (from local senders to remote recipients).
- Relayed messages (remote sender, remote recipient)
- All messages forwarded to a relay server will be archived (from remote senders to remote recipients).
- Archive messages before...
- This option enables archiving of all messages before the antivirus check is started. All messages will be stored intact (including viruses) in these files.
By default, archive folders are available to the admin of the primary domain (see chapter User Accounts). The Admin can also assign access rights to archive folders for other users. This may be done in Kerio WebMail (refer to the Kerio WebMail user guide) or in MS Outlook (see chapter Public and archive folders) supported by the Kerio Outlook Connector. However, since messages of all users are archived, only a confidential administrator (or a tiny group of confidential persons) should be allowed to access these folders.
is used for recovering of the backup data. To launch this application, run the kmsrecover command from the directory where Kerio MailServer is installed. The command must contain path to the backup directory as an attribute.
If location of directories with configuration and data files is different from the default location, the command must be entered with a correct attribute and path to the directory:
Usage:
kmsrecover [-s <store directory>] [-c <config directory>] <directory>|-f <filename>
Parameters:
-
-s [directory] this attribute allows changing the directory with configuration files
-
-c [directory] this attribute allows changing the directory where the data from Kerio MailServer are stored (store directory - mail folders) .
-
-f [file] this attribute allows specifying a path to a specific file.
You can also see these details and examples to individual attributes, by running the kmsrecover command on Windows, Mac OS X and Linux.
Warning 1: It is necessary to stop the Kerio MailServer Engine prior to the recovery.
Warning 2: Applying a full or copy backup will overwrite the existing store. Applying any backup will overwrite the existing configuration.
Recovery examples:
Example 1:
The simplest way storing the configuration directory as well as the backup in the standard path:
C:\Program Files\Kerio\MailServer.
If you want to recover all the backup data (as in case of their loss or corruption), simply enter the kmsrecover command with the path to the backup directory in the command line:
kmsrecover "C:\Program Files\Kerio\
MailServer\store\backup\20040710T093159Z"
Example 2:
Conditions:
-
The path to the configuration and store directory is (C:\Program Files\Kerio\ MailServer).
-
The backup directory is stored in C:\MailServer folder.
-
Only one specific file (e.g. the last backup copy) is to be recovered.
Solution:
Enter kmsrecover together with the path to the backup file and the -f attribute in the command line. This way, you can define path to one specific file:
kmsrecover -f "C:\MailServer\backup\
20040710T093159Z\F20040712T093159Z3.tar.gz"
Example 3:
Conditions:
-
The configuration directory has been installed in C:\KerioMailServer.
-
The store directory (with backups) is stored in removable backup D:\store disc.
-
The complete backup is to be rewritten the last full backup and all its partial backups.
Solution:
Use kmsrecover with attributes that define the configuration directory ( -c), the store directory with backups ( -s) and the backup directory:
kmsrecover -c "C:\KerioMailServer -s
D:\store D:\store\backup\20040710T093159Z"
