Solution
In the example below we shall migrate the account user1@example.org to user2@example.org. In other words, we shall copy messages from user1@example.org to user2@example.org. The example.org domain is defined locally in Axigen and user1 and user2 are accounts defined in this domain.
-
First connect to the CLI interface
telnet "Axigen IP" 7000 -
Login as admin
<login> USER admin
<password> "admin password" -
Go to the domain context
<#> UPDATE Domain example.org -
Type HELP to get the list of the available commands within this context. The MIGRATE command has the following syntax:
MIGRATE
account <accountname> — the account name for migration
remoteHost <host> — the host of the migration server
remotePort <port> — the port of the migration server
remoteUser <imap-user> — the imap username of the migration server
remotePass <imap-pass> — the imap password of the migration server
[ignoreFolders (folders)] — list of folders separated by spaces not to be migrated (you must escape SPACE in a folder name with "" even in quotes)
[overrideQuota <yes|no>] — specifies if the mailbox quota should be overridden (default: no)
[deleteOriginal <yes|no>] — enables/disables deletion of all migrated messages on the remote server (default: no)
[structureOnly <yes|no>] — enables migration of only the directory structure (default: no)
[verbose <yes|no>] — specifies if the command should be verbose (default: no)Warning
The migrate command, when the overrideQuota parameter is set to its "no" default, will migrate emails until the mailbox Quota is reached. If overrideQuota is set to "yes", all the emails will be migrated but the mailbox Quota could be exceeded, in which case the account will no longer receive any more emails.
-
To migrate user1 to user2, the following command will suffice. You can also add additional options, such as settings verbose to "yes".
<domain#> MIGRATE account user2 remoteHost 127.0.0.1 remotePort 143 remoteUser user1@example.org remotePass user1_passwordNote
Please replace "user1_password" with the actual password for user1@example.com