1

Topic: transfer emails to new email server

==== Required information ====
- iRedMail version: 0.8.7
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Linux/BSD distribution name and version: Ubuntu 14.04
- Related log if you're reporting an issue:
====

Hi I have a new server and I want to do the following.. I want to transfer a domain pointed to an email server ( iRedMail ) to a new server with same iRedMail version etc. the only problem I encounter is the emails I have received. Is there a nice easy way to transfer them into my new server?

Thanks in advance

----

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

2

Re: transfer emails to new email server

Mails are stored in Maildir/ format, so it's ok to copy them to new iRedMail server directly. Just make sure the maildir path stored in SQL database are the same as the path on file system.

3 (edited by reshadfar 2014-09-29 22:53:54)

Re: transfer emails to new email server

Ah thanks. Is there a common way of doing this in a specific order or Do I need to create the email accounts on the new server first before uploading?

And is this the only dir I need?

/var/vmail/vmail1/mydomain.com/p/o/s/postmaster-2014.09.28.13.52.42/Maildir/maildirfolder

Or all of them

/var/vmail/vmail1/mydomain.com/p/o/s/postmaster-2014.09.28.13.52.42/Maildir/.Drafts/maildirfolder
/var/vmail/vmail1/mydomain.com/p/o/s/postmaster-2014.09.28.13.52.42/Maildir/.Junk/maildirfolder
/var/vmail/vmail1/mydomain.com/p/o/s/postmaster-2014.09.28.13.52.42/Maildir/.Sent/maildirfolder
/var/vmail/vmail1/mydomain.com/p/o/s/postmaster-2014.09.28.13.52.42/Maildir/.Trash/maildirfolder

4

Re: transfer emails to new email server

reshadfar wrote:

Ah thanks. Is there a common way of doing this in a specific order or Do I need to create the email accounts on the new server first before uploading?

No specific order.

reshadfar wrote:

And is this the only dir I need?
/var/vmail/vmail1/mydomain.com/p/o/s/postmaster-2014.09.28.13.52.42/Maildir/maildirfolder
Or all of them
/var/vmail/vmail1/mydomain.com/p/o/s/postmaster-2014.09.28.13.52.42/Maildir/.Drafts/maildirfolder
/var/vmail/vmail1/mydomain.com/p/o/s/postmaster-2014.09.28.13.52.42/Maildir/.Junk/maildirfolder
/var/vmail/vmail1/mydomain.com/p/o/s/postmaster-2014.09.28.13.52.42/Maildir/.Sent/maildirfolder
/var/vmail/vmail1/mydomain.com/p/o/s/postmaster-2014.09.28.13.52.42/Maildir/.Trash/maildirfolder

All under /var/vmail/vmail1/mydomain.com/p/o/s/postmaster-2014.09.28.13.52.42/Maildir/.

An easy way is transferring with tool "imapsync", then you don't need to worry about maildir path.