Migrate from Kerio to Nethserver


(Martin) #1

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.


(Stéphane de Labrusse) #2

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


(Martin) #3

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.


(Stéphane de Labrusse) #4

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


(Martin) #5

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 192.168.1.153 --user1 martin --password1 MASKED --host2 192.168.1.200 --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 [192.168.1.153] port [143] user [martin]
Host2: imap server [192.168.1.200] port [993] user [martin]
Banner: * OK Kerio Connect 7.3.2 IMAP4rev1 server ready
Info: host 192.168.1.153 says it has CAPABILITY for AUTHENTICATE LOGIN
Info: success login on [192.168.1.153] with user [martin] auth [LOGIN]
Failure: can not open imap connection on [192.168.1.200] with user [martin]:

what am i doing wrong ?


Pop3 Connector and Sent Mail
(Martin) #6

i can telnet to Dovecot

telnet 192.168.1.200 143

Trying 192.168.1.200…
Connected to 192.168.1.200.
Escape character is ‘^]’.

  • OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE STARTTLS AUTH=PLAIN AUTH=LOGIN] Dovecot ready.

i can log in to SOGo whit my username and password


(Stéphane de Labrusse) #7

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


Import PST (email, contacts and calendars) to Nethserver / Webtop 4
(Martin) #8

Found the solution. I had a type error.

The correct command is

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

instate of

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

Thanks


(Stéphane de Labrusse) #9

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


(Martin) #10

for that my English is to bad. :blush:


(Alessio Fattorini) #11

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

We Grow when We Share


(Alessio Fattorini) #12

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


(Martin) #13

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


(Martin) #14

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.


(Alessio Fattorini) #15

Thanks for sharing! Very helpful ;-D


(Alessio Fattorini) #16

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


(Alessio Fattorini) #17

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


(Martin) #18

A step by step for “imapsinc”

I install the program on my Linux Laptop.

Then just simple run the command:

imapsync --host1 192.168.1.153 --user1 martin --password1 ‘MASKED’ --host2 192.168.1.200 --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 192.168.1.153 --user1 martin --password1 ‘MASKED’ --host2 192.168.1.200 --user2 martin --password2 ‘MASKED’

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

chmod the script

chmod 777

then run the script
./script-name