head	1.2;
access;
symbols;
locks; strict;
comment	@# @;


1.2
date	2001.04.24.02.29.33;	author edk;	state Exp;
branches;
next	1.1;

1.1
date	2001.04.10.23.38.15;	author edk;	state Exp;
branches;
next	;


desc
@@


1.2
log
@add some add'l instrutions, so queued up messsages on the old machine
can be delivered safely.
@
text
@Here is an outline of how to move mail from one server to another:

1)  stop qmail on the first machine :
        old# /etc/rc.d/init.d/qmail stop
2)  tar anzu and eyebrowse data directories
        old# cd /usr/local/tigris/data
        old# tar czf anzu.tar.gz anzu
        old# tar czf eyebrowse.tar.gz eyebrowse
3)  copy those tarballs to the new machine
4)  stop mail delivery to ~tigrisq on the new machine:
        new# chmod +t ~tigrisq
5)  comment out the the line in /etc/crontab which would call call_eyebrowse
    on the new machine:
    4,9,14,19,24,29,34,39,44,49,54,59 * * * * root run-parts /etc/cron.5mins
    then make sure call_eyebrowse is not currently running

6)  unpack tarballs of the old data on the new machine:
        new# cd /usr/local/tigris/data
        new# mv eyebrowse eyebrowse-orig
        new# mv anzu anzu-orig
        new# tar xzf anzu.tar.gz
        new# tar xzf eyebrowse.tar.gz
7)  handle helm database migration, run the appropriate migration script
8)  enable mail delivery on the new machine:
        new# chmod -t ~tigrisq
9)  ? make sure permissions are correct:
        new# /usr/local/tigris/scripts/patch_permissions
9)  explicitly index the archives:
        new# /usr/local/tigris/site/cron/org/tigris/helm/5mins/call_eyebrowse
    (this make take a while to complete)
10) renable the 5 min crontab in /etc/crontab
11) on the first machine (the old one), edit /var/qmail/control/smtproutes:
    add ".DOMAIN:new-machine-name"  (DOMAIN is the domain name for this
    instance; and new-machine-name is an unambiguous name for the new machine)
12) start qmail on the first machine
        old# /etc/rc.d/init.d/qmail start

Here are some steps which might be done to verify that all is well:

0)  do the test plan, make sure it works ;-)
1)  check to make sure the mailing lists and archives in the www project
    work as expected ('www.' should not be present in the domain portion)
2)  in mysql, on both the new and the old machines, verify that the these
    statements all return the same number (the numbers should be the same
    for both statements): 
        mysql> select count(1) from eb_List; 
        mysql> select count(1) from eb_ListFile; 
3)  in mysql, verify that this returns the same thing on both the old and
    the new machines (the numbers will be different for each statement)
        mysql> select count(1) from eb_Message;
        mysql> select count(1) from HELM_MAILINGLIST;
4)  use anzu_admin to verify that things seem to be in a good state:
        new# cd /usr/local/tigis/helm/scripts
        new# ./anzu_admin --op=check 2>&1 | egrep -v -e 'WARNING: (all|extant) '

   
@


1.1
log
@suggested steps + verification instructions for mail migration
@
text
@d32 5
@

