Connect. Communicate. Collaborate. Securely.

Home » Kerio User Forums » Kerio Connect » Migrate accounts from Eudora EIMS 2.1 to KMS 6.0.7
  •  
timme

Messages: 22
Karma: 0
Send a private message to this user
Hallo,

we want to migrate email-accounts from our Eudora EIMS 2.1 on Mac OS 8.6 to KMS 6.0.7 on Mac OS X 10.3.8.

We can export the user data from EIMS into a plaintext file. But how can I import this file in KMS?

I tried a shell script to generate the xml file users.cfg, but after that KMS won't start.

The Textfile is UTF-8 Unicode text, with CRLF line terminators, like the original is too. I tested it with the file command on the os x shell.

Is there a migration tool to import users from a textfile? Or what is to do that the following script was working?

Here's the script and a sample of the new users.cfg:
#! /bin/sh
#
# Fields of user.lis:
# name;passwort;forward_to
#
echo "<config>"
echo "<list name="User">"
for i in `cat user.lis`
do
name=`echo $i | cut -d";" -f1`
passwort=`echo $i | cut -d";" -f2`
forward_to=`echo $i | cut -d";" -f3`
echo " <listitem>"
echo " <variable name="Name">${name}</variable>"
echo " <variable name="Domain">my.domain.de</variable>"
echo " <variable name="Account_enabled">1</variable>"
echo " <variable name="Auth_type">0</variable>"
echo " <variable name="Password">Nul:${passwort}</variable>"
echo " <variable name="PIN"></variable>"
echo " <variable name="Rights">0</variable>"
echo " <variable name="Groups"></variable>"
if [ $forward_to ]
then
echo " <variable name="ForwardMode">1</variable>"
echo " <variable name="ForwardAddress">${forward_to}</variable>"
else
echo " <variable name="ForwardMode">0</variable>"
fi
echo " <variable name="HomeServer"></variable>"
echo " <variable name="MailboxLocation"></variable>"
echo " <variable name="Qstorage">0</variable>"
echo " <variable name="Qmessage">0</variable>"
echo " <variable name="Fullname"></variable>"
echo " <variable name="Description"></variable>"
echo " </listitem>"
done

echo "</list>"

echo "<list name="Group">"
echo "</list>"
echo "<list name="Alias">"
echo "</list>"

echo "</config>"

Sample users.cfg:
<config>
<list name=User>
<listitem>
<variable name=Name>username</variable>
<variable name=Domain>my.domain.de</variable>
<variable name=Account_enabled>1</variable>
<variable name=Auth_type>0</variable>
<variable name=Password>Nul:secret</variable>
<variable name=PIN></variable>
<variable name=Rights>0</variable>
<variable name=Groups>edvinfo</variable>
<variable name=ForwardMode>1</variable>
<variable name=ForwardAddress>some<_at_>where.com</variable>
<variable name=HomeServer></variable>
<variable name=MailboxLocation></variable>
<variable name=Qstorage>0</variable>
<variable name=Qmessage>0</variable>
<variable name=Fullname></variable>
<variable name=Description></variable>
</listitem>
</list>
<list name=Group>
</list>
<list name=Alias>
</list>
</config>
  •  
timme

Messages: 22
Karma: 0
Send a private message to this user
the solution to import from a textfile:
- Nul --> NUL
- and all " in the echo command must be quoted with \
- & is not a valid password char

#! /bin/sh
#
# Fields of user.lis:
# name;passwort;forward_to
#

echo "<config>"
echo "<list name=\"User\">"


for i in `cat user.lis`
do

name=""
passwort=""
forward_to=""

name=`echo $i | cut -f1 -d";"`
passwort=`echo $i | cut -d";" -f2`
forward_to=`echo $i | cut -d";" -f3`

echo " <listitem>"
echo " <variable name=\"Name\">${name}</variable>"
echo " <variable name=\"Domain\">my.domain.de</variable>"
echo " <variable name=\"Account_enabled\">1</variable>"
echo " <variable name=\"Auth_type\">0</variable>"
echo " <variable name=\"Password\">NUL:${passwort}</variable>"
echo " <variable name=\"PIN\"></variable>"
echo " <variable name=\"Rights\">0</variable>"
echo " <variable name=\"PIN\"></variable>"
echo " <variable name=\"Rights\">0</variable>"

if [ $forward_to ]
then
echo " <variable name=\"ForwardMode\">1</variable>"
echo " <variable name=\"ForwardAddress\">${forward_to}</variable>"
else
echo " <variable name=\"ForwardMode\">0</variable>"
fi

echo " <variable name=\"HomeServer\"></variable>"
echo " <variable name=\"MailboxLocation\"></variable>"
echo " <variable name=\"Qstorage\">0</variable>"
echo " <variable name=\"Qmessage\">0</variable>"
echo " <variable name=\"Fullname\"></variable>"
echo " <variable name=\"Description\"></variable>"
echo " </listitem>"
done

echo "</list>"
echo ""

echo "<list name=\"Group\">"
echo "</list>"
echo "<list name=\"Alias\">"
echo "</list>"

echo ""
echo "</config>"
Previous Topic: Kerio Web is slow ?
Next Topic: Whitelisting Feature
Goto Forum:
  


Disclaimer:
Kerio discussion forums are intended for open communication between forum members and may contain information and material posted by members which may be useful in learning about Kerio products. The discussion forums are not intended to provide technical support for any specific product. Any information implied or expressed in the discussion forums is that of the posting member. Kerio is in no way responsible for the information posted in the forums, or its accuracy. Kerio employees may participate in the discussions, but their postings do not represent an offical position of the company on any issues raised or discussed. Kerio reserves the right to monitor and maintain the forums to promote free and accurate exchange of information.

Current Time: Tue Nov 21 05:46:39 CET 2017

Total time taken to generate the page: 0.00339 seconds
.:: Contact :: Home ::.
Powered by: FUDforum 3.0.4.