On Thursday 14 Jul 2005 14:46, Helio Nunes wrote:
> Hi
> Does anyone know  how could I move an entire domain from one server to
> other without losing mail content and/or having permissions problems? I
> have in both last Toaster version w/ MYSQL auth. Some users are using
> squirrelmail and have some mail in it.
> I tried to create same domain/accounts/passwords in the target server and
> after copied from the origin to the target
> server /home/vpopmail/domains/domain.com directory over the empty .
> Some files under each user dir did not enherited the right permision. As
> far as I had only 150 users I did it manually.  Now I have to move a bigger
> domain.

If you ensure that all the qmail users and vpopmail and vchkpw users have the 
same uid/gid you will have far fewer problems. Look in /etc/passwd 
and /etc/groups for the numbers. I use rsync running under ssh for transfer 
myself, running as root.
Using rsync you can copy over the domain beforehand, then when you are ready 
and are waiting for the dns to resolve do it again just after removing the 
domain concerned from rcpthosts and /var/qmail/users/assign on the old 
machine and putting the same entries on the new one. Once the dns resolves 
the mail will flow into the new box. Getting the mail users to clear out 
their popboxes first will help too, less to transfer.

You might also want to check the qmail mailing list archives, plenty there on 
this subject.

HTH
-- 
-----------------
Bob Hutchinson
Midwales dot com
-----------------

Reply via email to