Re: [vchkpw] moving servers

2004-01-24 Thread Jon Reynolds
On Fri, 2004-01-23 at 15:53, Rick Widmer wrote:
 Jon Reynolds wrote:
 
  I am moving from one server to a new and was wondering what I need to do
  to move my users from the old server to the new. I am thinking I need to
  move the /etc/passwd,/etc/master.passwd and /etc/group then move the
  domain directory in /home/vpopmail/domains/domain.
 
 I've done it that way before and it worked.  You could also edit the 
 password and group files to move just the qmail, vpopmail and related 
 lines across.  Less chance of messing up some other part of the system 
 that way.  Make sure you don't duplicate any existing uid/gid values.
 
  Would that work and do I need to make sure that all the uid's and gid's
  match for spamassassin, clamav and the others?
 
 You also want to preserve the uid/gid values on all the files and 
 directories...  or go through all of them and make sure they match when 
 you are done.  (not much fun!)
 

Rick and Rick,

Thanks for the reply, that is exactly what I needed to know.

Well alright, I just woke up about 2 hours ago and have almost finished
this move, dang flu is killing me! 

I have found that all I had to do was move the /home/vpopmail/domains/
folder to the new server. I checked all the users and group ID's and
they were exactly the same on both machines so I didn't need to move the
passwd files or the group files. 

Apparently vpopmail stores it's passwd file inside of the directory of
the domain it is hosting so user passwords are intact from the move. So
what I ended up doing was just to scp the domain folder over and chown
it to the correct uid:gid and restart qmail.

 Was that ever easy!

Thanks for the help and the replies, it's always nice to have someone
holding your hand when you are doing something your not sure of. :)

Jon



Re: [vchkpw] moving servers

2004-01-23 Thread Rick Macdougall


Jon Reynolds wrote:

I am moving from one server to a new and was wondering what I need to do
to move my users from the old server to the new. I am thinking I need to
move the /etc/passwd,/etc/master.passwd and /etc/group then move the
domain directory in /home/vpopmail/domains/domain.
Would that work and do I need to make sure that all the uid's and gid's
match for spamassassin, clamav and the others?
Hi,

Basically, and the contents of /var/qmail/users and /var/qmail/control, 
the rcpthosts, morercpthosts and virtualdomains file.

Regards,

Rick



[vchkpw] Moving servers question (different directory structures)

2002-12-09 Thread Hubbard, David
Hi all,
I'm going to be attempting a move from one
server to another and they have different directory
structures both to the vpopmail directory and
within vpopmail.

The old server runs an older version of vpopmail
under /export/home/vpopmail, the new server will
just be /home/vpopmail.  The second change is
that the old server has all the domains under
~vpopmail/domains/ where the new server has broken
them up into segmented directories:

~vpopmail/domains/
~vpopmail/domains/0
~vpopmail/domains/1

etc...  I have already vadddomain'd the domains on
the new box to get the directory structure vpopmail
would like me to have.  I can write a simple perl
script to edit all the vpasswd files to remove
the leading /export from the paths and move the
files into the correct directories but how do I
regenerate all the vpasswd.cdb files?  Second, do I
need to worry about the .dir-control files located
in all the domain directories?

Thanks a lot for any guidance on this,

David