1

Topic: Mail migration issue

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.5-1
- Linux/BSD distribution name and version: Ubuntu 16.04.3 LTS
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx):Apache
- Manage mail accounts with iRedAdmin-Pro? No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

Hello,

I have migrated old server to new one sometime ago and I've noticed that I cannot see old emails in roundcube. On old mailserver I had different email and user name, maybe here is problem? Anyway grep and cat are showing this mials properly. Timestamps are wrong, i made a mistake coping them rawly..

Sample:
old
-rwx------ 1 vmail vmail     3512 mar  1  2017 1485246197.M646469P9769.vs01.mailsrv.lan,S=3512,W=3614:2,S
-rw------- 1 vmail vmail    35999 mar  1  2017 1485264882.M868590P2191.vs01.mailsrv.lan,S=35999,W=36579:2,S
-rw------- 1 vmail vmail   295345 mar  1  2017 1487969837.M226635P10114.vs01.mailsrv.lan,S=295345,W=299214:2,S
new
-rw------- 1 vmail vmail    32127 mar  1  2017 1488361933.M706579P12452.VS07,S=32127,W=32660:2,S

----

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

2

Re: Mail migration issue

File names doesn't matter, Dovecot will rename it automatically. The problem is, did you copy the mails to correct mailbox?

3 (edited by spaw17 2017-10-18 16:08:10)

Re: Mail migration issue

Well, yes I want this emails to be shown at exacly this mailbox. What about username and email? They are also different than previous.

Old server: user1@olddomain.com

New server:
user2@newdifferentdomain.org with alias of olddomain.com

4

Re: Mail migration issue

You must make sure you copied mail messages to the correct mailbox on new server, otherwise you cannot see old emails on new server.

The mailbox path is stored in SQL table "vmail.mailbox". Check /etc/dovecot/dovecot-mysql.conf to figure it out.