大网数据广告活动
服务器运维问答

Sync a Maildir backup to an account

· 52CE 我爱测

I have a client who created about 20 mailboxes on a server, and they have been using them for a few weeks. So there is mail in them, that can't be lost. Now they recovered a backup of those mailboxes from an old hosting company, …

问题原文

原帖链接 · Ulrar · CC BY-SA 3.0

I have a client who created about 20 mailboxes on a server, and they have been using them for a few weeks. So there is mail in them, that can't be lost.

Now they recovered a backup of those mailboxes from an old hosting company, and they want me to merge those backups with the current mailboxes. I tried a lot of things with dsync and doveadm sync but I can't find the correct syntax, could someone help me ?

Basically, I just want to merge let's say /home/backup/account1/Maildir to /home/vmail/domain.tld/account1/. On this server [email omitted] will already be referencing /home/vmail/domain.tld/account1 according to the dovecot configuration, so I should be able to use -u if I understand it correctly, but how do I reference the backup ? looks like doveadm sync is only compatible with an other dovecot server, which I don't have ? I was thinking about just setting up a whole other mail server and using imapsync, which is really easy to use, but I think there must be a way to do it with doveadm sync or dsync that doesn't involve that must lost time. Thanks

已采纳解答

原帖链接 · Marc Pope · CC BY-SA 4.0

You can use imapcopy or imapsync software to merge servers together. I use it all the time to make mail backups. The downside is you need to know the passwords to the accounts.

https://imapsync.lamiral.info/

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2016-05-04)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0 / CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。