Hi to everybody, I'm ready with my ISPConfig mailserver. Now I need to copy emails from the old mailserver to the new one. Is enough just copying files from the old /var/vmail to the new one? Thanks Michele
yes, just copy the whole directory tree. make sure that the files are still owned by user and group vmail afetr you copied them.
thanks Till for your answer. Basically I've created before in the new server all the domains and email addresses, then I've canceled in /var/vmail and copied it from the old one. At the end chown -R vmail:vmail /var/vmail and it's working. Now one question: to make the quota working, I've to setup the quota in ISPConfig for all of them again... is there a faster way to do it? Thanks Michele
The quota files are stored in the maildirs, so no need to redo it on the new server as you copied all email quota info together with the maildirs. For email, Linux quota is not used.
Hi Till, what do you mean Linux quota is not used? I'm copying across the whole /var/vmail, but of course the old file /var/vmail/domain/user/maildirsize has the old configuration of the quota... so I notice that if I setup in ISPConfig the quota again, that file will be overwrite with the new quota configuration... Is it correct or am I wrong? Thanks Michele
Thats correct. But if you moved a setup, you must have mocved the ispconfig database to the new server as well, so everything is in sync. If you did not move the ispconfig database, you will have to recreate all accounts and passwords of course.
In the old server I don't have ISPConfig. I have it just on the new one. So what I'm doing is 1) in the new server I'll create the scenario (domains and emails) 2) I move the /var/vmail/domain from the old to the new one 3) I setup the correct permission on /var/vmail/domain 4) In the ISPconfig I'll setup the quota That's it... (I hope)