I need to move some mailboxes (for a specific domain) from my mailcow to another Mailserver.

The Sync feature of mailcow (via imapsync) just Support an Import from other Mailservers to mailcow - so I need it the other way around … :-(

Is there any option to configure the sync in opposite direction? Eg via the Parameters?

Thanks!

  • MAGIC

    • Forum Staff
    • volunteer
    Moolevel 48

No since the server to which is should be synced is hardcoded to localhost
GitHub Icon mailcow-dockerized/data/Dockerfiles/dovecot/imapsync_runner.pl at master · mailcow/mailcow-dockerized

But you can either install imapsync on your other server, run imapsync with the right parameters from the dovecot container or use the GUI version from the maintainer of imapsync Mailbox Imapsync Online

Have something to say?

Join the community by quickly registering to participate in this discussion. We'd like to see you joining our great moo-community!

7 days later

So is there an option to switch the direction or the server1/server2 assignment?
Benefit of the existing solution is that I do not need the passwords of the existing mailcow mailboxes.

Is it possible to change the used commandline?

Thanks!

3 years later

Im also intrested 🙂 Any Hints ?

I don’t know how it was in 2021 when this thread started, but now you can freely configure which server ist host1 and host2

    I am sorry, I mixed that up, you are right, you cannot switch both hosts.

    Anyways, it syncs both hosts, and therefore it syncs in both directions by default.
    So there is no need to switch the 2 hosts.
    Thats why its called imapsync, and not imapcopy 😉

      worryboy

      Ah yes, you are using the other direction. Imapsync can’t properly 2-way sync:
      https://imapsync.lamiral.info/#CANTDO

      Imapsync is not suitable for maintaining a synchronization between two active imap accounts while the user is working on both sides. See why in the Two Ways Sync document. Use offlineimap (written by John Goerzen) or mbsync (written by Michael R. Elkins) for bidirectional (2 ways) synchronizations.

      As you cannot easily modify the sync jobs the other way around in mailcow, it seems you need to do this outside of mailcow.
      Try this:
      https://hub.docker.com/r/gilleslamiral/imapsync/

        esackbauer

        this may work but as “KarstenDE” wrote

        "Benefit of the existing solution is that I do not need the passwords of the existing mailcow mailboxes.
        Is it possible to change the used commandline?"
        .. i.e. via cron job

        21 days later

        esackbauer

        will work but evry update this will be reverted or ?
        on the other and only that way will work , sync in dosent work anymore

          worryboy
          Of course it would not survive an update.
          Another solution is to use an imapsync container outside of mailcow. You lose the integration, but you get all the flexibility.

            esackbauer

            sure , but as KarstenDE wrote the integration is the Plus of mailcow. “Benefit of the existing solution is that I do not need the passwords of the existing mailcow mailboxes.”

            how can i request a feature ?

              No one is typing