On 16/10/2020 17:27, Mogens Melander wrote:
> Another option is https://github.com/imapsync/imapsync
I looked at imapsync but it wasn't really suitable... first off it isn't
free, second the "new server" has had a lot of work done on it since the
migrations - the folder structure is has been changed and there are new
sieve rules that I would like to apply to the migrated messages.
In the end, I went for the sendmail option and it worked really well for
my needs. In case it helps others, here is what I did...
(1) export messages received since 23rd August:
$ cd /path/to/user/mailbox
$ find . -type f -newermt "2020-08-23" \! -name '*.index' \! -name
'*.cache' \! -name 'cyrus.header' -exec tar -rvf /root/mails.tar {} \;
(2) copy mails.tar to new server
(3) import messages
$ mkdir temp; cd temp
$ tar xf ~/mails.tar
$ find . -type f -exec sh -c 'docker exec -i postfix sendmail
myuser@internal < {}' \;
You'll note that my Postfix server is running in a Docker container (as
are the other components of my mail server).
Anyway, glad to have it sorted.
------------------------------------------
Cyrus: Info
Permalink:
https://cyrus.topicbox.com/groups/info/Tf73c97bc3b966c1d-Mb72d6af099ebfa2cf02a5006
Delivery options: https://cyrus.topicbox.com/groups/info/subscription