How can we help?


Migrating users to atmail cloud with IMAPSYNC

Stewart -

I want to migrate my IMAP users to the atmail 7 cloud.


  • atmail 7 cloud

Migration Requirement.


  1. Install IMAPSYNC.
    You can either purchase the full source (, or grab earlier versions from Ubuntu/Debian repositories.

  2. Once done, generate a list of your users in this format:
    Separate new entries with newlines, like so:,password,,password,password,,password,password,,password

  3. Save the file as migrate-users.csv.

  4. Execute this command from the directory containing the CSV file:
    { while IFS=',' read u1 p1 u2 p2; do
    imapsync --host1 [source-hostname] --authmech1 PLAIN --user1 "$u1" --password1 "$p1" --prefix1 INBOX/ --sep1 / \
    --host2 [destination-hostname] --authmech2 PLAIN --user2 "$u2" --password2 "$p2" --prefix2 INBOX. --sep . ...
    done ; }

 Executing the above command will then import all emails to the destination accounts.

Please note, this article presumes that the namespace separator of host1 is "/" and host2 is ".". 

--prefix1 INBOX/ --sep1 /
--prefix2 INBOX. --sep2 .

These are optional, but may be necessary as atmail strictly uses "." throughout its front end infrastructure.

NOTE: When migrating, the order of messages in the inbox will be arranged/displayed by the date the message was last modified (Not necessarily the date the email was received).

Have more questions? Submit a request


  • Avatar

    Worked a treat for me migrating from remote dovecot IMAP server to atmail on CENTOS 6.0.  I used yum install from the 'epel' repository to install imapsync.  This has the great advantage that you can run it multiple times and it will only copy across new emails. 

  • Avatar
    Jesús Carrera(Atmail Cloud user)

    It worked for me too, but it would be great if Atmail had a IMAP import tool integrated (maybe even using imapsync in the background?).

  • Avatar

    I also recommend having such tool as almost all the providers (GoDaddy, G-suite, Qualispace) they provide free import of emails from other servers.

Contact our support team

+61 (7) 5357 6605