Re: Re[4]: [toaster] Transfer mail accounts from one server to another
On Mon, 30 Apr 2007, Neil wrote: I get ls: /home/vpopmail/domains/kn.ae/vpopmail*: No such file or directory sorry, a typo, my mistake; i meant `ls -l /home/vpopmail/domains/kn.ae/vpasswd*` we tried to see if vpasswd files were regenerated in the new server, as suggested in another post [EMAIL PROTECTED] ~]# ls -l /var/qmail/users/ total 8 -rw-r--r-- 1 root root 191 Apr 30 11:34 assign -rw--- 1 root root0 Apr 28 15:36 assign.lock -rw-r--r-- 1 root root 2343 Apr 28 15:57 cdb It seems that cdb file is outdated there. Try: ~vpopmail/bin/vadddomain test.com 12345678 ~vpopmail/bin/vdeldomain test.com and re-test POP3 access following http://shupp.org/toaster/?page=test regards, __Abel
Re: Re[4]: [toaster] Transfer mail accounts from one server to another
I will try to start all over once again I am installing this on CentOS 4.4 2.6.9-42.0.10.ELsmp. Is it a good distribution to use in the long run? OR Is ubuntu a good choice for toaster ? Thanks all for all the help offered so far. I will get back to you all after the installation. Is Vpopmail with MySql a better choice than cdb ? Again thank you very much. --- [EMAIL PROTECTED] wrote: On Mon, 30 Apr 2007, Neil wrote: As requested, [EMAIL PROTECTED] ~]# grep vpopmail /etc/passwd vpopmail:x:89:89::/home/vpopmail:/bin/bash . [EMAIL PROTECTED] ~]# ls -al ~vpopmail/domains total 24 drwx-- 3 vpopmail vchkpw 4096 Apr 30 11:41 . drwx-- 8 vpopmail vchkpw 4096 Apr 24 08:53 .. -rw--- 1 vpopmail vchkpw34 Apr 28 15:57 .dir-control drwx-- 81 vpopmail vchkpw 12288 Apr 26 10:55 kn.ae more /var/qmail/users/assign +kn.ae-:kn.ae:89:89:/home/vpopmail/domains/kn.ae:-:: . Hello, What about cdb files? Did you re-generate it in the destination server? ls -l /home/vpopmail/domains/kn.ae/vpopmail* ?? ls -l /var/qmail/users/ ?? regards, __Abel. That's why i advised on creating a dummy domain to recreate the .cdb files. It worked for me but i have a mysql setup don't know if it behaves the same way. 'qmailctl cdb' was no good. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Re: Re[4]: [toaster] Transfer mail accounts from one server to another
For centos i'm a good advocate since i'm using it for some time and i hadn't had any major problems with anything. Bill's Toaster works fine on all of the machines i'm taking care of and i use centos 4.4 on all of them. It doesn't matter if you change to a mysql setup... if you need to migrate the server you will have the same issue with the logins. If it's not a busy server (meaning logins per second) you don't need to change the cdb setup to mysql and make things more complicated. I advise you to try to workout the problem since you will stumble on it some other time. I needed to migrate a server and i had 40 domains on it, starting from scratch was not an option :) Try using the vqadmin script to add a new dummy domain. I will try to start all over once again I am installing this on CentOS 4.4 2.6.9-42.0.10.ELsmp. Is it a good distribution to use in the long run? OR Is ubuntu a good choice for toaster ? Thanks all for all the help offered so far. I will get back to you all after the installation. Is Vpopmail with MySql a better choice than cdb ? Again thank you very much. --- [EMAIL PROTECTED] wrote: On Mon, 30 Apr 2007, Neil wrote: As requested, [EMAIL PROTECTED] ~]# grep vpopmail /etc/passwd vpopmail:x:89:89::/home/vpopmail:/bin/bash . [EMAIL PROTECTED] ~]# ls -al ~vpopmail/domains total 24 drwx-- 3 vpopmail vchkpw 4096 Apr 30 11:41 . drwx-- 8 vpopmail vchkpw 4096 Apr 24 08:53 .. -rw--- 1 vpopmail vchkpw34 Apr 28 15:57 .dir-control drwx-- 81 vpopmail vchkpw 12288 Apr 26 10:55 kn.ae more /var/qmail/users/assign +kn.ae-:kn.ae:89:89:/home/vpopmail/domains/kn.ae:-:: . Hello, What about cdb files? Did you re-generate it in the destination server? ls -l /home/vpopmail/domains/kn.ae/vpopmail* ?? ls -l /var/qmail/users/ ?? regards, __Abel. That's why i advised on creating a dummy domain to recreate the .cdb files. It worked for me but i have a mysql setup don't know if it behaves the same way. 'qmailctl cdb' was no good. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Re[4]: [toaster] Transfer mail accounts from one server to another
Hi Neil, Can you please send me output of the following commands # grep vpopmail /etc/passwd # ls -al ~vpopmail/bin # ls -al ~vpopmail/domains # more /var/qmail/users/assign and qmail-pop3d/run file Thanks. Monday, April 30, 2007, 7:18:19 AM, you wrote: Hi Ismail, Telnet to POP3 using the transfered email accounts gives -ERR authorization failed And /var/log/maillog states Apr 30 08:10:25 mail vpopmail[420]: vchkpw-pop3: vpopmail user not found [EMAIL PROTECTED] when I log in with the dummy domain which I created I am able to log in. Thanks always for all your responses, Neil --- Ismail YENIGUL [EMAIL PROTECTED] wrote: Hi Neil, Try to make a pop3 connection via telnet and tell us the error message. Also check /var/log/maillog file for any error about this connection. example: #telnet localhost 110 user [EMAIL PROTECTED] pass userpassword Thanks. Saturday, April 28, 2007, 3:07:42 PM, you wrote: Thanks for the reply. I tried to create a dummy domain but still same problem persists. any other pointers ? Thanks, N --- [EMAIL PROTECTED] wrote: Dear All, I need to transfer all my users around 500+ users from an old server using cdb to another server using the same toaster setup. I went thro the mailing list and tried all the steps viz; 1. did tar -cpf on old server. 2. extracted the tar archive to target server. 3. copied the /var/qmail/control ..rctphosts, virtual domains, etc + assign files to the new server 4. when I try to check the accounts using qmailadmin I cannot log in. Same case with squirrelmail. 5. Please tell me where/what I am doing wrong. I checked all the uid, gid and they are the same on both the servers 6. It is really cumbersome to create all the accounts in the new server. 7. Will a mysql setup be more efficient for transferring users in the future? Besides it also provides cluster support. Awaiting eagerly for your replies. Regards, Mark __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com After a similar server migration i had the same problem... I noticed that the rcpthosts.cdb file was not rebuilt. I managed to solve this by creating a new, fake, virtualdomain like test.com or something and after that all the logins were working ok. Well, in my case, i changed the paths to the domains directory, that's how i noticed that the .cdb files are not rebuilt. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- Ismail YENIGUL EnderUNIX Cekirdek Takimi Uyesi Acik Akademi Yayinlari Editoru [EMAIL PROTECTED] http://www.enderunix.org Yayinevi Sanal Magaza: http://dukkan.acikakademi.com endersys: http://www.endersys.com __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- Ismail YENIGUL EnderUNIX Cekirdek Takimi Uyesi Acik Akademi Yayinlari Editoru [EMAIL PROTECTED] http://www.enderunix.org Yayinevi Sanal Magaza: http://dukkan.acikakademi.com endersys: http://www.endersys.com
Re: Re[4]: [toaster] Transfer mail accounts from one server to another
As requested, [EMAIL PROTECTED] ~]# grep vpopmail /etc/passwd vpopmail:x:89:89::/home/vpopmail:/bin/bash [EMAIL PROTECTED] ~]# [EMAIL PROTECTED] ~]# ls -al ~vpopmail/bin total 1508 drwxr-xr-x 2 vpopmail vchkpw 4096 Apr 23 11:18 . drwx-- 8 vpopmail vchkpw 4096 Apr 24 08:53 .. -rwx--x--x 1 vpopmail vchkpw 53008 Apr 23 11:18 clearopensmtp -rwx--x--x 1 vpopmail vchkpw 60732 Apr 23 11:18 dotqmail2valias -rwx--x--x 1 vpopmail vchkpw 56560 Apr 23 11:18 vaddaliasdomain -rwx--x--x 1 vpopmail vchkpw 56592 Apr 23 11:18 vadddomain -rwx--x--x 1 vpopmail vchkpw 56560 Apr 23 11:18 vadduser -rwx--x--x 1 vpopmail vchkpw 60732 Apr 23 11:18 valias -rwx--x--x 1 vpopmail vchkpw 54480 Apr 23 11:18 vchangepw -rwx--x--x 1 vpopmail vchkpw 61640 Apr 23 11:18 vchkpw -rwx--x--x 1 vpopmail vchkpw 56592 Apr 23 11:18 vconvert -rwx--x--x 1 vpopmail vchkpw 54192 Apr 23 11:18 vdeldomain -rwx--x--x 1 vpopmail vchkpw 61212 Apr 23 11:18 vdelivermail -rwx--x--x 1 vpopmail vchkpw 56560 Apr 23 11:18 vdeloldusers -rwx--x--x 1 vpopmail vchkpw 53648 Apr 23 11:18 vdeluser -rwx--x--x 1 vpopmail vchkpw 56592 Apr 23 11:18 vdominfo -rwx--x--x 1 vpopmail vchkpw 56560 Apr 23 11:18 vipmap -rwx--x--x 1 vpopmail vchkpw 53360 Apr 23 11:18 vkill -rwx--x--x 1 vpopmail vchkpw 53136 Apr 23 11:18 vmkpasswd -rwx--x--x 1 vpopmail vchkpw 63184 Apr 23 11:18 vmoddomlimits -rwx--x--x 1 vpopmail vchkpw 60688 Apr 23 11:18 vmoduser -rwx--x--x 1 vpopmail vchkpw 56560 Apr 23 11:18 vpasswd -rwx--x--x 1 vpopmail vchkpw 57072 Apr 23 11:18 vpopbull -rwx--x--x 1 vpopmail vchkpw 86268 Apr 23 11:18 vpopmaild -rwx--x--x 1 vpopmail vchkpw 56592 Apr 23 11:18 vsetuserquota -rwx--x--x 1 vpopmail vchkpw 57744 Apr 23 11:18 vuserinfo [EMAIL PROTECTED] ~]# ls -al ~vpopmail/domains total 24 drwx-- 3 vpopmail vchkpw 4096 Apr 30 11:41 . drwx-- 8 vpopmail vchkpw 4096 Apr 24 08:53 .. -rw--- 1 vpopmail vchkpw34 Apr 28 15:57 .dir-control drwx-- 81 vpopmail vchkpw 12288 Apr 26 10:55 kn.ae more /var/qmail/users/assign +kn.ae-:kn.ae:89:89:/home/vpopmail/domains/kn.ae:-:: . [EMAIL PROTECTED] qmail-pop3d]# cat /var/qmail/supervise/qmail-pop3d/run #!/bin/sh VPOPMAILUID=`id -u vpopmail` VPOPMAILGID=`id -g vpopmail` exec /usr/local/bin/tcpserver -l 0 -R -H -v \ -u$VPOPMAILUID -g$VPOPMAILGID 0 110 \ /var/qmail/bin/qmail-popup `hostname` \ /home/vpopmail/bin/vchkpw \ /var/qmail/bin/qmail-pop3d Maildir 21 --- Ismail YENIGUL [EMAIL PROTECTED] wrote: Hi Neil, Can you please send me output of the following commands # grep vpopmail /etc/passwd # ls -al ~vpopmail/bin # ls -al ~vpopmail/domains # more /var/qmail/users/assign and qmail-pop3d/run file Thanks. Monday, April 30, 2007, 7:18:19 AM, you wrote: Hi Ismail, Telnet to POP3 using the transfered email accounts gives -ERR authorization failed And /var/log/maillog states Apr 30 08:10:25 mail vpopmail[420]: vchkpw-pop3: vpopmail user not found [EMAIL PROTECTED] when I log in with the dummy domain which I created I am able to log in. Thanks always for all your responses, Neil --- Ismail YENIGUL [EMAIL PROTECTED] wrote: Hi Neil, Try to make a pop3 connection via telnet and tell us the error message. Also check /var/log/maillog file for any error about this connection. example: #telnet localhost 110 user [EMAIL PROTECTED] pass userpassword Thanks. Saturday, April 28, 2007, 3:07:42 PM, you wrote: Thanks for the reply. I tried to create a dummy domain but still same problem persists. any other pointers ? Thanks, N --- [EMAIL PROTECTED] wrote: Dear All, I need to transfer all my users around 500+ users from an old server using cdb to another server using the same toaster setup. I went thro the mailing list and tried all the steps viz; 1. did tar -cpf on old server. 2. extracted the tar archive to target server. 3. copied the /var/qmail/control ..rctphosts, virtual domains, etc + assign files to the new server 4. when I try to check the accounts using qmailadmin I cannot log in. Same case with squirrelmail. 5. Please tell me where/what I am doing wrong. I checked all the uid, gid and they are the same on both the servers 6. It is really cumbersome to create all the accounts in the new server. 7. Will a mysql setup be more efficient for transferring users in the future? Besides it also provides cluster support. Awaiting eagerly for your replies. Regards, Mark __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com After a similar server migration i had the same problem... I noticed that the rcpthosts.cdb file
Re: Re[4]: [toaster] Transfer mail accounts from one server to another
I get ls: /home/vpopmail/domains/kn.ae/vpopmail*: No such file or directory the same response on the old production running server as well and for, [EMAIL PROTECTED] ~]# ls -l /var/qmail/users/ total 8 -rw-r--r-- 1 root root 191 Apr 30 11:34 assign -rw--- 1 root root0 Apr 28 15:36 assign.lock -rw-r--r-- 1 root root 2343 Apr 28 15:57 cdb Thanks again. --- Abel Lucano [EMAIL PROTECTED] wrote: On Mon, 30 Apr 2007, Neil wrote: As requested, [EMAIL PROTECTED] ~]# grep vpopmail /etc/passwd vpopmail:x:89:89::/home/vpopmail:/bin/bash . [EMAIL PROTECTED] ~]# ls -al ~vpopmail/domains total 24 drwx-- 3 vpopmail vchkpw 4096 Apr 30 11:41 . drwx-- 8 vpopmail vchkpw 4096 Apr 24 08:53 .. -rw--- 1 vpopmail vchkpw34 Apr 28 15:57 .dir-control drwx-- 81 vpopmail vchkpw 12288 Apr 26 10:55 kn.ae more /var/qmail/users/assign +kn.ae-:kn.ae:89:89:/home/vpopmail/domains/kn.ae:-:: . Hello, What about cdb files? Did you re-generate it in the destination server? ls -l /home/vpopmail/domains/kn.ae/vpopmail* ?? ls -l /var/qmail/users/ ?? regards, __Abel. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com