[vchkpw] cvs devel version problems
I downloaded the current cvs (devel version) and I get a seg fault when adding a new domain. Looks like it dies in a new function extract_domain(). Does anyone know the status of the devel version? I'd like to get it cleaned up and working again. Ken Jones
Re: [vchkpw] Can't do setuid
On Wednesday 09 March 2005 09:56 pm, Ronald Wiplinger wrote: (Sorry, I could not figure it out by myself) It is my first time I try to install qmail and vpopmail on one system. I cannot send an email to this domain. How can I fix it? I used Franks setup script, ... this is the first time you've tried to install qmail, and you're using some prefab installer script and having problems. Since you have zero clue what you have installed on your system, I would highly recommend removing what you have installed and simply following www.lifewithqmail.org once you have that setup up and running you can start piecing things on until you have the server set up exactly how you want it. -Jeremy -- Jeremy Kitchen ++ Systems Administrator ++ Inter7 Internet Technologies, Inc. [EMAIL PROTECTED] ++ inter7.com ++ 866.528.3530 ++ 815.776.9465 int'l kitchen @ #qmail #gentoo on EFnet IRC ++ scriptkitchen.com/qmail GnuPG Key ID: 481BF7E2 ++ jabber:[EMAIL PROTECTED] pgpBH6nXtywl8.pgp Description: PGP signature
Re: [vchkpw] listing over-quota users
Charles J. Boening wrote: How about this? snip filename='/home/vpopmail/bin/overquota.sh' #!/bin/sh for i in `/home/vpopmail/bin/vpopbull -n -V`; do echo `/home/vpopmail/bin/vuserinfo -Q $i` $i done /snip Called like this /home/vpopmail/bin/overquota.sh | grep 100% | mail -s Overquota users your-email-addy Hey, that's nice. I added a |sort -n -r to get the list sorted by top-offendes How would I grep out every single-digit percentage ? cheers, Rainer -- === ~ Rainer Duffner - [EMAIL PROTECTED] ~ ~ Freising - Munich - Germany ~ ~Unix - Linux - BSD - OpenSource - Security ~ ~ http://www.ultra-secure.de/~rainer/pubkey.pgp ~ ===
[vchkpw] Error Compiling on HP-UX
Hi list. I'm having problems when compile vpopmail-5.4.9 on HP-UX My configure options are: $ ./configure --enable-roaming-users --enable-relay-clear-minutes=40 --enable-learn-passwords --enable-ip-alias-domains --enable-incdir=/usr/lo cal/mysql/include/mysql --enable-libdir=/usr/local/mysql/lib/mysql --enable-auth-module=mysql --enable-valias --disable-many-domains --disable-sql-logging --enable-mysql-limits --enable-mysql-replication The error message is: # gmake gmake all-recursive gmake[1]: Entering directory `/data1/src/qmail/vpopmail-5.4.9' Making all in cdb gmake[2]: Entering directory `/data1/src/qmail/vpopmail-5.4.9/cdb' gmake[2]: Nothing to be done for `all'. gmake[2]: Leaving directory `/data1/src/qmail/vpopmail-5.4.9/cdb' gmake[2]: Entering directory `/data1/src/qmail/vpopmail-5.4.9' gcc -g -O2 -Wall -o vdelivermail vdelivermail.o maildirquota.o libvpopmail.a -L/usr/local/mysql/lib/mysql -lmysqlclient -lz -lm -lcrypt /usr/ccs/bin/ld: Duplicate symbol valias_select_all_next in files libvpopmail.a(vauth.o) and libvpopmail.a(vpalias.o) /usr/ccs/bin/ld: Duplicate symbol valias_select_next in files libvpopmail.a(vauth.o) and libvpopmail.a(vpalias.o) /usr/ccs/bin/ld: Duplicate symbol valias_remove in files libvpopmail.a(vauth.o) and libvpopmail.a(vpalias.o) /usr/ccs/bin/ld: Duplicate symbol valias_insert in files libvpopmail.a(vauth.o) and libvpopmail.a(vpalias.o) /usr/ccs/bin/ld: Duplicate symbol valias_select in files libvpopmail.a(vauth.o) and libvpopmail.a(vpalias.o) /usr/ccs/bin/ld: Duplicate symbol valias_delete in files libvpopmail.a(vauth.o) and libvpopmail.a(vpalias.o) /usr/ccs/bin/ld: Duplicate symbol valias_select_all in files libvpopmail.a(vauth.o) and libvpopmail.a(vpalias.o) /usr/ccs/bin/ld: Found 7 duplicate symbol(s) collect2: ld returned 1 exit status gmake[2]: *** [vdelivermail] Error 1 gmake[2]: Leaving directory `/data1/src/qmail/vpopmail-5.4.9' gmake[1]: *** [all-recursive] Error 1 gmake[1]: Leaving directory `/data1/src/qmail/vpopmail-5.4.9' gmake: *** [all] Error 2 It show me when I tried compile using --enable-valias. When I compiled using --disable-valias it work. Why exist duplicate symbols? Thanks for your response.
Re: [vchkpw] cvs devel version problems
Ken Jones wrote: I downloaded the current cvs (devel version) and I get a seg fault when adding a new domain. Looks like it dies in a new function extract_domain(). Does anyone know the status of the devel version? I'd like to get it cleaned up and working again. That sounds like my function. I'll try to get a look at it tonight. Do you have the ./configure options you used handy? It may make a difference... Rick
Re: [vchkpw] cvs devel version problems
On Thursday 10 March 2005 3:45 pm, Rick Widmer wrote: Ken Jones wrote: I downloaded the current cvs (devel version) and I get a seg fault when adding a new domain. Looks like it dies in a new function extract_domain(). Does anyone know the status of the devel version? I'd like to get it cleaned up and working again. That sounds like my function. I'll try to get a look at it tonight. Do you have the ./configure options you used handy? It may make a difference... Hey Rick, That would be great if you could check it out. I'm wondering what the reason was behind redoing that code. Seems to work fine in the past. The configure options I used was just: ./configure then make ; make install-strip ; vadddomain test.com test Ken
RE: [vchkpw] listing over-quota users
How about the following the following command here | grep -v ^[0-9]% Should work. Charlie -Original Message- From: Rainer Duffner [mailto:[EMAIL PROTECTED] Sent: Thursday, March 10, 2005 11:56 AM To: vchkpw@inter7.com Subject: Re: [vchkpw] listing over-quota users Charles J. Boening wrote: How about this? snip filename='/home/vpopmail/bin/overquota.sh' #!/bin/sh for i in `/home/vpopmail/bin/vpopbull -n -V`; do echo `/home/vpopmail/bin/vuserinfo -Q $i` $i done /snip Called like this /home/vpopmail/bin/overquota.sh | grep 100% | mail -s Overquota users your-email-addy Hey, that's nice. I added a |sort -n -r to get the list sorted by top-offendes How would I grep out every single-digit percentage ? cheers, Rainer -- === ~ Rainer Duffner - [EMAIL PROTECTED] ~ ~ Freising - Munich - Germany ~ ~Unix - Linux - BSD - OpenSource - Security ~ ~ http://www.ultra-secure.de/~rainer/pubkey.pgp ~ ===
Re: [vchkpw] listing over-quota users
On Wed, 9 Mar 2005 [EMAIL PROTECTED] wrote: this method is of course fast and dirty, but it might not work for everyone out there. the best aproach is to write a perl script that runs queries on a database, gets path to a user's mailbox on the server, uses File::Find to include only files in Maildir/cur and Maildir/new as well as :subfolders:/cur and :subfolders:/new with the exception of trash folders. that should give a much clearer picture. in addition it can scale better. I have something similar, but it's not very generic, so I don't know if anyone would be interested. I've added a few fields to the vpopmail table to record when they first hit quota so I can get a report (quick php page) of who's over and for how long. To get usage, I'm just hitting the user's homedir with du, can you comment a bit on why I would need to count only the mail? There shouldn't really be anything of note in the user's directory besides the mail... It is quite interesting to see how much the real usage (provided by du) can differ from the maildirsize info. Charles -- Igor On Wed, Mar 09, 2005 at 08:08:10AM -0800, Charles J. Boening wrote: - Here's what I do. I don't have too many domains or users do it doesn't - take too long. - - du -sk /home/vpopmail/domains/*/*/Maildir /tmp/maildirusage du -sk - /home/vpopmail/domains/*/*/*/Maildir /tmp/maildirusage cat - /tmp/maildirusage | sort -n | tail -n50 | sort -n -r | mail -s Mail - User Quota your-email-here - - - This only gets the top 50 users. You can change it easily. I don't - think it would be very efficient for multiple domains. In that case you - may want to break it up into a run for each domain. - - I'd definitely like to see something more efficient :) - - - Charlie - - - - - - From: Tanmaya Anand [mailto:[EMAIL PROTECTED] - Sent: Tuesday, March 08, 2005 11:44 PM - To: vchkpw@inter7.com - Subject: [vchkpw] listing over-quota users - - - - Hi - - I need to list all over-quota users on the system for all - domains. - Can anyone help me with some similiar perl / shell script to get - this done. - - Regards, - Tanmaya - - - -http://clients.rediff.com/signature/track_sig.asp - -
Re: [vchkpw] listing over-quota users
Charles J. Boening wrote: How about the following the following command here | grep -v ^[0-9]% Should work. Yup. I always get confused where I have to set the quotes... Thanks. Rainer -- === ~ Rainer Duffner - [EMAIL PROTECTED] ~ ~ Freising - Munich - Germany ~ ~Unix - Linux - BSD - OpenSource - Security ~ ~ http://www.ultra-secure.de/~rainer/pubkey.pgp ~ ===
[vchkpw] Moving old Email after Upgrading
Ok. I posted once and haven't gotten a reply. Does anyone know to move the old email and folders after an upgrade is performed. The old structure was /home/vpopmail/users/user/Maildir but with adding domains, the structure is /home/vpopmail/domains/users/user/Maildr. I figured tarring up the old Maildir and untarring it to the new Maildir would do it. It didn't, so luckily I had a backup before I tried it. What happened was that the only directory that showed up was the Inbox. It would not let me access or create a Sent or Drafts or anything, since it thought it did exist. It did exist, but was not accessible. it wasn't a permissions problem either. So, can I get some help as some users have a large number of folders they created with old saved mails. Thanks.
Re: [vchkpw] Moving old Email after Upgrading
The old structure was /home/vpopmail/users/user/Maildir but with adding domains, the structure is /home/vpopmail/domains/users/user/Maildr. You could make a symlink into the old directory structure from the new... It's not an ideal way, but it will buy you some time until you want to rearrange things... I figured tarring up the old Maildir and untarring it to the new Maildir would do it. It didn't, so luckily I had a backup before I tried it. What happened was that the only directory that showed up was the Inbox. It would not let me access or create a Sent or Drafts or anything, since it thought it did exist. It did exist, but was not accessible. it wasn't a permissions problem either. Try looking at the permissions one level up. I've had that problem before. The actual Maildir structure hasn't changed for a looong time, so the only thing you should have to worry about is which domain a given Maildir is under. So, can I get some help as some users have a large number of folders they created with old saved mails. How many users? If you only have a few, you can just move them around by hand. What I have done in the past is to create the user with vadduser, then move that user's Maildir out of my backup and overwrite the Maildir created by vadduser. I always used the same users and groups so permissions usually aren't a problem when doing this. Basic commands are something like this: cd somedomain.com/ tar xf somedomain.com.tar path_to_bin/vadduser [EMAIL PROTECTED] mv -f somedomain.com/somebody/* ./ The backup untarrs to somedomain.com/somedomain.com with the old users all under that dir. Once the users have all been moved, you just delete the somedomain.com backup directory. This is easy to do with a few users, and I've never had enough problems to bother writing a script to do it for me. You shouldn't be having problems with the structure of the Maildirs themselves. -Bill * Waveform Technology UNIX Systems Administrator
Re: [vchkpw] Error Compiling on HP-UX
On Mar 10, 2005, at 3:32 PM, Juan Enciso Condeña wrote: gcc -g -O2 -Wall -o vdelivermail vdelivermail.o maildirquota.o libvpopmail.a -L/usr/local/mysql/lib/mysql -lmysqlclient -lz -lm -lcrypt /usr/ccs/bin/ld: Duplicate symbol valias_select_all_next in files libvpopmail.a(vauth.o) and libvpopmail.a(vpalias.o) What does your config.h file look like? The setting of VALIAS in particular. If it's set to 1 (which it should if you --enable-valias) then the contents of vpalias.c shouldn't get compiled (it's wrapped in #ifndef VALIAS). -- 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] Moving old Email after Upgrading
On Thu, 2005-03-10 at 19:56 -0700, [EMAIL PROTECTED] wrote: Ok. I posted once and haven't gotten a reply. Does anyone know to move the old email and folders after an upgrade is performed. The old structure was /home/vpopmail/users/user/Maildir but with adding domains, the structure is /home/vpopmail/domains/users/user/Maildr. I figured tarring up the old Maildir and untarring it to the new Maildir would do it. It didn't, so luckily I had a backup before I tried it. What happened was that the only directory that showed up was the Inbox. It would not let me access or create a Sent or Drafts or anything, since it thought it did exist. It did exist, but was not accessible. it wasn't a permissions problem either. So, can I get some help as some users have a large number of folders they created with old saved mails. Thanks. how about rsync? rsync -avz \ /home/vopopmail/users/user/Maildir \ /home/vpopmail/domain/users/user/ -- ._. | \0/John Stile | | UniX Administration | | / \ 510-305-3800 | | [EMAIL PROTECTED] | .-. signature.asc Description: This is a digitally signed message part