私は 10 年以上 Thunderbird を使用しており、常にサーバーから 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 が生成したものをインポートするツールがありますか?