The 2md command converts unix mail files as on xanthus.net to maildirs as on eies.org
Type the 2md command for this usage information:
Usage: /usr/local/bin/2md [-t] [-q] [-c <size>] <mailbox> <maildir> -t test mailbox integrity -q keep quiet -c <size> chunk size in bytes, default is 10000000
See http://home.uninet.ee/~ragnar/2md/ for more info.
mailboxes and home are backed up to eies,.org from xanthus,net at 1AM NY time.
To get fresh homes with imap folders from xanthus.net type:
rsync -av /usr/home/username eies.org::xanthus/usr/home
To update the inbox just before converting, on xanthus.net type
rsync -av /usr/var/spool/mail/username eies.org::xanthus/usr/var/spool
here is the location of Maildir and folders for jim@eies.org
[root@eies Maildir]# pwd /var/qmail/mailnames/eies.org/jim/Maildir [root@eies Maildir]# ls -a . courierimapkeywords courierimapuiddb new .sent-mail .Trash .. courierimapsubscribed cur .Sent tmp [root@eies Maildir]# ls -a .Sent/ . courierimapacl courierimapuiddb maildirfolder tmp .. courierimapkeywords cur new
For convinience in moving from xanthus.net, the inbox mailfile directory /home/backup/xanthus.net/usr/var/spool/mail/ is linked to /xmail and the usual mailfile folders directory /home/backup/xanthus.net/usr/home is linked to /xhome
/usr/local/bin/2mduser
The script, 2mduser will convert all the files listed in .mailboxes and the inbox for users being moved. Example:
[root@eies charlotte]# 2mduser usage: /usr/local/bin/2mduser xanthusmailname [eiesnailname] [root@eies charlotte]# 2mduser charlotte cd to /var/qmail/mailnames/yourdomain.com/charlotte/Maildir first [root@eies charlotte]# cd /var/qmail/mailnames/leslapins.com/charlotte/Maildir [root@eies Maildir]# 2mduser charlotte converting mail for charlotte into /var/qmail/mailnames/leslapins.com/charlotte/Maildir (y/n) y 2md /xmail/charlotte . found /xhome/charlotte/.mailboxlist convert folders Sent FarmerDave ben save Drafts petfinder from /xhome/charlotte (y/n) y 2md /xhome/charlotte/Sent .Sent 2md /xhome/charlotte/FarmerDave .FarmerDave 2md /xhome/charlotte/ben .ben 2md /xhome/charlotte/save .save 2md /xhome/charlotte/Drafts .Drafts 2md /xhome/charlotte/petfinder .petfinder [root@eies Maildir]#
testing
At http://webmail.eies.org login as username@yourdomain.com, while only username is needed at webmail.yourdomain.com that will not work until the dns switch has completed.
The last one to access the old website may also be the last one to see the dns change. This is you. In somecases some users have not seen the dns change for several days. But users can change the dns immediately on their own machine by creating or updating their hosts file.
I suggest you add these entries on your local machine and fully test the new site just prior to changing the name serveers. You are the first to see the new site, rather than the last. You are assured access if any issues arise.
Find your hosts file and add an entry for the new site:
216.75.44.7 yourdomain.com 216.75.44.7 www.yourdomain.com 216.75.44.7 webmail.yourdomain.com 216.74.44.7 mail.yourdomain.com
In unix the file is /etc/hosts
Windows 95/98/Me c:\windows\hosts
Windows NT/2000/XP Pro c:\winnt\system32\drivers\etc\hosts
Windows XP Home c:\windows\system32\drivers\etc\hosts
If the website looks good, and the email is fine, it is time to change the name servers to point to
ns.eies.org and ns2.eies.org
with your domain registrar. (Otherwize remove the hosts entry until you fix the problem.)
you should clean out these hosts entries after a week or so so that it wont bite you should the ip address change someday. Putting a # in front of each line makes it an ignored line you can reuse in the event of any dns failure as long as it remains valid.
