Copy mails from old to new postfix installation

The answer was doveadm sync:

doveadm sync -A remote:<ip-adress>

I had to rm the files that I copied earlier (otherwise I would run into a permission error).

They have a neat documentation