Navigation

    Kopano
    • Register
    • Login
    • Search
    • Categories
    • Get Official Kopano Support
    • Recent
    Statement regarding the closure of the Kopano community forum and the end of the community edition

    Migrate mails on Gmail to Kopano

    Kopano Groupware Core
    3
    3
    437
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • pixel
      pixel last edited by

      Hi@all,

      My brother used to use GMail and wants to give up this account. I have created an account for him on our Kopano server with his mail domain/address. Contacts and calendar I could export everything from the Google account and import it into Kopano.
      Everything works fine.
      But his mails are still in his GMail account and I still have to transfer them. What is the easiest way?

      Can I fetch them at the Kopano server via fetchmail although the addresses don’t match?

      foo.bar@gamil.com -> foo.bar@newdomain.de

      Like I said. It is only a one-time transfer. After that the Google Account will be deleted.

      with best
      pixel24

      1 Reply Last reply Reply Quote 0
      • burgessja
        burgessja last edited by burgessja

        You should be able to enable imap on the GMail account under settings. Then you can use the kopano-migration-imap script to copy all the emails over.

        You can find some documentation on it here: https://documentation.kopano.io/kopano_migration_manual/imap_migration.html

        Edit: I had previously specified the wrong name of the kopano-migration-imap script.

        1 Reply Last reply Reply Quote 0
        • tiredofit
          tiredofit last edited by tiredofit

          After migrating over 100 mailboxes from Gmail/Gsuite - we have found the following arguments to the kopano-migration-imap work quite well:

          kopano-migration-imap --nomodulesversion \
                                                  --logfile user@email.com.log \
                                                  --pidfile /tmp/user@email.com.pid \
                                                  --tmpdir /migrate-cache/user@email.com \
                                                  --automap \
                                                  --ssl1 \
                                                  --timeout1 120 \
                                                  --host1 imap.gmail.com \
                                                  --timeout2 120 \
                                                  --host2 localhost \
                                                  --port2 993 \
                                                 --ssl2 \
                                                 --disarmreadreceipts \
                                                 --folderlast INBOX \
                                                 --folderlast '[Gmail]/Important' \
                                                 --folderlast '[Gmail]/All Mail' \
                                                 --skipcrossduplicates \
                                                 --useheader=X-Gmail-Received \
                                                 --useheader Message-Id \
                                                 --exclude '[Gmail]$' \
                                                 --exclude 'All Mail' \
                                                 --exclude Junk \
                                                 --exclude Bin \
                                                 --exclude Spam \
                                                 --exclude 'Deleted Items' \
                                                 --exclude 'Deleted Messages' \
                                                 --exclude Trash \
                                                 --user1 user@email.com \
                                                 --password1 password \
                                                 --user2 username \
                                                 --password2 password
          

          Simple change the user1 to the gmail imap account and set password1 to the gmail password. User2 would be your kopano account and password2 would be kopano pasword unless you are using the feature to bypass requiring a password for the gateway. I hope this helps!

          FWIW this is actually a rebranded/older version of imapsync - there is a great FAQ available on Gmail and Imapsync here https://github.com/imapsync/imapsync/blob/master/FAQ.d/FAQ.Gmail.txt

          1 Reply Last reply Reply Quote 0
          • First post
            Last post