Re[6]: [toaster] Transfer mail accounts from one server to another
Hi Neil, And /var/log/maillog states Apr 30 08:10:25 mail vpopmail[420]: vchkpw-pop3: vpopmail user not found [EMAIL PROTECTED] Yo are making pop3 test with [EMAIL PROTECTED] but you don't have this domain in ~vpopmail/domains directory? Thanks. Monday, April 30, 2007, 10:54:07 AM, you wrote: 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
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: [toaster] Stunnel v4 + pop3ds problem
Hello Bill I enabled the stunnel debug in stunnel.conf but the log file stay empty !! I have try to restart stunnel but the init.d/stunnel4 does not seems to work well ... What do you mean by sim-link the pem file ? Thank you Laƫtitia 2007/5/1, Bill Shupp [EMAIL PROTECTED]: laety Boop wrote: Hi Rick ! Thank you for your answer. I used the Bill's toaster pop3d.run.v4 as he told to do with stunnel v4. Does someone has any idea ? The problem is that stunnel is for some reason defaulting to /etc/stunnel/stunnel.pem, it's not honoring your cert entry in stunnel.conf. I don't know why that is, though. Your run and conf files look correct. Perhaps there's a debug or verbose argument to stunnel. You could also sym-link the pem file to see if that works as a test. Regards, Bill
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: [toaster] Transfer mail accounts from one server to another
Some thoughts... Unless you have a massive multi server mail installation, or need to manage mail accounts from a custom program, don't mess with a database. CDB is more efficient on a single machine. Even if you are writing a custom program, look at vpopmaild to manage your mail accounts. If you want to move from one machine to another the UID, GID, permissions, ownership, and paths for all files used by qmail, vpopmail and apache must be identical. I suggest you copy and paste the /etc/passwd and /etc/group lines rather than trying to type them. Many of these values are compiled into qmail, vpopmail and qmailadmin. You will need at least /var/qmail/alias, /var/qmail/control, /var/qmail/users and the entire ~vpopmail directory. If you are updating the vpopmail code, do make install after copying the ~vpopmail directory. Be sure all ownership and permissions are preserved. Rick