/Main_Page

::You must have ninja focus to complete your mission::NinjaFocus::

User Migration

Views:

STUDENTS are created automaically by a driver on identity manager on Athena. STAFF are done by hand.

Contents

Staff

The Process should be:

BEFORE YOU START MAKE SURE YOU ARE CONNECTED TO GROUPWISE in console one, and you are connected to the STAFF SERVER. Right Click on GWD-Varn and select "connect", a plug will appear when connected on the GWD-Varn domain.

  1. Create the groupwise account
    1. Open cosole one
    2. open the user
    3. Select the "GroupWise" Tab.
    4. Click the groupwise icon (high and right)
    5. Browse the Tree for the staff postoffice, its in VSFC > Groupwise System > GWD-Varn
    6. Use the Groupwise Password button (Low Left) and manually set the Groupwise Password - there is no Sync on staff yet.
    7. close the user options.
    8. Right Click on the User Options, Select Groupwise Utilities. Then "Sync".
    9. Wait a few minutes to let the passwod sort its self out.
  2. Ensure Password is synced (test)
    1. The groupwise Client will authenticate to e-directory. However the Staff web access requires the GroupWIse Password. So test using that.
    2. click here to go to the staff interface
  3. copy email off netmail. There are 3 methods of doing this, by far the best is the linux imap sync method, the others are using thunderbird and using the Groupwise Client.
    1. Copying using imapsync, use the migrate script (see notes below) on a system running linux with imapsync isntalled. This script will prompt for a username and password. Currently this is only Tom's desktop. If your reading this it probably isnt anymore.
      1. run the migrate script /migrate
      2. enter username and press enter
      3. enter password and press enter
      4. script should complete, automatically. If it doesn't it will show you authenication errors, or it will just hang.
        1. authencticaion errors if mail.varndean.ac.uk fails, check netware admisistrator and make sure netmail account is still active. If polymorph/caan fails check that the password has been set and has had time to settle.
        2. if the process hangs then ther's a corrupted mail in netmail - this is quite common. Open the the netmail webinterface (mail.varndean.ac.uk) and look for <message unavailbl> delete the offencding message and run the script again.
    2. Copying using Thunderbird.
      1. go to tools > account settings and "add account"
      2. create a new accout with the following settings.
        1. server: polymorph.varndean.ac.uk
        2. protocol: IMAP
        3. username: <user you want to migrate>
      3. Copy the mail across from the old account to the new by hand. - You will need to create the Dirs's by hand.
    3. Copying Via GroupWise
      1. Open the Groupwise Client as a user in question.
      2. Right Click on Cabinet slect new folder then select IMAP folder from the list.
      3. Enter the accoutn settings as follows:
        1. account name: netmail
        2. incoming mail server: mail.varndean.ac.uk
        3. login name: <usern name you are migrating>
        4. Outgoing Mail Server: doens't matter but you will need to enter somthing anyway, so use mail.varndean.ac.uk
        5. on the following screen select "conect through a lan"
        6. complete the wizard with default values.
      4. You will need to Re-Edit the settings before it will work. Right Click on the new netamil folder in cabinet. And select propeties
      5. Select the server tab and check the log in using secure password authenticaion box.
      6. click OK to save the setting.
      7. You should now be able to see old netmail email under cabinet > netmail.
      8. Copy the mails accross by hand. DO NOT ATTEMPT to copy folders. They will need to be created manauly and then there contets selected and copyied by hand. DON'T SELECT FOLDERS or SUBFOLDERS when copying or Copy will fail.
      9. Delete the netmail IMAP folder in Groupwise When you are finished.
  1. Disable Netail accout
    1. As soon as mail has been migrated DIABLE the user's netmail account, or mail from other netmail users will start finding its way into the old account.
    2. Open netware admistrator (start Menu)
    3. Select User Object
    4. search for the Netmail button
    5. under the Netmail section chech the "User Disabled" box.
  1. Address Book Migration
    1. IF web interface user Print personal address book - there's no way of importing it.
    2. ELSE export the thunderbird address book as LDIF using Tools > Export.
      1. Start Groupwise Address Converter on the Staff aps part of the start menu follow instuctions to convert it from the LDIF to a NAB
      2. In the GroupWise Client go into the Address Book and import the .nab file you just created.

Notes

ImapSync

Imapsync is a sourceforge project, its a command line based imap tool. Its the easyies way to copy mail over. syntax:

  • imapsync --syncinternaldates --noauthmd5 --host1 mail.varndean.ac.uk --port1 993 --ssl1 --user1 support --password1 ****** --host2 caan.varndean.ac.uk --user2 Staff1 --password2 **** --sep2 / --prefix2 "" (apt-get install imapsync -on debian bassed system) in this case it copies all of Support's email of netmail into Staff1's account on caan. Normalyy seet both user1 and user2 the same.
Here's the script I use to call imapsync
#!/bin/bash
# Calls E-Mail migrate

#SETTINGS
NETMAILSRV="mail.varndean.ac.uk"
GROUPSRV="caan.varndean.ac.uk"

echo "Email Migrate from Netmail -> GroupWise"
echo "GroupWise account must exist, netmail account must still be enabled"
echo " and GroupWise Passwords set or this won't work"
echo ""
# get info
echo "Please Enter your Username:"
read -e UNAME
echo "Please Enter your Password"
read -s PWD
# tick PW in a file so it don't appear in the process list.

echo $PWD > /tmp/imapMigrate
echo "Attempting to move the mail of $UNAME to GroupWise"
/usr/bin/imapsync --syncinternaldates --noauthmd5 --host1 $NETMAILSRV --port1 993 --ssl1 --user1 $UNAME --passfile1 /tmp/imapMigrate --host2 $GROUPSRV --user2 $UNAME --passfile2 /tmp/imapMigrate --sep2 / --prefix2 ""

rm /tmp/imapMigrate
if [ -f $a/tmp/imapMigrate ]; then
        echo "SECURITY ERROR - couldn't delete temp file"
fi

Warning this uses a file in /tmp to store the users's password. It should be deleted at the end of the script - this mentod is not terribly satisfactory, but its better than the password apearing in the imap process details!

Main Menu

Personal tools

Toolbox