- Edited
English
ImapSync to migrate from Mailcow to other provider
- Edited
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
“Sync jobs are used to copy or move existing emails from an external IMAP server or within mailcow’s existing mailboxes.” >>> one way
i tried them out ,, no two way sync :/
- Edited
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/
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
You could play around with this:
mailcow/mailcow-dockerizedblob/36b5cccd186090d726de62b6b00d1e842e67aacd/data/Dockerfiles/dovecot/imapsync_runner.pl#L148
And reverse the host1/host2 incl. options.
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.
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 ?
worryboy how can i request a feature ?