Re: [vchkpw] Qmail, vpopmail etc. migration: from Fedora Core 1 to CentOs
Short answer, NO, libs are different... Joe Michele Virgilio [EMAIL PROTECTED] wrote: I need to migrate my old qmail installation on a Fedora Core 1 machine on a new CentOs machine. It is possible to copy all data without reinstall (and configure)? How can I do? Thanks. Mik
Re: [vchkpw] Qmail, vpopmail etc. migration: from Fedora Core 1 to CentOs
Sorry, hit wrong button... No for the software side, depending on how you have your mail setup, courier or pop3 depends on the mail itself. If it's pop3 you can move it just fine, as long as you setup vpopmail the same as before. If your using courier, you can use a program like imapsync (sourceforge) and sync the mail from old server to new server fairly easly. I'm sure with more info, and more planning on your part you can get this done. Try to determine how your old server was setup, eg. vpopmail, using mysql or cdb for the domains for 1, roaming encryption etc... Joe Joseph Oaks [EMAIL PROTECTED] wrote: Short answer, NO, libs are different... Joe Michele Virgilio [EMAIL PROTECTED] wrote: I need to migrate my old qmail installation on a Fedora Core 1 machine on a new CentOs machine. It is possible to copy all data without reinstall (and configure)? How can I do? Thanks. Mik
[vchkpw] upgrade?
Hello all, I'm currently running on vpopmail 5.4.13 and want to upgrade to 5.4.17, however when I tried it (thank goodness for backups) it complained that the table did not exist. When the upgrade finished, I tried to do vuserinfo email and the error came back as vmysql: sql error[3]: Table 'vpopmail.trells_com' doesn't exist The vpopmail.mysql file still works it connects but it seems it doesn't update the db. I'm not afraid of blowing this thing away completely and starting it fresh, but would like to find out if I can export the data, build a fresh install, and then import it into the new vpopmail? TIA Joe
Re: [vchkpw] vchangepw?
Stoyan, thanks for the info, however that didn't work either. Maybe if I give a bit more info, all I'm doing is a simple php page username current_password new_password confirm_new_password I then run a check to make sure the username is there in both the vpopmail and egroupware, then I check the current password, since vpopmail had it in clear text also, if it checks out I then need to update the db to the new passwords, this works well only problem is then I get errors that the authdaemond: supplied password 'somepassword' does not match encrypted password '$1$UPRJCLMh$ORbRQDIoGJ/g18WgT4/4O.' I even tried it as crypt() all i'm doing on the sql side is this $pw_crypt = crypt($new) $sql_vpop = $dbv-query(UPDATE `vpopmail` SET `pw_clear_passwd` = '$new', `pw_passwd` = ('$pw_crypt') WHERE `pw_name` = '$username';); This updates just fine but the auth then fails with the above error... Hopefully this will give a little more info on how I can get this to work. Thanks, Joe Stoyan Marinov [EMAIL PROTECTED] wrote: Try using crypt() in php. Stoyan On Fri, 2007-04-20 at 11:25 -0700, Joseph Oaks wrote: Hello all, I'm trying to write a small app for the people in the office to be able to change their passwords without buggin me. I have a simple little PHP already done. It will change the password for both the eGroupWare and vpopmail, however the vpopmail doesn't seem to like the md5 encryption... My first thought on this was just modify the db directly, with an update, this works however it breaks the auth for mail, the egroupware side works fine. So I got to checking and found the vchangepw in the vpopmail/bin dir. My question is how can I call this via a script and pass the email address, current password, and new password to it via variables? Joe
[vchkpw] vchangepw?
Hello all, I'm trying to write a small app for the people in the office to be able to change their passwords without buggin me. I have a simple little PHP already done. It will change the password for both the eGroupWare and vpopmail, however the vpopmail doesn't seem to like the md5 encryption... My first thought on this was just modify the db directly, with an update, this works however it breaks the auth for mail, the egroupware side works fine. So I got to checking and found the vchangepw in the vpopmail/bin dir. My question is how can I call this via a script and pass the email address, current password, and new password to it via variables? Joe
[vchkpw] Re: vchangepw?
Second though, is vpopmail using MD5 or DES, or some other encryption? Joe Joseph Oaks [EMAIL PROTECTED] wrote: Hello all, I'm trying to write a small app for the people in the office to be able to change their passwords without buggin me. I have a simple little PHP already done. It will change the password for both the eGroupWare and vpopmail, however the vpopmail doesn't seem to like the md5 encryption... My first thought on this was just modify the db directly, with an update, this works however it breaks the auth for mail, the egroupware side works fine. So I got to checking and found the vchangepw in the vpopmail/bin dir. My question is how can I call this via a script and pass the email address, current password, and new password to it via variables? Joe
Re: [vchkpw] Dead aliases and EZMLM lists
Max Esquivel [EMAIL PROTECTED] wrote: I recently installed the magicmail-smtpd drop in replacement for the standard qmail-smtpd, which adds a significant number of spam control possibilities. Actually, spam traffic on my server, dropped to about half after the installation. Nonetheless, after installing, qmailadmin created aliases dont work (I can create, modify and delete, but) messages sent to an alias result in a User does not exist error and the message is bounced back. The same problem exists with ezmlm lists. I can create, modify, etc via qmailadmin, but messages sent to the lists get bounced back with the same User does not exist error. Any ideas? Thanks!! Max Esquivel Max, I had the same issue, all I did was create a wrapper script, here it is, it could be made better by someone with more skills than I (which dont' take much) # $Header: /web/programmers/cvs/magicmail-backend/scripts/vpopmail-check-user.sh,v 1.2 2005/02/25 20:20:09 xu Exp $ #!/bin/sh #EMAIL=$1 #ALIAS=`/opt/vpopmail-5.4.13/bin/valias $EMAIL | wc -l | grep 1 /dev/null 21 ; echo $?` #USER=`/opt/vpopmail-5.4.13/bin/vuserinfo $EMAIL /dev/null 21; echo $? | grep 0 /dev/null 21 ; echo $?` # #if [ $ALIAS -eq 0 ] || [ $USER -eq 0 ]; then #exit 0 #else #exit 1 EMAIL=$1 ## # Begin modification for TMDA # Modified by Joseph Oaks # Modifed on 7 June 2006 ## DOMAIN=`echo $1 | cut -d@ -f2` TMDA_ADDRESS=`echo $1 | awk -F- -v DOMAIN=$DOMAIN '{print $1@DOMAIN}'` TMDA=`/opt/vpopmail-5.4.13/bin/vuserinfo $TMDA_ADDRESS /dev/null 21; echo $? | grep 0 /dev/null 21 ; echo $?` ## # End TMDA modifications ## ALIAS=`/opt/vpopmail-5.4.13/bin/valias $EMAIL | wc -l | grep 1 /dev/null 21 ; echo $?` USER=`/opt/vpopmail-5.4.13/bin/vuserinfo $EMAIL /dev/null 21; echo $? | grep 0 /dev/null 21 ; echo $?` ## # Continue TMDA modification ## if [ $TMDA -eq 0 ] || [ $ALIAS -eq 0 ] || [ $USER -eq 0 ]; then ## # Original text ## # if [ $ALIAS -eq 0 ] || [ $USER -eq 0 ]; then ## ## ## # End TMDA modifications ## exit 0 else exit 1 fi You can see my modifications to the vpopmail-check-user.sh Of course you will have to modify your paths as I'm sure there not the same as mine, but it helps... Joe
Re: [vchkpw] Dead aliases and EZMLM lists
Joseph Oaks [EMAIL PROTECTED] wrote: Max Esquivel [EMAIL PROTECTED] wrote: I recently installed the magicmail-smtpd drop in replacement for the standard qmail-smtpd, which adds a significant number of spam control possibilities. Actually, spam traffic on my server, dropped to about half after the installation. Nonetheless, after installing, qmailadmin created aliases dont work (I can create, modify and delete, but) messages sent to an alias result in a User does not exist error and the message is bounced back. The same problem exists with ezmlm lists. I can create, modify, etc via qmailadmin, but messages sent to the lists get bounced back with the same User does not exist error. Any ideas? Thanks!! Max Esquivel Guess I should mention that i had problems with the TMDA also so thats why its there, same principle though... Max, I had the same issue, all I did was create a wrapper script, here it is, it could be made better by someone with more skills than I (which dont' take much) # $Header: /web/programmers/cvs/magicmail-backend/scripts/vpopmail-check-user.sh,v 1.2 2005/02/25 20:20:09 xu Exp $ #!/bin/sh #EMAIL=$1 #ALIAS=`/opt/vpopmail-5.4.13/bin/valias $EMAIL | wc -l | grep 1 /dev/null 21 ; echo $?` #USER=`/opt/vpopmail-5.4.13/bin/vuserinfo $EMAIL /dev/null 21; echo $? | grep 0 /dev/null 21 ; echo $?` # #if [ $ALIAS -eq 0 ] || [ $USER -eq 0 ]; then #exit 0 #else #exit 1 EMAIL=$1 ## # Begin modification for TMDA # Modified by Joseph Oaks # Modifed on 7 June 2006 ## DOMAIN=`echo $1 | cut -d@ -f2` TMDA_ADDRESS=`echo $1 | awk -F- -v DOMAIN=$DOMAIN '{print $1@DOMAIN}'` TMDA=`/opt/vpopmail-5.4.13/bin/vuserinfo $TMDA_ADDRESS /dev/null 21; echo $? | grep 0 /dev/null 21 ; echo $?` ## # End TMDA modifications ## ALIAS=`/opt/vpopmail-5.4.13/bin/valias $EMAIL | wc -l | grep 1 /dev/null 21 ; echo $?` USER=`/opt/vpopmail-5.4.13/bin/vuserinfo $EMAIL /dev/null 21; echo $? | grep 0 /dev/null 21 ; echo $?` ## # Continue TMDA modification ## if [ $TMDA -eq 0 ] || [ $ALIAS -eq 0 ] || [ $USER -eq 0 ]; then ## # Original text ## # if [ $ALIAS -eq 0 ] || [ $USER -eq 0 ]; then ## ## ## # End TMDA modifications ## exit 0 else exit 1 fi You can see my modifications to the vpopmail-check-user.sh Of course you will have to modify your paths as I'm sure there not the same as mine, but it helps... Joe