I setup an iRedMail server on Ubuntu 14.04. My company currently uses Gmail but wants to switch to a cheaper solution. I set up the server with an LDAP DB, and I'm using Postfix and Dovecot for the server and transfer agent.

Is there a way to import or POP email from Gmail into iRedMail?

  • How many email boxes do you have to migrate? Apr 28 '15 at 14:01
  • 150 give or take a few
    – T Varcor
    Apr 28 '15 at 14:15
  • That is probably a bit too much users for the solution I had in mind, but you can try with offlineimap, which is a script that copies email between different IMAP servers, local directories and other. It may be somewhat handmade for your needs, but it is better than nothing. Apr 28 '15 at 14:21
  • Okay, Ill take a look at that, It might work. Thank you
    – T Varcor
    Apr 28 '15 at 14:25

Try imapsync at https://imapsync.lamiral.info/ (Also available in AUR). It can migrate email between any two imap servers easily. It officially supports most email servers, and most OS. (including iRedMail, Gmail and Ubuntu)

Basic usage: imapsync --host1 imap.host1.com --user1 user@example.com --password1 P@ssw0rd --host2 imap.host2.com --user2 user@example.com --password2 P@ssw0rd.

  • Given that the OP indicates they're using Ubuntu (albeit, 3 years ago now), it might be more pertinent & useful to indicate the corresponding installation steps for Ubuntu.
    – Jeff Schaller
    Jun 24 '18 at 17:48
  • @JeffSchaller There're complete installation guides for every OS and an online-imapsync tool in the provided official website. I think that's easy enough to use:)
    – recolic
    Jun 25 '18 at 4:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.