Maybe to be more clear do Can we migrate Email Box with Domain like we do with DNS. On DNS we can import from files, Can we do the same to Email,. Thanks
Which mail storage format does your current mailserver use (mbox, maildir,...) and which imap server daemon do you use?
ispconfig supports courier imap and uses also Maildir format. You ca use the ispconfig remote api to write a script that creates all mailboxes in ispconfig automatically. We offer also development services to write such import scripts if you are not that familar with php / soap. after the mailboxes have been created, you can copy over all maildirs to the new location with a script. in ispconfig, mailboxes are stored in /var/vmail/domain.tld/user/Maildir/ In case you want to migrate to dovecot, then there is a script available for the conversion of the maildir format here in the forum.
imapsync You could take a look at imapsync. It will log into an imap account on two servers and sync the folders. It can be found here :- http://imapsync.lamiral.info/ An older free version can be found here https://fedorahosted.org/imapsync/ Hope this helps
thanks, i understand that after using imaosync, customer can access using imap, how about if they want to access using pop3 ???/
As far as I know pop3 should see the same emails as imap does, we just happen to use imap to move them. It does mean you will need the email account to be available on both machines. I had to create each email address by hand on the new server first. You will also need the password for each user so imaosync can log in. I have used this to transfer accounts from one server to another but only did one account at a time, rather than writing a script to call imapsync for each user. If you have a lot of accounts a script would be the way to go.
Something like this, if you have access to user names and unencrypted passwords. mass email migration from imap to google apps using imapsync/ Change the source and destination servers in the script. Create a user file and you should be set.
Why so complicated if you can simply copy over the mailboxes with cp? Like I explained above, the maildir format is compatible, no need to use imapsync which is slow and requires you to have cleartext password for each mailbox. Imapsync should only be used when you have to convert to a mail store format were no converter exists or when you do not have access to the filesystems of the source or target server, but thats not the case here as there is not even a conversion nescessary.