2

我使用 Thunderbird 超过 10 年,并且总是通过 POP3 从服务器加载我的邮件,所以现在我在本地存储了数千封旧邮件。我这些年来使用的邮件服务器是由一个朋友在他的机器上管理的。

但是多年来,我一直在自己的机器上管理自己的网络服务器,我认为将所有邮件存储在该服务器上以便通过 IMAP 从我想要的任何地方访问它们会很好。所以这周我在远程机器上安装了 postfix 和 dovecot,现在我想将旧的本地邮件迁移到新的远程服务器机器上。

如何才能做到这一点?

我以为我将 Thunderbird 文件夹从本地机器(iMac)复制到服务器(Ubuntu 14.04),然后启动一个程序,将这些数据转换为 dovecot 的 maildir 格式。但我没有找到承诺完成这项工作的程序。

这是我的 iMac 上 Thunderbird(源代码)的文件夹结构(OS X 是类似 linux 的 unix 克隆):

/Users/hubert/Library/Thunderbird/
/Users/hubert/Library/Thunderbird/profiles.ini
/Users/hubert/Library/Thunderbird/Crash Reports/    (content not listed here)
/Users/hubert/Library/Thunderbird/Profiles/
/Users/hubert/Library/Thunderbird/Profiles/5dbq1dv5.default/   (contains about 300 objects, some of them folders with sub-folders)

这是发送和接收一些测试邮件后服务器(目标)上的文件夹结构:

/var/vmail/
/var/vmail/somedomain.tld/
/var/vmail/somedomain.tld/alice/
/var/vmail/somedomain.tld/alice/Maildir/
/var/vmail/somedomain.tld/alice/Maildir/.Sent/
/var/vmail/somedomain.tld/alice/Maildir/.Sent/cur/
/var/vmail/somedomain.tld/alice/Maildir/.Sent/cur/1409927006.M639655P25883.km20118-01,S=573,W=590:2,S
/var/vmail/somedomain.tld/alice/Maildir/.Sent/cur/1409927148.M158894P26271.km20118-01,S=383,W=395:2,S
(some more mails with similar names)
/var/vmail/somedomain.tld/alice/Maildir/.Sent/new/   (empty folder)
/var/vmail/somedomain.tld/alice/Maildir/.Sent/tmp/   (empty folder)
/var/vmail/somedomain.tld/alice/Maildir/.Sent/dovecot-uidlist
/var/vmail/somedomain.tld/alice/Maildir/.Sent/dovecot.index.cache
/var/vmail/somedomain.tld/alice/Maildir/.Sent/dovecot.index.log
/var/vmail/somedomain.tld/alice/Maildir/.Sent/maildirfolder
/var/vmail/somedomain.tld/alice/Maildir/cur/   (contains some mails)
/var/vmail/somedomain.tld/alice/Maildir/new/   (empty folder)
/var/vmail/somedomain.tld/alice/Maildir/tmp/   (empty folder)
/var/vmail/somedomain.tld/alice/Maildir/dovecot-uidlist
/var/vmail/somedomain.tld/alice/Maildir/dovecot-uidvalidity
/var/vmail/somedomain.tld/alice/Maildir/dovecot-uidvalidity.54096df6
/var/vmail/somedomain.tld/alice/Maildir/dovecot.index.cache
/var/vmail/somedomain.tld/alice/Maildir/dovecot.index.log
/var/vmail/somedomain.tld/alice/Maildir/dovecot.mailbox.log
/var/vmail/somedomain.tld/alice/Maildir/maildirfolder
/var/vmail/somedomain.tld/alice/Maildir/subscriptions
/var/vmail/somedomain.tld/alice/Maildir/
/var/vmail/somedomain.tld/bob/
/var/vmail/somedomain.tld/bob/Maildir/   (same structure as in alice/Maildir/)
/var/vmail/otherdomain.tld/   (same structure as in somedomain/)

Thunderbird 有一个名为“ImportExortTools”的附加组件,但是当我导出邮件时,我没有得到 Maildir 结构。我不知道如何将其转换为 maildir 格式。

dovecot 是否有一个工具可以导入 ImportExortTools 生成的东西?

4

2 回答 2

3

不要关心 Thunderbird 及其数据结构。

只需在 Thunderbird 中配置和设置 IMAP 服务器,然后将所有本地文件夹/邮件移动到 IMAP 服务器(通过拖放)。

IMAP 服务器将处理它自己的数据结构——如果您以这种方式配置它,那么在您的情况下这将是 maildir。

于 2014-09-06T12:27:42.227 回答
1

Just take your mbox-files from Thunderbird only (without these .msf index files) and copy them to temporary folders on your new server.

In the package of dovecot you find a commandline program, that is able to import your mbox files into your dovecot configuratione VERY QUICKLY and without any mistakes.

I have converted 100.000s of mails this way very quickly.

Sorry, I don't know the name of this program anymore - but look out for the things, that come together with dovecot.

于 2015-07-11T03:53:46.157 回答