Re: [vchkpw] Transfering from Old to New Server
Hi, On Fri, 2005-03-11 at 14:54, Blake wrote: Tom Collins wrote: On Mar 11, 2005, at 12:57 PM, Blake wrote: I also got this error from qmailadmin: file permission error /home/vpopmail/domains/cccwireless.net/postmaster/Maildir/ 1110573912.qw does that make more since? No, but it makes more sense. qmailadmin needs to be owned by vpopmail:vchkpw and have the suid bit set in its permissions. I needs to be on a partition that isn't mounted with the nosuid option. ~vpopmail/domains should be owned, in its entirety by vpopmail:vchkpw. If qmailadmin doesn't run as vpopmail, then it can't authenticate users on a cdb backend, and it won't allow anyone to log in with a MySQL backend. -- 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 Guess what!! That fixed it. I have successfully moved my entire mail database over to another computer and it functions exactly the same as the old server!! This would be a great howto: if you are using qmail and vpopmail with mysql: copy or rsync (Better Idea) the following directories: /var/qmail/alias /var/qmail/control /var/qmail/users /home/vpopmail/domains replicate the mysql database (perhaps constantly) this will keep an identical server running side by side thanks everyone!! -Blake- After trying this I am unable to login to pop3 or when I issue a vuserinfo command I get: vmysql: can't read settings from /home/vpopmail/etc/vpopmail.mysql no such user [EMAIL PROTECTED] If I telnet in I get a: -ERR authorization failed If I make a new domain (vadddomain) I can log into that just fine. Vuserinfo returns the correct data. Has anybody ran into this before? How to I go about solving it. I have made sure that vpopmail.mysql is owned by vpopmail I even chmod 777 just to be sure. The fact that a newly created domain functions just perfect backs up the fact that vpopmail can read the vpopmail.mysql file. Thanks, _ /-\ ndrew ok... I did leave out some details, First of all, start with a clean slate on your slave server / new server. Drop the database vpopmail. Create it again. On the master computer do the following: mysqldump -u (adminname) -p vpopmail /root/vpopmail.sql Type the password and you have now made an image of your vpopmail database..Get that file over to the slave computer. Then on the slave computer login to mysql and do the following: use vpopmail; source /root/vpopmail.sql; Now you should be good to go. copy exactly the /home/vpopmail/domains dir over then run chown -R vpopmail:vchkpw /home/vpopmail/domains/* Of course you want to copy over /var/qmail/control /var/qmail/alais /var/qmail/users then... start the server... start imap and you should be home free BUD (Officespace) Hope this helps thanks -Blake-
Re: [vchkpw] Transfering from Old to New Server
Hi, On Sun, 2005-03-13 at 10:53, [EMAIL PROTECTED] wrote: After trying this I am unable to login to pop3 or when I issue a vuserinfo command I get: vmysql: can't read settings from /home/vpopmail/etc/vpopmail.mysql no such user [EMAIL PROTECTED] If I telnet in I get a: -ERR authorization failed If I make a new domain (vadddomain) I can log into that just fine. Vuserinfo returns the correct data. Has anybody ran into this before? How to I go about solving it. I have made sure that vpopmail.mysql is owned by vpopmail I even chmod 777 just to be sure. The fact that a newly created domain functions just perfect backs up the fact that vpopmail can read the vpopmail.mysql file. Thanks, _ /-\ ndrew ok... I did leave out some details, First of all, start with a clean slate on your slave server / new server. Drop the database vpopmail. Create it again. On the master computer do the following: mysqldump -u (adminname) -p vpopmail /root/vpopmail.sql Type the password and you have now made an image of your vpopmail database..Get that file over to the slave computer. Then on the slave computer login to mysql and do the following: use vpopmail; source /root/vpopmail.sql; Now you should be good to go. copy exactly the /home/vpopmail/domains dir over then run chown -R vpopmail:vchkpw /home/vpopmail/domains/* Of course you want to copy over /var/qmail/control /var/qmail/alais /var/qmail/users then... start the server... start imap and you should be home free BUD (Officespace) Hope this helps thanks -Blake- After doing all of that and spending a day trying to get it work I am still getting the same errors as above. I finally figured out what my issues were. The user and group must have the same id on both servers. I had read that someplace before but forgot about it. So yeah problem solved. I was doing it the right way all along just wrong user and group id's chalk another one up to me being dumb. I am glad that you got it figured out. I have been working on this myself for over a week. Pulling my hair out!!! I think that this should be a howto somewhere. Thanks -Blake-
Re: [vchkpw] Transfering from Old to New Server
Hi, On Fri, 2005-03-11 at 14:54, Blake wrote: Tom Collins wrote: On Mar 11, 2005, at 12:57 PM, Blake wrote: I also got this error from qmailadmin: file permission error /home/vpopmail/domains/cccwireless.net/postmaster/Maildir/ 1110573912.qw does that make more since? No, but it makes more sense. qmailadmin needs to be owned by vpopmail:vchkpw and have the suid bit set in its permissions. I needs to be on a partition that isn't mounted with the nosuid option. ~vpopmail/domains should be owned, in its entirety by vpopmail:vchkpw. If qmailadmin doesn't run as vpopmail, then it can't authenticate users on a cdb backend, and it won't allow anyone to log in with a MySQL backend. -- 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 Guess what!! That fixed it. I have successfully moved my entire mail database over to another computer and it functions exactly the same as the old server!! This would be a great howto: if you are using qmail and vpopmail with mysql: copy or rsync (Better Idea) the following directories: /var/qmail/alias /var/qmail/control /var/qmail/users /home/vpopmail/domains replicate the mysql database (perhaps constantly) this will keep an identical server running side by side thanks everyone!! -Blake- After trying this I am unable to login to pop3 or when I issue a vuserinfo command I get: vmysql: can't read settings from /home/vpopmail/etc/vpopmail.mysql no such user [EMAIL PROTECTED] If I telnet in I get a: -ERR authorization failed If I make a new domain (vadddomain) I can log into that just fine. Vuserinfo returns the correct data. Has anybody ran into this before? How to I go about solving it. I have made sure that vpopmail.mysql is owned by vpopmail I even chmod 777 just to be sure. The fact that a newly created domain functions just perfect backs up the fact that vpopmail can read the vpopmail.mysql file. Thanks, _ /-\ ndrew
[vchkpw] Transfering from Old to New Server
Hello everyone, I am running qmail with vpopmail. I Also use vqadmin. I need to know what I need to copy over to a new server so that it will be able to authenticate all user accounts and have thier email exactly the same as it was. Vpopmail is also using a mysql database. So far I have been able to copy the correct directories from qmail over. I also replicated the database exactly. At this point vqadmin reports my domain and shows all my users. The only thing that I am missing - none of the users are able to authenticate!!! Very frustrating. Here are the details: from qmail copied /var/qmail/alias and control and users. I also copied /home/vpopmail/domains over to the new server. As I mention before I copied the mysql database over exactly. Just can't authenticate users!! any suggestions? -Blake-
Re: [vchkpw] Transfering from Old to New Server
Hi Blacke. You should make to script to change the passwords. I things that the problem is in the mysql crypt, I am not sure, but a script solved my problem when I migrated my server. It should read the pw_clear_passwd and pw_name of table domains and run this command: vpasswd $user $password - Original Message - From: Blake [EMAIL PROTECTED] To: vchkpw@inter7.com Sent: Friday, March 11, 2005 10:55 AM Subject: [vchkpw] Transfering from Old to New Server Hello everyone, I am running qmail with vpopmail. I Also use vqadmin. I need to know what I need to copy over to a new server so that it will be able to authenticate all user accounts and have thier email exactly the same as it was. Vpopmail is also using a mysql database. So far I have been able to copy the correct directories from qmail over. I also replicated the database exactly. At this point vqadmin reports my domain and shows all my users. The only thing that I am missing - none of the users are able to authenticate!!! Very frustrating. Here are the details: from qmail copied /var/qmail/alias and control and users. I also copied /home/vpopmail/domains over to the new server. As I mention before I copied the mysql database over exactly. Just can't authenticate users!! any suggestions? -Blake-
Re: [vchkpw] Transfering from Old to New Server
On Mar 11, 2005, at 7:55 AM, Blake wrote: The only thing that I am missing - none of the users are able to authenticate!!! Very frustrating. Here are the details: from qmail copied /var/qmail/alias and control and users. I also copied /home/vpopmail/domains over to the new server. As I mention before I copied the mysql database over exactly. Just can't authenticate users!! Does vuserinfo show information on each user? Does `vpopbull -n -V` show a list of users? Did you configure the qmail-pop3d/run script on the new server to use vchkpw? -- 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] Transfering from Old to New Server
Tom Collins wrote: On Mar 11, 2005, at 7:55 AM, Blake wrote: The only thing that I am missing - none of the users are able to authenticate!!! Very frustrating. Here are the details: from qmail copied /var/qmail/alias and control and users. I also copied /home/vpopmail/domains over to the new server. As I mention before I copied the mysql database over exactly. Just can't authenticate users!! Does vuserinfo show information on each user? Does `vpopbull -n -V` show a list of users? Did you configure the qmail-pop3d/run script on the new server to use vchkpw? -- 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 Tom, vpopbull -n -V does indeed show my user list. qmail-pop3d/run is set to use vchkpw... Here is the contents of that file #!/bin/sh PATH=/var/qmail/bin:/usr/local/bin:/usr/bin:/bin export PATH exec tcpserver -H -R -v -c100 0 110 qmail-popup mail.cccwireless.net \ /home/vpopmail/bin/vchkpw qmail-pop3d Maildir 21 my users are listed there and in vqadmin. Everything except authentication looks right... I must be missing the password tokens or somthing.. Any suggestsions would be great. Thanks -Blake-
Re: [vchkpw] Transfering from Old to New Server
Blake wrote: Tom Collins wrote: On Mar 11, 2005, at 7:55 AM, Blake wrote: The only thing that I am missing - none of the users are able to authenticate!!! Very frustrating. Here are the details: from qmail copied /var/qmail/alias and control and users. I also copied /home/vpopmail/domains over to the new server. As I mention before I copied the mysql database over exactly. Just can't authenticate users!! Does vuserinfo show information on each user? Does `vpopbull -n -V` show a list of users? Did you configure the qmail-pop3d/run script on the new server to use vchkpw? -- 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 Tom, vpopbull -n -V does indeed show my user list. qmail-pop3d/run is set to use vchkpw... Here is the contents of that file #!/bin/sh PATH=/var/qmail/bin:/usr/local/bin:/usr/bin:/bin export PATH exec tcpserver -H -R -v -c100 0 110 qmail-popup mail.cccwireless.net \ /home/vpopmail/bin/vchkpw qmail-pop3d Maildir 21 my users are listed there and in vqadmin. Everything except authentication looks right... I must be missing the password tokens or somthing.. Any suggestsions would be great. Thanks -Blake- I also got this error from qmailadmin: file permission error /home/vpopmail/domains/cccwireless.net/postmaster/Maildir/1110573912.qw does that make more since? thanks -Blake-
Re: [vchkpw] Transfering from Old to New Server
On Mar 11, 2005, at 12:57 PM, Blake wrote: I also got this error from qmailadmin: file permission error /home/vpopmail/domains/cccwireless.net/postmaster/Maildir/ 1110573912.qw does that make more since? No, but it makes more sense. qmailadmin needs to be owned by vpopmail:vchkpw and have the suid bit set in its permissions. I needs to be on a partition that isn't mounted with the nosuid option. ~vpopmail/domains should be owned, in its entirety by vpopmail:vchkpw. If qmailadmin doesn't run as vpopmail, then it can't authenticate users on a cdb backend, and it won't allow anyone to log in with a MySQL backend. -- 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] Transfering from Old to New Server
Tom Collins wrote: On Mar 11, 2005, at 12:57 PM, Blake wrote: I also got this error from qmailadmin: file permission error /home/vpopmail/domains/cccwireless.net/postmaster/Maildir/ 1110573912.qw does that make more since? No, but it makes more sense. qmailadmin needs to be owned by vpopmail:vchkpw and have the suid bit set in its permissions. I needs to be on a partition that isn't mounted with the nosuid option. ~vpopmail/domains should be owned, in its entirety by vpopmail:vchkpw. If qmailadmin doesn't run as vpopmail, then it can't authenticate users on a cdb backend, and it won't allow anyone to log in with a MySQL backend. -- 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 Guess what!! That fixed it. I have successfully moved my entire mail database over to another computer and it functions exactly the same as the old server!! This would be a great howto: if you are using qmail and vpopmail with mysql: copy or rsync (Better Idea) the following directories: /var/qmail/alias /var/qmail/control /var/qmail/users /home/vpopmail/domains replicate the mysql database (perhaps constantly) this will keep an identical server running side by side thanks everyone!! -Blake-