1

Topic: Merge mailbox

==== Required information ====
- iRedMail version (check /etc/iredmail-release):
- Linux/BSD distribution name and version: Redhat 6
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Apache
- Manage mail accounts with iRedAdmin-Pro? Yes
- Related log if you're reporting an issue:
====

Hello, is it possible to merge inboxes? So the emails stored in user@domain.com and user2@domain.com can be moved/stored in to a third account, e.g. user3@domain.com

The reason I ask if we have some former employees in our CS team and for ease of searching archived data (there is nothing personal on these accounts, strictly work) it would be useful if we could merge the accounts.

This also allows us to free up and re-use accounts with new staff.

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Merge mailbox

*) A possible solution is: share user@ and user2@'s mailboxes to user3@. This can be done with Roundcube webmail, plugin 'acl'.

*) Another solution is, copy the mailboxes directly (on file system). Steps:

1) create new user 'user3@'.
2) Copy the whole user@'s mailbox to user3@'s mailbox. for example, user@'s mailbox is '/var/vmail/.../user/Maildir/', and user3@'s mailbox is '/var/vmail/.../user3/Maildir/', then copy user@'s whole mailbox with command like below:

cp -rf /var/vmail/.../user/Maildir /var/vmail/.../user3/Maildir/.user1
chown -R vmail:vmail /var/vmail/.../user3/Maildir/.user1

Note: there's a dot (user3/Maildir/.user1).
3) Copy user2@'s mailbox like step 2).

That's it.

3

Re: Merge mailbox

Thank you very much Zhang! Very helpful as always smile