Migrate from Kerio to Nethserver

Hello i am new to this community, and love the work of nethserver.

I discoverer nethserver yesterday and setup a mail-server. No problem so fare.

I have a Kerioconnect mail-server on my old server. This runs for a fue years now.

I want to copy al the users (about 15 in 2 domains) from kerio, tho nethserver. Including mail, addresses and calender.

Is there a way to do this ? I triad the pop3conector, but that is not working.

I hope someone knows a solution.

If you use imap on kerio then you can use imapsync but at least you need to know the passwords of users

Or you can copy the dovecot folder user if you use dovecot on kerio

Hello and thanks for the quwick reply.

I am the admin of my own kerio mailserver, so I do now the users, and passwords.
The server is joust by family and my own small company.

I will have a lock at imapsync. I think I have to make each user new on Nethserver, and than use imapsync.

I give it a try.

yes this is what you need to do.
a) create the user with email account
b) sync with imapsync

I have create my own user (for testing) on Nethserver.

Now if i want to use imapsync i use the following command in the terminal

imapsync --host1 --user1 martin --password1 MASKED --host2 --user2 martin --password2 MASKED –ssl2

i get the following output

Temp directory is /tmp
PID file is /tmp/imapsync.pid
Modules version list:
Mail::IMAPClient 3.35
IO::Socket 1.37
IO::Socket::INET 1.35
IO::Socket::SSL 1.997
Digest::MD5 2.53
Digest::HMAC_MD5 1.01
Term::ReadKey 2.32
Authen::NTLM ?

Info: turned ON syncinternaldates, will set the internal dates (arrival dates) on host2 same as host1.
Info: will try to use LOGIN authentication on host1
Info: will try to use LOGIN authentication on host2
Host1: imap server [] port [143] user [martin]
Host2: imap server [] port [993] user [martin]
Banner: * OK Kerio Connect 7.3.2 IMAP4rev1 server ready
Info: host says it has CAPABILITY for AUTHENTICATE LOGIN
Info: success login on [] with user [martin] auth [LOGIN]
Failure: can not open imap connection on [] with user [martin]:

what am i doing wrong ?

i can telnet to Dovecot

telnet 143

Connected to
Escape character is ‘^]’.


i can log in to SOGo whit my username and password

a long time ago I used it , see https://geekeries.de-labrusse.fr/?p=822 sorry french inside

you have also this link http://wiki.contribs.org/Imapsync

1 Like

Found the solution. I had a type error.

The correct command is

imapsync --host1 --user1 martin --password1 MASKED --host2 --user2 martin --password2 MASKED

instate of

imapsync --host1 --user1 martin --password1 MASKED --host2 --user2 martin --password2 --MASKED –ssl2


1 Like

then you should start a howto, this will be helpfull for another fellow user

for that my English is to bad. :blush:

No worries, we’ll review it :smile:
Please share your work!

We Grow when We Share

1 Like

Please introduce yourself here:Welcome to NethServer Community
Curious to know about you! Google translate can work :wink:

Hello again,
imapsync is working fine now. So, up to the next question.

I am still running my Kerio Connect server. It is configuration in IMAP.

Is there a option in SOGo to connect SOGo to the Kerio server to sync the contacts, and calendars 1 user at a time ?

I can not find any information on this.

The Kerio mailserver syncs the contacts whit my Macbook, and Iphone. Also the same for the adder users.

It cud be grate if i can tell SOGo to sync whit the Kerio server (overnight) and then turn off the Kerio server when everything is in the new server

p.s. The Kerio Server is also a CardDav server

A little update.

I fond a way to copy al my contacts from Kerio to SOGo.

It is not a ferry nice solution, but it works.

I used the address book of osx. I made a new address book, that synchronises whit the Kerio Mailserver.

Than i selected al the contacts, and exported them to a V card file.

Next i log in to SOGo, as the user, i wand to import the address book to.

In SOGo, import the v Card file i just made whit the address book in osx.

It is not the way i was locking for, but it works. And that is the most important thing.

I do not know if this works whit every address book application.

1 Like

Thanks for sharing! Very helpful ;-D

Please share your work! You could make make happy some newcomers! :slight_smile:

@ibico could you write down a few notes about imapsync?

A step by step for “imapsinc”

I install the program on my Linux Laptop.

Then just simple run the command:

imapsync --host1 --user1 martin --password1 ‘MASKED’ --host2 --user2 martin --password2 ‘MASKED’

Modify your ip addresses, and users.

I got a error message from host 2 (the Nethserver) it will not accept the password bi cores of clean text.

So in Nethserver i had to set under Email / Mailboxes. The setting “ Allow unencrypted connections”

use the command for every user u have to migrate. Personally i made a little script where i put every user like this:

imapsync --host1 --user1 martin --password1 ‘MASKED’ --host2 --user2 martin --password2 ‘MASKED’

imapsync --host1 --user1 anna --password1 ‘MASKED’ --host2 --user2 anna --password2 ‘MASKED’

chmod the script

chmod 777

then run the script

1 Like