Synchronize email folders
I moved services to a new server (VPS) when I had issues with my hardware. Now I have copied data from the disk of the old server into the VPS. On the VPS, mail is delivered to /var/spool/virtual/DOMAIN/USER/Maildir/
I have the old emails in /root/DOMAIN/USER/Maildir.
What is the easiest way to import the old emails into the current active folders without causing chaos with MuAs??
-- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254 7 3200 0004/+254 7 2274 3223 In an Internet failure case, the #1 suspect is a constant: DNS. "Oh, the cruft.", egrep -v '^$|^.*#' ¯\_(ツ)_/¯ :-) [How to ask smart questions: http://www.catb.org/~esr/faqs/smart-questions.html]
On 13/08/2024 15:25 EEST Odhiambo Washington via dovecot dovecot@dovecot.org wrote:
I moved services to a new server (VPS) when I had issues with my hardware. Now I have copied data from the disk of the old server into the VPS. On the VPS, mail is delivered to /var/spool/virtual/DOMAIN/USER/Maildir/
I have the old emails in /root/DOMAIN/USER/Maildir.
What is the easiest way to import the old emails into the current active folders without causing chaos with MuAs??
Test first, but I think it was
doveadm sync -1Ru user@domain maildir:/root/DOMAIN/USER/Maildir
Aki
Odhiambo Washington via dovecot skrev den 2024-08-13 14:25:
I moved services to a new server (VPS) when I had issues with my hardware. Now I have copied data from the disk of the old server into the VPS. On the VPS, mail is delivered to /var/spool/virtual/DOMAIN/USER/Maildir/
I have the old emails in /root/DOMAIN/USER/Maildir.
What is the easiest way to import the old emails into the current active folders without causing chaos with MuAs??
lots of things can be done incorrect :)
https://doc.dovecot.org/admin_manual/migrating_mailboxes/
make local mbox files, then import it in roundcube webmail, untested from my point
or use imapsync
not all is perfect
On Tue, Aug 13, 2024 at 4:45 PM Benny Pedersen via dovecot < dovecot@dovecot.org> wrote:
Odhiambo Washington via dovecot skrev den 2024-08-13 14:25:
I moved services to a new server (VPS) when I had issues with my hardware. Now I have copied data from the disk of the old server into the VPS. On the VPS, mail is delivered to /var/spool/virtual/DOMAIN/USER/Maildir/
I have the old emails in /root/DOMAIN/USER/Maildir.
What is the easiest way to import the old emails into the current active folders without causing chaos with MuAs??
lots of things can be done incorrect :)
https://doc.dovecot.org/admin_manual/migrating_mailboxes/
make local mbox files, then import it in roundcube webmail, untested from my point
or use imapsync
not all is perfect
doveadm sync -1Ru user@domain maildir:/root/DOMAIN/USER/Maildir
That did it well.
-- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254 7 3200 0004/+254 7 2274 3223 In an Internet failure case, the #1 suspect is a constant: DNS. "Oh, the cruft.", egrep -v '^$|^.*#' ¯\_(ツ)_/¯ :-) [How to ask smart questions: http://www.catb.org/~esr/faqs/smart-questions.html]
participants (3)
-
Aki Tuomi
-
Benny Pedersen
-
Odhiambo Washington