my own conf = Debian Buster / ispConfig 3.1 Apache Hello, my mailboxes were on a Plesk server. I left this provider and he provided me with an archive of all my mailboxes from the qmail directory : Code: cd /var/qmail drwxr-xr-x 18 root root 4.0K Mar 21 22:51 . drwxr-xr-x 8 root root root 4.0K Sep 17 16:38 mailnames -rw-r--r-- 1 root root 157M Sep 17 16:54 mailnames_bkup.tar Can I reimport these directories one by one into each corresponding mailbox in ispConfig? And where are they in ispConfig ? These were IMAP accounts I saw that there was a procedure with a Remote_User but as I don't have access to the old server anymore, I'm looking for an alternative solution. Thanks
ISPConfig stores mailboxes in Maildir format, they are located in /var/vmail/domain.tld/user/Maildir/ I don't know how Plesk stores them, so I can't tell you if you can just copy them or if they need to be converted.
hi @till , they look like cousins, don't you think? Code: +———————— Plesk directories organisation —————+ root@srv-plesk:/var/qmail/mailnames/my_domain.tdl/contact/Maildir# ls -lah drwx------ 5 popuser popuser 4.0K Mar 21 15:15 .Archive drwx------ 5 popuser popuser 4.0K Mar 21 15:15 .Calendar drwx------ 5 popuser popuser 4.0K Mar 21 15:15 .Configuration drwx------ 5 popuser popuser 4.0K Mar 21 15:15 .Contacts drwx------ 2 popuser popuser 196K Sep 14 17:00 cur -rw------- 1 popuser popuser 0 Mar 21 12:50 dovecot-acl-list -rw------- 1 popuser popuser 34K Sep 14 17:00 dovecot.index -rw------- 1 popuser popuser 1.7M Sep 16 17:02 dovecot.index.cache -rw------- 1 popuser popuser 9.8K Sep 16 17:02 dovecot.index.log -rw------- 1 popuser popuser 12K Mar 21 12:50 dovecot.index.thread -rw------- 1 popuser popuser 76 Mar 21 12:50 dovecot-keywords -rw------- 1 popuser popuser 1.7K Sep 14 08:10 dovecot.list.index -rw------- 1 popuser popuser 2.0K Sep 15 00:29 dovecot.list.index.log -rw------- 1 popuser popuser 312 Mar 21 12:50 dovecot.mailbox.log -rw------- 1 popuser popuser 94K Sep 16 17:02 dovecot-uidlist -rw------- 1 popuser popuser 8 Mar 21 12:50 dovecot-uidvalidity -r--r--r-- 1 popuser popuser 0 Mar 21 12:50 dovecot-uidvalidity.5d6260f9 drwx------ 5 popuser popuser 4.0K Sep 10 14:44 .Drafts drwx------ 5 popuser popuser 4.0K Mar 21 15:15 .Files drwx------ 5 popuser popuser 4.0K Mar 21 15:15 .Freebusy drwx------ 5 popuser popuser 4.0K Mar 21 15:15 .INBOX.Spam drwx------ 5 popuser popuser 4.0K Mar 21 15:15 .Journal -rw------- 1 popuser popuser 4.9K Sep 16 17:02 maildirsize drwx------ 2 popuser popuser 16K Sep 16 17:02 new drwx------ 5 popuser popuser 4.0K Mar 21 15:15 .Notes drwx------ 5 popuser popuser 4.0K Jul 8 18:23 .Sent drwx------ 5 popuser popuser 4.0K Sep 14 17:03 .Spam -rw------- 1 popuser popuser 109 Mar 21 12:50 subscriptions drwx------ 5 popuser popuser 4.0K Mar 21 15:15 .Tasks drwx------ 2 popuser popuser 4.0K Sep 16 17:02 tmp drwx------ 5 popuser popuser 4.0K Sep 15 00:24 .Trash +———————— end ————————+ +———————— ispConfig Fresh install first mailBox ————————+ root@srv-isp:/var/vmail/my_domain.tdl/contact/Maildir# ls -lah drwx------ 2 vmail vmail 4.0K Sep 17 18:57 cur -rw------- 1 vmail vmail 1.9K Sep 17 18:57 dovecot.index.cache -rw------- 1 vmail vmail 536 Sep 17 18:57 dovecot.index.log -rw------- 1 vmail vmail 1.7K Sep 17 18:57 dovecot.list.index.log -rw------- 1 vmail vmail 112 Sep 17 18:57 dovecot-uidlist -rw------- 1 vmail vmail 8 Sep 17 18:57 dovecot-uidvalidity -r--r--r-- 1 vmail vmail 0 Sep 17 18:57 dovecot-uidvalidity.5f63b182 drwx------ 5 vmail vmail 4.0K Sep 17 18:57 .Drafts drwx------ 5 vmail vmail 4.0K Sep 17 18:57 .Junk drwx------ 2 vmail vmail 4.0K Sep 17 18:57 new drwx------ 5 vmail vmail 4.0K Sep 17 18:57 .Sent -rwxr--r-- 1 vmail vmail 23 Sep 17 18:57 subscriptions drwx------ 2 vmail vmail 4.0K Sep 17 18:57 tmp drwx------ 5 vmail vmail 4.0K Sep 17 18:57 .Trash +———————— end ————————+
Yes, seems to be maildir format as well. Copy it over, chown everything to user and group vmail, then connect with an imap client and check if the emails are visible.
acount by account ? example : "/contact/Maildir/" from Plesk > "/contact/Maildir" @ ispConf /var/vmail/domain.tdl/
Yes, the content from plesk Maildir folder must end up in the Maildir folder of the ISPConfig account, in the same way you compared the two folders in the post above.
It works perfectly !!! I even tried, after passing a vmail:vmail chmod on the whole directory, to first move the mail accounts in /var/vmail/web_account in ispConfig, and then create in the Panel the account+DGKM+password, it recognizes everything > RoundCube I think you have a strong argument to convince those who would like to switch from Plesk to ispConfig but are afraid of losing their mail accounts Code: root@srv-plesk:/var/qmail/mailnames (mailsAccounts) >> scp root@srv-ispconfig:/var/vmail/ ;-) maybe even an import script in isp? Why not. On the other hand, I wasn't using the contacts or calendar functions, I think that's stored in a database. Thanks for the help.
yes I saw, rather complex and rather frightening for a non-specialist. Maybe a global_checkBox_function "check_all"
No, its actually really easy to use, just answer a few simple questions and everything gets migrated automatically.
In fact it work ! Maybe, just erase dovecot.index files, and be patient if you have a big Maildir. Finally, it doesn't really work. At the first opening of roundcube after the transfer and the "chmod -r vmail:vmail /Maildir" on new server, the list of old messages appears but in gray. And the first time the mail is picked up, the new one takes its place and deletes the old ones.