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? Commented Apr 28, 2015 at 14:01
  • 150 give or take a few
    – T Varcor
    Commented Apr 28, 2015 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. Commented Apr 28, 2015 at 14:21
  • Okay, Ill take a look at that, It might work. Thank you
    – T Varcor
    Commented Apr 28, 2015 at 14:25

1 Answer 1


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 [email protected] --password1 P@ssw0rd --host2 imap.host2.com --user2 [email protected] --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
    Commented Jun 24, 2018 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
    Commented Jun 25, 2018 at 4:07
  • Please note this is a commercial product. I spotted that it is free only for 3gb or less. Commented Dec 8, 2022 at 20:25

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .