Re: [vchkpw] Migrating Vpopmail to a new server
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jukka Kurkela wrote: > You mean CDB is way faster, right? if not, can you provide some > benchmark results or even explanation? CDB is faster than MySQL. MySQL is perfect for sites that need to cluster. If your potential growth does not indicate a need to cluster, I'd stick with CDB, mostly because it's one less point of failure, as well as the fact that there's no networked database with resource locking involved. - -- /* Matt BrookingsGnuPG Key FAE0672C Software developer Systems technician Inter7 Internet Technologies, Inc. (815)776-9465 */ -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAktMhw4ACgkQIwet2/rgZywvAwCZAd1TjWvI3T1gJV7r7IYG5NjK AYcAniedEvwpbAedPvg1TcDtdD1ZgCvs =2WqA -END PGP SIGNATURE-
Re: [vchkpw] Migrating Vpopmail to a new server
You mean CDB is way faster, right? if not, can you provide some benchmark results or even explanation? ++jukka Remo Mattei wrote: I would not use CDB just my point of view. Go to mysql way faster and better for all those domains you got. I used rsync on my server when I moved over to the new one as long as you got the same userid (vpopmail) you should be good. The question is do you have users email on your server or do they pop that? If they pop3 it that’s easy by using learn password make sure they use that for the first time which sets their password to what they have now (pop3) as far as I know does not work with imap. Just my 2 cents, Remo On 1/11/10 20:55 , "Srdan Dukic" wrote: Hi, I've been given the job of migrating one of our existing Vpopmail servers accross to a new machine. I have successfully installed the latest version of Vpopmail on the new machine, but I have some questions about the next part of the migration. The current server has just under 5000 domains and subdomains and each of those has about 3-4 users each. What is the process for migrating from one Vpopmail install to another? Can I just recursively copy accross all of the files under '/home/vpopmail/domains'? And if so, is there some command I have to run after the copy accross to re-index the directories or Maildirs? The authentication system used is just the default 'CDB' file format on both of the servers. Another, related question is that I'm trying to find out the version of the Vpopmail that is installed on the old server, but am having some trouble. I've tried running some of the programs under the '/home/vpopmail/bin' directory with the '-v' and '--version' flags, but was unable to get a version number. Thank you !DSPAM:4b4c254a32717544416713!
Re: [vchkpw] Migrating Vpopmail to a new server
I would not use CDB just my point of view. Go to mysql way faster and better for all those domains you got. I used rsync on my server when I moved over to the new one as long as you got the same userid (vpopmail) you should be good. The question is do you have users email on your server or do they pop that? If they pop3 it that¹s easy by using learn password make sure they use that for the first time which sets their password to what they have now (pop3) as far as I know does not work with imap. Just my 2 cents, Remo On 1/11/10 20:55 , "Srdan Dukic" wrote: > Hi, > > I've been given the job of migrating one of our existing Vpopmail servers > accross to a new machine. I have successfully installed the latest version of > Vpopmail on the new machine, but I have some questions about the next part of > the migration. The current server has just under 5000 domains and subdomains > and each of those has about 3-4 users each. > > What is the process for migrating from one Vpopmail install to another? Can I > just recursively copy accross all of the files under '/home/vpopmail/domains'? > And if so, is there some command I have to run after the copy accross to > re-index the directories or Maildirs? The authentication system used is just > the default 'CDB' file format on both of the servers. > > Another, related question is that I'm trying to find out the version of the > Vpopmail that is installed on the old server, but am having some trouble. I've > tried running some of the programs under the '/home/vpopmail/bin' directory > with the '-v' and '--version' flags, but was unable to get a version number. > > Thank you !DSPAM:4b4c1ecb32719015517446!
Re: [vchkpw] Migrating Vpopmail to a new server
Srdan Dukic wrote: Hi, I've been given the job of migrating one of our existing Vpopmail servers accross to a new machine. I have successfully installed the latest version of Vpopmail on the new machine, but I have some questions about the next part of the migration. The current server has just under 5000 domains and subdomains and each of those has about 3-4 users each. What is the process for migrating from one Vpopmail install to another? Can I just recursively copy accross all of the files under '/home/vpopmail/domains'? And if so, is there some command I have to run after the copy accross to re-index the directories or Maildirs? The authentication system used is just the default 'CDB' file format on both of the servers. Another, related question is that I'm trying to find out the version of the Vpopmail that is installed on the old server, but am having some trouble. I've tried running some of the programs under the '/home/vpopmail/bin' directory with the '-v' and '--version' flags, but was unable to get a version number. Thank you -- Srđan Đukić You can find quite complete answer to the domain migration part from John Simpson's web site: http://qmail.jms1.net/scripts/migrate-domain.shtml ++jukka !DSPAM:4b4bfe5032711286718033!
Re: [vchkpw] migrating to new server
Lampa wrote: Hello, problem is that is not only one domains (about 200 domains) and i need migrate only some domains. 2008/6/11, Tonix (Antonio Nati) <[EMAIL PROTECTED]>: Lampa ha scritto: Hello, i need move from old server to new one. Problem is while DNS are replicated i need disable whole access to domain (delivering - smtp, pop3, imap). I know that via vpopmail is possbile disable access to imap/pop3. but is possible to disable smtp. In best case i need that smtp returns some error and message will be delivered later (to new mail server) modify DNS to lower TTL for MX Create new domains on new server without smtpd running rsync data over to new server on old server add domains to smtproutes (pointing to new server) on old server remove domains from virtualdomains change dns restart or hup qmail-send rsync data over to new server again start mail services on new server Voila! !DSPAM:484fb8d832351350751482!
Re: [vchkpw] migrating to new server
Hello, problem is that is not only one domains (about 200 domains) and i need migrate only some domains. 2008/6/11, Tonix (Antonio Nati) <[EMAIL PROTECTED]>: > Lampa ha scritto: > > > Hello, > > > > i need move from old server to new one. Problem is while DNS are > > replicated i need disable whole access to domain (delivering - smtp, > > pop3, imap). I know that via vpopmail is possbile disable access to > > imap/pop3. but is possible to disable smtp. In best case i need that > > smtp returns some error and message will be delivered later (to new > > mail server) > > > > > Why don't you simply turn off services you don't need? > If you turn off SMTP, senders will retry later (according to their > policies). > > Tonino > > > > Thank you for help and advices. > > > > > > > > > -- > >[EMAIL PROTECTED]Interazioni di Antonio Nati > http://www.interazioni.it [EMAIL PROTECTED] > > > > > > -- Lampa !DSPAM:484f8ad132351640421873!
Re: [vchkpw] migrating to new server
Lampa ha scritto: Hello, i need move from old server to new one. Problem is while DNS are replicated i need disable whole access to domain (delivering - smtp, pop3, imap). I know that via vpopmail is possbile disable access to imap/pop3. but is possible to disable smtp. In best case i need that smtp returns some error and message will be delivered later (to new mail server) Why don't you simply turn off services you don't need? If you turn off SMTP, senders will retry later (according to their policies). Tonino Thank you for help and advices. -- [EMAIL PROTECTED]Interazioni di Antonio Nati http://www.interazioni.it [EMAIL PROTECTED] !DSPAM:484f842a32356561114934!
Re: [vchkpw] migrating to new server
Hi.. you can use vmoduser -b to bounce all incoming mail vmoduser -s to disable all SMTP auth Optionally you can set the quota to 0 which is a dirty solution, it will also bounce all mail, perhaps the -b flag is better.. For a complete list, just type /home/vpopmail/bin/vmoduser and the help that is printed will help you out. - Wouter - Original Message - From: "Lampa" <[EMAIL PROTECTED]> To: Sent: Wednesday, June 11, 2008 3:36 PM Subject: [vchkpw] migrating to new server Hello, i need move from old server to new one. Problem is while DNS are replicated i need disable whole access to domain (delivering - smtp, pop3, imap). I know that via vpopmail is possbile disable access to imap/pop3. but is possible to disable smtp. In best case i need that smtp returns some error and message will be delivered later (to new mail server) Thank you for help and advices. -- Lampa !DSPAM:484f82a632359290616121!
Re: [vchkpw] Migrating all lists to another domain
Just to clarify, if i have this config ezmlm file: F:-AbCDEFGhIjKLMNOpQRSTUVWXYZ X: D:/home/vpopmail/domains/grupogonher.com/normatividad T:/home/vpopmail/domains/grupogonher.com/.qmail-normatividad L:normatividad H:grupogonher.com C: 0: 3: 4: 5: 6: 7: 8: 9: The ezmlm-make to create it was: ezmlm-make -AbCDEFGhIjKLMNOpQRSTUVWXYZ /home/vpopmail/domains/grupogonher.com/normatividad /home/vpopmail/domains/grupogonher.com/.qmail-normatividad normatividad grupogonher.com I mean... the F stands for the parameters given to ezmlm-make, D is dir, T is dot, L is local and H is host... right? On Wed, 2006-02-22 at 12:48 -0600, Alex Borges wrote: > Yeah, i see this is allright and all... > > Now what really has me gnawing on my footnails is, why do i have some > lists that do have a config file, but i have others that do not. > > In fact, most do not have the config file. > > On Tue, 2006-02-21 at 11:31 -0800, Tom Collins wrote: > > On Feb 21, 2006, at 11:09 AM, Alex Borges wrote: > > > Okay, > > > > > > I wanna move about 50 ezmlm lists to a diferent domain. > > > > [snip] > > > > > Now i suspect that copying directories and files will do the trick but > > > im not shure. Also, i wonder what ezmlm-make parameters should i use. > > > > > > Im going through the source of qmailadmin right now and im shure to > > > find > > > out exactly how those lists get made by it, but im also shure you guys > > > can come up with a better way to go about it. > > > > QmailAdmin calls ezmlm-make. The config file in the list's directory > > should tell you everything you need to know in regards to creating the > > list. > > > > You should be able to use the config file to generate a call to > > ezmlm-make to create your new list, and then pipe the output of > > ezmlm-list (for the old list) to ezmlm-sub (for the new list) to > > transfer the subscribers, moderators (if appropriate) and digest > > subscribers (if appropriate) to the new list. > > > > I suspect you could simply copy the subscribers, mod/subscribers and > > digest/subscribers (I'm guessing on that digest path) from the old > > directory to the new one. > > > > ezmlm-make is probably a better solution than just copying the list's > > confi directory and recreating the .qmail-list-whatever symlinks, as > > you'll have to edit the configuration files to use the new list's > > pathname, and change the old domain to the new domain in files like > > inhost. > > > > Tom Collins > > Tom Logic LLC > > PO Box 5717 > > Napa, CA 94581 > > (707) 265-6622 > > (707) 265-6646 fax > > [EMAIL PROTECTED]
Re: [vchkpw] Migrating all lists to another domain
Yeah, i see this is allright and all... Now what really has me gnawing on my footnails is, why do i have some lists that do have a config file, but i have others that do not. In fact, most do not have the config file. On Tue, 2006-02-21 at 11:31 -0800, Tom Collins wrote: > On Feb 21, 2006, at 11:09 AM, Alex Borges wrote: > > Okay, > > > > I wanna move about 50 ezmlm lists to a diferent domain. > > [snip] > > > Now i suspect that copying directories and files will do the trick but > > im not shure. Also, i wonder what ezmlm-make parameters should i use. > > > > Im going through the source of qmailadmin right now and im shure to > > find > > out exactly how those lists get made by it, but im also shure you guys > > can come up with a better way to go about it. > > QmailAdmin calls ezmlm-make. The config file in the list's directory > should tell you everything you need to know in regards to creating the > list. > > You should be able to use the config file to generate a call to > ezmlm-make to create your new list, and then pipe the output of > ezmlm-list (for the old list) to ezmlm-sub (for the new list) to > transfer the subscribers, moderators (if appropriate) and digest > subscribers (if appropriate) to the new list. > > I suspect you could simply copy the subscribers, mod/subscribers and > digest/subscribers (I'm guessing on that digest path) from the old > directory to the new one. > > ezmlm-make is probably a better solution than just copying the list's > confi directory and recreating the .qmail-list-whatever symlinks, as > you'll have to edit the configuration files to use the new list's > pathname, and change the old domain to the new domain in files like > inhost. > > Tom Collins > Tom Logic LLC > PO Box 5717 > Napa, CA 94581 > (707) 265-6622 > (707) 265-6646 fax > [EMAIL PROTECTED]
Re: [vchkpw] Migrating all lists to another domain
On Feb 21, 2006, at 11:09 AM, Alex Borges wrote: Okay, I wanna move about 50 ezmlm lists to a diferent domain. [snip] Now i suspect that copying directories and files will do the trick but im not shure. Also, i wonder what ezmlm-make parameters should i use. Im going through the source of qmailadmin right now and im shure to find out exactly how those lists get made by it, but im also shure you guys can come up with a better way to go about it. QmailAdmin calls ezmlm-make. The config file in the list's directory should tell you everything you need to know in regards to creating the list. You should be able to use the config file to generate a call to ezmlm-make to create your new list, and then pipe the output of ezmlm-list (for the old list) to ezmlm-sub (for the new list) to transfer the subscribers, moderators (if appropriate) and digest subscribers (if appropriate) to the new list. I suspect you could simply copy the subscribers, mod/subscribers and digest/subscribers (I'm guessing on that digest path) from the old directory to the new one. ezmlm-make is probably a better solution than just copying the list's confi directory and recreating the .qmail-list-whatever symlinks, as you'll have to edit the configuration files to use the new list's pathname, and change the old domain to the new domain in files like inhost. Tom Collins Tom Logic LLC PO Box 5717 Napa, CA 94581 (707) 265-6622 (707) 265-6646 fax [EMAIL PROTECTED]
Re: [vchkpw] Migrating users
On Friday 28 October 2005 05:03 pm, Juan Enciso wrote: Tom. But the rsync have problem when the directory tree is very big. What alternative could use against of rsync... Another technique for sync files? I've used rsync on ENORMOUS (read: 100+GB) mailstores. works fine. I couldn't possibly imagine migrating a large qmail/vpopmail system with something lesser than rsync. -Jeremy -- Jeremy Kitchen ++ [EMAIL PROTECTED] In the beginning was The Word and The Word was Content-type: text/plain -- The Word of Bob. file:///C|/DOCUME%7E1/JANET%7E1.JGL/LOCALS%7E1/TEMP/nsmail.tmp Description: PGP signature
Re: [vchkpw] Migrating vmailmgr to vpopmail+mysql
On 2005-10-30, at 1033, aichains wrote: Resurrecting previous post that I found on MARC: does anybody know a way to convert mails and accounts from vmailmgr to vpopmail? i already searched the archive and google without any result. ... I'm currently in the same situation and am looking for feedback in the same area. So far as I have planned it out, I have come up with this steps: 1) Create the domains using the vpopmail script 2) Create mailboxes through vpopmail script of all the mailboxes in vmailmgr. Once the mailboxes are created, replace the password strings in vpopmail with the password strings (md5 or crypt) that were in vmailmgr. Then copy the contents of mailbox from vmailmgr to vpopmail (understanding a little change in the directory structure). after changing the vpasswd file, remember to run "vmkpasswd" to rebuild the vpasswd.cdb file (which is what vpopmail actually uses.) and if the old and new systems are on the same machine, instead of copying the files you should be able to move them. you'll save disk space and save time. just make sure you do it on a mailbox-by-mailbox basis rather than a domain-by-domain basis. also be aware that if you have enough domains, or enough mailboxes within any one domain, vpopmail may start "hashing" directory entries (i.e. instead of "~vpopmail/domains/domain.xyz", it may create "~vpopmail/domains/0/domain.xyz".) after creating the domain your script can run "vdominfo -d domain.xyz" to find the physical directory for the domain, regardless of whether it was hashed or not... and "vuserinfo -d [EMAIL PROTECTED]" will give you the physical directory for a user's mailbox, again regardless of hashing. make sure you write your scripts to use these commands to locate the directories instead of assuming that vpopmail will always use the same directory structure. 3) Aliases ... can just use .qmail- when moving over. i know nothing about vmailmgr... i would imagine it handles aliases the same way vpopmail does, but if the physical structure of a user's mailbox changes, any .qmail-* file which points to a physical Maildir may need to have its patch adjusted to match the physical location created by vpopmail. for example, if the domain has enough users to trigger user hashing, you may have to change a line like "./user/ Maildir/" to say "./0/user/Maildir/" instead, depending on where that user's directory was created in relation to the domain directory. -- | John M. Simpson - KG4ZOW - Programmer At Large | | http://www.jms1.net/ <[EMAIL PROTECTED]> | -- | Mac OS X proves that it's easier to make UNIX | | pretty than it is to make Windows secure. | -- PGP.sig Description: This is a digitally signed message part
Re: [vchkpw] Migrating users
Jeremy Kitchen wrote: On Friday 28 October 2005 05:03 pm, Juan Enciso wrote: Tom. But the rsync have problem when the directory tree is very big. What alternative could use against of rsync... Another technique for sync files? I've used rsync on ENORMOUS (read: 100+GB) mailstores. works fine. I couldn't possibly imagine migrating a large qmail/vpopmail system with something lesser than rsync. rsync on BSDi and perhaps other BSD systems do have this problem. I've run into it before. I've never had that problem with a Linux system though. Guess I might if I had less than 512 meg of ram or so though. It's not the size of the files, it is the number of files. Rick
Re: [vchkpw] Migrating users
On Friday 28 October 2005 05:03 pm, Juan Enciso wrote: > Tom. > But the rsync have problem when the directory tree is very big. What > alternative could use against of rsync... Another technique for sync > files? I've used rsync on ENORMOUS (read: 100+GB) mailstores. works fine. I couldn't possibly imagine migrating a large qmail/vpopmail system with something lesser than rsync. -Jeremy -- Jeremy Kitchen ++ [EMAIL PROTECTED] In the beginning was The Word and The Word was Content-type: text/plain -- The Word of Bob. pgp3682fpTdd9.pgp Description: PGP signature
Re: [vchkpw] Migrating users
Tom. But the rsync have problem when the directory tree is very big. What alternative could use against of rsync... Another technique for sync files? On 10/28/05, Tom Collins <[EMAIL PROTECTED]> wrote: > On Oct 28, 2005, at 12:27 PM, Rick Root wrote: > > My question is... is there a better way than the steps I described > > above? > > As Rick Macdougall said, rsync is your friend. You can run it once > while everything is live, then stop qmail and run it again to sync up > anything that changed since the first run. Very slick. > > I wrote some scripts to aid in migrating to a new server, and Paul > Kremer recently prettied them up. Give them a shot, they should make > the migration go fairly smoothly. They automate the procedure, and > even include the multiple calls to rsync, along with vadddomain on the > new server, etc. > > http://www.mail-archive.com/vchkpw@inter7.com/msg22410.html > > I recommend adding a dummy domain on your old server and use it as a > dry run for the migration scripts. > > -- > Tom Collins - [EMAIL PROTECTED] > QmailAdmin: http://qmailadmin.sf.net/ Vpopmail: http://vpopmail.sf.net/ > You don't need a laptop to troubleshoot high-speed Internet: > sniffter.com > >
Re: [vchkpw] Migrating users
On Oct 28, 2005, at 12:27 PM, Rick Root wrote: My question is... is there a better way than the steps I described above? As Rick Macdougall said, rsync is your friend. You can run it once while everything is live, then stop qmail and run it again to sync up anything that changed since the first run. Very slick. I wrote some scripts to aid in migrating to a new server, and Paul Kremer recently prettied them up. Give them a shot, they should make the migration go fairly smoothly. They automate the procedure, and even include the multiple calls to rsync, along with vadddomain on the new server, etc. http://www.mail-archive.com/vchkpw@inter7.com/msg22410.html I recommend adding a dummy domain on your old server and use it as a dry run for the migration scripts. -- Tom Collins - [EMAIL PROTECTED] QmailAdmin: http://qmailadmin.sf.net/ Vpopmail: http://vpopmail.sf.net/ You don't need a laptop to troubleshoot high-speed Internet: sniffter.com
Re: [vchkpw] Migrating users
Rick Root wrote: I've recently gone through a server migration of 20 or so domains, none of which had a ton of email in them. Here's what I did: 1. add domain to new server using vadddomain 2. stop qmail-send on old server 3. tar/gzip /home/vpopmail/domains/domaintomove.com directory 4. Move to new server and untar into place, overwriting existing vpasswd and postmaster files. 5. vdeldomain on the old server 6. add domain to rcpthosts on old server 7. add domain:newserver to smtproutes on old server 8. restart qmail-send 9. change DNS. This worked fine for my small server with few messages and few clients that would notice anything strange. However, I've been asked to do the same on another mail server with several hundred domains and 15 gig of mail. In order to transfer one domain with lots of mail, I could potentially have to have the stuff down for an extended period of time. I don't want people reading email while I'm tarring up their domain's email. My question is... is there a better way than the steps I described above? Hi, I do exactly the same but I rsync instead of tar and try to do the rsync before shutting down the old servers qmail-smtpd/send, then the final rsync is quite quick. Regards, Rick
Re: [vchkpw] Migrating all domains to a new box
It worked. Thanks a lot again Rafael Felix Correa > On Monday 25 October 2004 01:32 pm, [EMAIL PROTECTED] wrote: >> Yes, i've searched there, but my situation is a bit different. >> >> I'll only migrate the ~vpopmail/domains dir to another machine. The >> database will be kept the same. >> When i do vdominfo i receive "domains doesn't exists". >> I >> did some tests bringing only the domain dir, i didn't make vadddomain >> because the register already exists on the database. > > you didn't copy the /var/qmail/users and /var/qmail/control directories. > qmail isn't magic, and neither is vpopmail, although sometimes it may seem > that way ;) > > -Jeremy > > -- > Jeremy Kitchen ++ Systems Administrator ++ Inter7 Internet Technologies, > Inc. > [EMAIL PROTECTED] ++ www.inter7.com ++ 866.528.3530 ++ 815.776.9465 > int'l > kitchen @ #qmail #gentoo on EFnet ++ scriptkitchen.com/qmail >GnuPG Key ID: 481BF7E2 ++ scriptkitchen.com/kitchen.asc >
Re: [vchkpw] Migrating all domains to a new box
[EMAIL PROTECTED] wrote: Yes, i've searched there, but my situation is a bit different. I'll only migrate the ~vpopmail/domains dir to another machine. The database will be kept the same. When i do vdominfo i receive "domains doesn't exists". I did some tests bringing only the domain dir, i didn't make vadddomain because the register already exists on the database. If I understand you correctly, you shouldn't have to do anything to move the mail itself (domains dir) from one physical machine to another, so long as 1) Your path on the new server matches exactly the path stored in MySQL (pw_dir field) 2) Permissions are correct, vpopmail:vchkpw 3) The new server has permissions to access MySQL on the database server. DAve [EMAIL PROTECTED] wrote: Hi everyone, I need to make a huge migration from one to another box. I have my authentication info into a database, but i need to know if just migrating all the data from one to another will be enough to keep everything working. Thanks Rafael Felix Correa Have you searched the list archives? This comes up once a week. Jake -- Systems Administrator http://www.tls.net Get rid of Unwanted Emails...get TLS Spam Blocker!
Re: [vchkpw] Migrating all domains to a new box
On Monday 25 October 2004 01:32 pm, [EMAIL PROTECTED] wrote: > Yes, i've searched there, but my situation is a bit different. > > I'll only migrate the ~vpopmail/domains dir to another machine. The > database will be kept the same. > When i do vdominfo i receive "domains doesn't exists". I > did some tests bringing only the domain dir, i didn't make vadddomain > because the register already exists on the database. you didn't copy the /var/qmail/users and /var/qmail/control directories. qmail isn't magic, and neither is vpopmail, although sometimes it may seem that way ;) -Jeremy -- Jeremy Kitchen ++ Systems Administrator ++ Inter7 Internet Technologies, Inc. [EMAIL PROTECTED] ++ www.inter7.com ++ 866.528.3530 ++ 815.776.9465 int'l kitchen @ #qmail #gentoo on EFnet ++ scriptkitchen.com/qmail GnuPG Key ID: 481BF7E2 ++ scriptkitchen.com/kitchen.asc pgpqHoCMbAQc7.pgp Description: PGP signature
Re: [vchkpw] Migrating all domains to a new box
Yes, i've searched there, but my situation is a bit different. I'll only migrate the ~vpopmail/domains dir to another machine. The database will be kept the same. When i do vdominfo i receive "domains doesn't exists". I did some tests bringing only the domain dir, i didn't make vadddomain because the register already exists on the database. > [EMAIL PROTECTED] wrote: > >>Hi everyone, >> >>I need to make a huge migration from one to another box. >>I have my authentication info into a database, but i need to know if just >>migrating all the data from one to another will be enough to keep >>everything working. >> >>Thanks >> >>Rafael Felix Correa >> >> > Have you searched the list archives? This comes up once a week. > > Jake >
Re: [vchkpw] Migrating all domains to a new box
[EMAIL PROTECTED] wrote: Hi everyone, I need to make a huge migration from one to another box. I have my authentication info into a database, but i need to know if just migrating all the data from one to another will be enough to keep everything working. Thanks Rafael Felix Correa Have you searched the list archives? This comes up once a week. Jake
Re: [vchkpw] Migrating an entire domain to a different server.
On Sat, 24 Jul 2004 07:59:30 +1000 "Michael Bellears" <[EMAIL PROTECTED]> wrote: > Hi Jean, > > Jean Wainer wrote: > >> - Copy MySQL entries for domain to new server? (This is the step I am > >> unsure about!) > > Well, you can do that. Or you convert the user base to CDB on > > the original server (~vpopmail/bin/vconvert -m -c $domain), > > copy the CDB file to the other server (inside the domain > > dir), then run vconvert on the new server > > (~vpopmail/bin/vconvert -c -m $domain). I prefer this way.. :) > > > > Ahh - Thanks! > > Any gotchas moving the 5.3.19 -> Current Stable with vconvert? I dont think so. Last time I did that, I moved thousands of domains from vpopmail 4.x to 5.4.5 :) Jean > > Regards, > MB >
RE: [vchkpw] Migrating an entire domain to a different server.
With Mysqlfront you can import one db to another db on another server. http://www.mysqlfront.de I've done it this way before. -Original Message- From: Michael Bellears [mailto:[EMAIL PROTECTED] Sent: Friday, July 23, 2004 5:00 PM To: [EMAIL PROTECTED] Subject: RE: [vchkpw] Migrating an entire domain to a different server. Hi Jean, Jean Wainer wrote: >> - Copy MySQL entries for domain to new server? (This is the step I am >> unsure about!) > Well, you can do that. Or you convert the user base to CDB on > the original server (~vpopmail/bin/vconvert -m -c $domain), > copy the CDB file to the other server (inside the domain > dir), then run vconvert on the new server > (~vpopmail/bin/vconvert -c -m $domain). I prefer this way.. :) > Ahh - Thanks! Any gotchas moving the 5.3.19 -> Current Stable with vconvert? Regards, MB --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.725 / Virus Database: 480 - Release Date: 7/19/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.725 / Virus Database: 480 - Release Date: 7/19/2004
RE: [vchkpw] Migrating an entire domain to a different server.
Hi Jean, Jean Wainer wrote: >> - Copy MySQL entries for domain to new server? (This is the step I am >> unsure about!) > Well, you can do that. Or you convert the user base to CDB on > the original server (~vpopmail/bin/vconvert -m -c $domain), > copy the CDB file to the other server (inside the domain > dir), then run vconvert on the new server > (~vpopmail/bin/vconvert -c -m $domain). I prefer this way.. :) > Ahh - Thanks! Any gotchas moving the 5.3.19 -> Current Stable with vconvert? Regards, MB
RE: [vchkpw] Migrating an entire domain to a different server.
Shane Chrisp wrote: >> Running vpopmail version: 5.3.19, with MySQL auth (I know - Have to >> upgrade!), and we have one client who wishes to move there domain to >> a new server - The domain contains about 400 accounts, and I was >> wondering the best way to migrate the entire domain? >> >> - Add clients_domain to new server >> - Copy /home/vpopmail/domains/clients_domain/* to new server > Last time I did this I moved about 300 domains with about > 25000 users by tar'ing up the entire domains then extracting > them on the new system. Just make sure you chown to the right > user if you use a different uid/gid for vpopmail.vchkpw > >> - Copy MySQL entries for domain to new server? (This is the step I am >> unsure about!) > > All I did was dump the DB and then import it on the new mysql server. I would do this, but I have ~300 Domains on our server, that I do not want on the clients new server. Regards, MB > > regards > > Shane
Re: [vchkpw] Migrating an entire domain to a different server.
On Friday 23 July 2004 08:52 am, Shane Chrisp wrote: > >Running vpopmail version: 5.3.19, with MySQL auth (I know - Have to > >upgrade!), and we have one client who wishes to move there domain to a > >new server - The domain contains about 400 accounts, and I was > >wondering > >the best way to migrate the entire domain? > > > >- Add clients_domain to new server > >- Copy /home/vpopmail/domains/clients_domain/* to new server > > Last time I did this I moved about 300 domains with about 25000 users by > tar'ing > up the entire domains then extracting them on the new system. Just make > sure you > chown to the right user if you use a different uid/gid for vpopmail.vchkpw use rsync so you can get everything prepared and make the switch faster :) -Jeremy -- Jeremy Kitchen ++ Systems Administrator ++ Inter7 Internet Technologies, Inc. [EMAIL PROTECTED] ++ www.inter7.com ++ 866.528.3530 ++ 847.492.0470 int'l kitchen @ #qmail #gentoo on EFnet ++ scriptkitchen.com/qmail
RE: [vchkpw] Migrating an entire domain to a different server.
>Running vpopmail version: 5.3.19, with MySQL auth (I know - Have to >upgrade!), and we have one client who wishes to move there domain to a >new server - The domain contains about 400 accounts, and I was >wondering >the best way to migrate the entire domain? > >- Add clients_domain to new server >- Copy /home/vpopmail/domains/clients_domain/* to new server Last time I did this I moved about 300 domains with about 25000 users by tar'ing up the entire domains then extracting them on the new system. Just make sure you chown to the right user if you use a different uid/gid for vpopmail.vchkpw >- Copy MySQL entries for domain to new server? (This is the step I am >unsure about!) All I did was dump the DB and then import it on the new mysql server. regards Shane
Re: [vchkpw] Migrating an entire domain to a different server.
Hi Michael, On Fri, 23 Jul 2004 10:33:31 +1000 "Michael Bellears" <[EMAIL PROTECTED]> wrote: > Running vpopmail version: 5.3.19, with MySQL auth (I know - Have to > upgrade!), and we have one client who wishes to move there domain to a > new server - The domain contains about 400 accounts, and I was wondering > the best way to migrate the entire domain? > > - Add clients_domain to new server Right. > - Copy /home/vpopmail/domains/clients_domain/* to new server Ok. > - Copy MySQL entries for domain to new server? (This is the step I am > unsure about!) Well, you can do that. Or you convert the user base to CDB on the original server (~vpopmail/bin/vconvert -m -c $domain), copy the CDB file to the other server (inside the domain dir), then run vconvert on the new server (~vpopmail/bin/vconvert -c -m $domain). I prefer this way.. :) Jean > > Thanks in advance. > > Regards, > MB >
Re: [vchkpw] Migrating from crypt /etc/shadow to md5 vpasswd
Thanks Charles, These days instead of battling usr-tc's i am battling mail server stuff, but things are going smooth with vpopmail so far, this list is a great help. Brian On Jul 8, 2004, at 5:35 PM, Charles Sprickman wrote: On Thu, 8 Jul 2004, Brian Feeny wrote: I am moving customers over from a non-vpopmail setup authenticating off /etc/shadow with crypt passwords, to a vpopmail setup (same box) which uses md5. Brian, I haven't seen you since the usr-tch days... This should "just work"; vpopmail uses the system crypt library, so if you bring your existing passwords in, they should work. As people change their passwords on the new setup, they should end up as md5 (unless your crypt library is configured to do otherwise, not sure how that's handled on linux). Charles Is there any way to do this easier than: 1. getting the cleartext passwords and re-encrypting into md5 2. or turning on a password learning mode of the pop/imap server Alternately is there anyway to tell vpopmail to use crypt instead of md5 "on a per domain basis". I realize I can build vpopmail to disable md5 support (in favor of crypt), but was wondering if this is possible on a per domain basis. Brian -- Brian Feeny, CCIE #8036 e: [EMAIL PROTECTED] Network Engineerp: 318.213.4709 ShreveNet Inc. f: 318.221.6612
Re: [vchkpw] Migrating from crypt /etc/shadow to md5 vpasswd
On Thu, 8 Jul 2004, Brian Feeny wrote: > I am moving customers over from a non-vpopmail setup authenticating off > /etc/shadow with crypt passwords, to a vpopmail setup (same box) which > uses md5. Brian, I haven't seen you since the usr-tch days... This should "just work"; vpopmail uses the system crypt library, so if you bring your existing passwords in, they should work. As people change their passwords on the new setup, they should end up as md5 (unless your crypt library is configured to do otherwise, not sure how that's handled on linux). Charles > Is there any way to do this easier than: > 1. getting the cleartext passwords and re-encrypting into md5 > 2. or turning on a password learning mode of the pop/imap server > > Alternately is there anyway to tell vpopmail to use crypt instead of > md5 "on a per domain basis". > I realize I can build vpopmail to disable md5 support (in favor of > crypt), but was wondering if this > is possible on a per domain basis. > > Brian > > -- > Brian Feeny, CCIE #8036 e: [EMAIL PROTECTED] > Network Engineer p: 318.213.4709 > ShreveNet Inc.f: 318.221.6612 > >
RE: [vchkpw] Migrating users from debian ipop to vpopmail withmysql.
The users are all system users and e-mail gets stored in a file in /var/mail and what I meant was that we were using the default ipop server that comes with debian. -Original Message- From: Jeremy Kitchen [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 16, 2004 11:42 AM To: [EMAIL PROTECTED] Subject: Re: [vchkpw] Migrating users from debian ipop to vpopmail withmysql. On Tue, 2004-03-16 at 10:44, David Petruzzella wrote: > I have a box that is being decommissioned running debian with ipop and > I need to migrate the e-mail from that server to the new server which > is running qmail, vpopmail, courier-imap, with mysql authentication > and I was wondering what is the easiest way of doing it with out > loosing any e-mail which is the most important thing. If anyone has > any suggestions, recommendations it will be greatly appreciated. > Thanks. easiest way? Hire someone. alternative way? Post more useful information, ie, what kind of users, what kind of mailbox storage, etc. 'we are using debian and ipop' is really not useful. -Jeremy -- Jeremy Kitchen Systems Administrator [EMAIL PROTECTED] Kitchen @ #qmail on EFNet - Join the party! . Inter7 Internet Technologies, Inc. www.inter7.com 866.528.3530 toll free 847.492.0470 int'l 847.492.0632 fax GNUPG key ID: 93BDD6CE
Re: [vchkpw] Migrating users from debian ipop to vpopmail with mysql.
On Tue, 2004-03-16 at 10:44, David Petruzzella wrote: > I have a box that is being decommissioned running debian with ipop and > I need to migrate the e-mail from that server to the new server which > is running qmail, vpopmail, courier-imap, with mysql authentication > and I was wondering what is the easiest way of doing it with out > loosing any e-mail which is the most important thing. If anyone has > any suggestions, recommendations it will be greatly appreciated. > Thanks. easiest way? Hire someone. alternative way? Post more useful information, ie, what kind of users, what kind of mailbox storage, etc. 'we are using debian and ipop' is really not useful. -Jeremy -- Jeremy Kitchen Systems Administrator [EMAIL PROTECTED] Kitchen @ #qmail on EFNet - Join the party! . Inter7 Internet Technologies, Inc. www.inter7.com 866.528.3530 toll free 847.492.0470 int'l 847.492.0632 fax GNUPG key ID: 93BDD6CE
Re: [vchkpw] Migrating Domains to new Vpopmail Server
On Tuesday, June 17, 2003, at 08:00 AM, David Bronson wrote: My question is this: There is now qmail locals file. As I change MX records, I would like the old server to forward mail to the new one. How can I change the vpopmail locals database and not change the rcpthosts? I guess I could vdeldomain and add back the domain to rcpthosts, is that the best way? I did this recently on a server using CDB, and here are the general steps that I did, in order. stop qmail on old add domain.com to new (use any password, next step will fix it) copy ~vpopmail/domains/domain.com from old to new (I used rsync, ssh would work as well) change MX record on DNS server to point to new remove domain.com from old add domain.com back to rcpthosts on old make sure old has new MX record for domain.com start qmail on old Keep in mind that this worked for me because server "old" was also the DNS server for all of the domains, so I was sure it would have the correct MX record for each domain as I moved it. If you don't have that luxury, I think you can use smtproutes on the old server to force it to relay the mail to the new server. I was able to automate a lot of the process using scripts and ssh between the two hosts (I set them up as trusted hosts so I wouldn't have to constantly enter my password). Don't forget to move the alias domains as well! They don't appear in ~vpopmail/domains -- you'll have to look in /var/qmail/users/assign to find them. -- Tom Collins [EMAIL PROTECTED]
RE: [vchkpw] Migrating Domains to new Vpopmail Server
/var/qmail/control/smtproutes Format is similar to the /var/qmail/control/virtualhosts file. foo.bar:new.server.dom Where foo.bar is the domain name and new.server.dom is the mail server to route mail for that domain to. new.server.dom can be a domain name, or an IP address. Note that foo.bar and new.server.dom are separated by a colon. -Original Message- From: David Bronson [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 17, 2003 7:00 AM To: [EMAIL PROTECTED] Subject: [vchkpw] Migrating Domains to new Vpopmail Server Hi all, I have my new vpopmail server complete (yippee!). This one does chkusr and tarpitting - (the old server was somewhat vulnerable to dictionary ttacks and had lots of messages in the queue usually. Thanks to all for great software and enhancements. My question is this: There is now qmail locals file. As I change MX records, I would like the old server to forward mail to the new one. How can I change the vpopmail locals database and not change the rcpthosts? I guess I could vdeldomain and add back the domain to rcpthosts, is that the best way? -- David Bronson
Re: [vchkpw] migrating
Actually, I am currently working on the same thing (moving an entire IMail 6 on Win2K Pro to vpopmail on FreeBSD) and came up with an interesting way to migrate people over. We're using IMail's internal user database, and this may or may not work if you're using an external database or the NT one. (I've only dealt with IMail at two different places, and both used the internal IMail database.) As always, YMMV. I found a neat little utility that can be run from the command line on Win2000 to export the usernames and passwords of all IMail users on all domains. Each domain goes into its own text file. It's supposed to export in several formats (CSV, or having columns for each thing starting at a fixed place, etc.) Never could make CSV work, but I was able to use fixed-width fields. I then conjured up a shell script into which you can cat(1) the text file (just remove the first line with the field names, and the last one with the _alias user.) This script would extract (using a hack of commands) the usernames and passwords, then call vadduser to add their accounts (including username, password, and GECOS fields.) Only problems I have had with this method: Users who have their mail forwarded are created on the new server, but their mail isn't forwarded. For me, this isn't a problem, since I can scroll through there and spot-check them, then manually (through qmailadmin) set up those who need it. No biggie. Also, aliases aren't converted, so you have to do those by hand. (We don't have many aliases either.) Lists are also a manual thing, but we have very few of those. If you have alot of aliases/lists/forwarded accounts, this could be a major pain. There might be a better way that I missed, but this one works fine for my purposes and beats typing it all out by hand for sure! :) If anyone's interested in this please E-Mail me directly and let me know. (I'm not at work right now, and I'd have to be there to find the exact names of the software I used.) I can send you the link to the software and a copy of the script, etc. Call it a dirty hack, but it works. However, YMMV. Jeremy Unless the network is lying to me again, Vladimir Kabanov said: > export to LDIF and then parse that file > > - Original Message - > From: "made" <[EMAIL PROTECTED]> > To: "vchkpw" <[EMAIL PROTECTED]> > Sent: Wednesday, March 19, 2003 12:59 AM > Subject: [vchkpw] migrating > > > > did anyone knows how to migrating database account from Imail mail server > > to vchkpw database(mysql) > > -- > > made <[EMAIL PROTECTED]> > > > > > > -- > -- > > Ikuti polling TELKOM Memo 166 di www.plasa.com dan menangkan hadiah > masing-masing Rp 250.000 tunai > > - > --- > > > > > > -- Jeremy Gault <[EMAIL PROTECTED]> Network Administrator / MIS, WinWorld Corporation (v) 423-473-8084 // (f) 423-472-9465
Re: [vchkpw] migrating
export to LDIF and then parse that file - Original Message - From: "made" <[EMAIL PROTECTED]> To: "vchkpw" <[EMAIL PROTECTED]> Sent: Wednesday, March 19, 2003 12:59 AM Subject: [vchkpw] migrating > did anyone knows how to migrating database account from Imail mail server > to vchkpw database(mysql) > -- > made <[EMAIL PROTECTED]> > > > -- -- > Ikuti polling TELKOM Memo 166 di www.plasa.com dan menangkan hadiah masing-masing Rp 250.000 tunai > - --- > >