[vchkpw] vpopmail problem
Dear all, I have a qmail mailserver with vpopmail. I am creating users using vadduser command. I had created some 8 domain name with some 150 users in total domainnames. The main domainname is like test.com . Domain names are like this test.com - 80 users admin.test.com - 10 users afd.test.com - 5 users amd.test.com - 7 users staff.test.com- 8 users rd.test.com- 9 users cse.test.com-10 users elect.test.com-5users The problem now is when i create a user in test.com say guest, the user maildir is created like this in /home/vpopmail/domains/test.com/0/guest/Maildir.Already i have created users in same test.com which were in /home/vpopmail/domains/test.com/username folder. This problem started now only. From where is this test.com/0/ coming Actually the user guest should be created in /home/vpopmail/domains/test.com/guest. why is directory named 0 is created. This type of user creation is only for test.com domain. In other domain when i add user the user Maildir is created in /home/vpopmail/domains/'domainname'/ username. Can anyone suggest me solution why user directoy are created in /home/vpopmail/domains/domainname/0/ - folder. Thanks for any help Regards Manikkalal _ Manage information better. Optimise your tasks. http://www.microsoft.com/india/office/experience/ Experience MS Office System.
[vchkpw] Re: howto change quota for many users?
Thanks, that helped me a lot.. :-)) Jeremy Kitchen writes: On Thursday 23 December 2004 09:37 am, Tom Collins wrote: On Dec 23, 2004, at 12:49 AM, Peter Nilsson wrote: I have vpopmail installed and about 2000 domains hostet, the system is filbased (no mysql used) and is working perfekt :-) Now i want to give ekstra space to all users so they have 100 MB quota instead of 50 MB. I have .qmailadmin-limit file in every dir with the old quota settings. Is there any way i can change quota on all accounts in one command or script? Write a script to go through the output of `vdominfo -n`, which should give you a list of domains. Then call vmoddomlimits for each domain and set the new quota. If you're not good at shell scripting, perhaps someone else on the list can contribute a script that accomplishes your goals. for i in `~vpopmail/bin/vdominfo -n` ; do ~vpopmail/bin/vmoddomlimits -whatever $i ; done -Jeremy -- Jeremy Kitchen ++ Systems Administrator ++ Inter7 Internet Technologies, Inc. [EMAIL PROTECTED] ++ www.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]
Re: [vchkpw] vpopmail problem
Can anyone suggest me solution why user directoy are created in /home/vpopmail/domains/domainname/0/ - folder. This is explained well in the README file that comes with vpopmail. Look for user directory structure. Imagine test.com when it gets up to 500 or 5000 or 5 users. To have all of the users in one directory is not efficient on all filesystems so vpopmail automatically uses hashing to break user directories out into subdirectories after the first 100 users. If I had a script to create vadduser user1 up to user25000, I might find the user hashing to look like... /home/vpopmail/domains/DOMAIN/__/Maildir user1 user2 ... user99 user100 0/user101 0/user102 ... 0/user199 0/user200 1/user201 1/user202 ... 9/user999 9/user1000 A/user1001 ... Z/user3600 a/user3601 ... z/user6200 0/0/user6201 ... 0/z/user12400 1/0/user12401 ... 1/z/user24800 2/0/user24801 ... 2/1/user25000 Instead of assuming that a user's Maildir is in the directory cd /home/vpopmail/domains/$DOMAIN/$USER/Maildir, Vpopmail administrators typically use cd `vuserinfo -d [EMAIL PROTECTED], or even safer, cd `vuserdir [EMAIL PROTECTED]. #!/bin/sh # WARNING: untested code - use at your own risk # # vuserdir - print out the vpopmail directory for a user #or . if it does not exist. # # Syntax: vuserdir address # address=$1 if [ $address = '' ] then echo vuserdir: No address specified 12 echo . exit 1 fi dir=`vuserinfo -d $address` if [ $? = 0 -a -d $dir ] then echo $dir else echo vuserdir: Directory for $address not found: $dir 12 echo . exit 1 fi The hashing is controled by the OPEN_BIG_DIR define in vpopmail's config.h. If you never intend to use large user directories (*), then commenting this out the define before installing might avoid this behavior, or you can compile MAX_USERS_PER_LEVEL (in vauth.h) to be a really high number. Best practice, though, would have you use directory hashing just like everyone else. Imagine that someday someone else withh have to take over your qmail/vpopmail installation and worry about your local customizations. It becomes difficult for them to upgrade to the next version of vpopmail if they have to patch the code each time. The directory hashing is also used on domains. So if you add more than 100 domains, you'll see /home/vpopmail/domains/0. -- Eric Ziegast [EMAIL PROTECTED] (*) Back in the 80's someone said, No one will ever need more than 640 kilobytes of memory.
Re: [vchkpw] vpopmail problem
focuz info wrote: ... a lot. What problem are you trying to solve actually? -- 'Can death be sleep, when life is but a dream' --John Keats /* waiting... dreaming... wishing... */ signature.asc Description: OpenPGP digital signature
[vchkpw] Mail gateway to reject mail to invalid users
Title: Mail gateway to reject mail to invalid users I'm having a problem and was wondering if any of you had ideas on what I could do. I have one primary mail server and one spam filtering server. My mail server runs vpopmail/mysql/chkuser. It all works very well. Right now the filtering server is accepting all mail for domains that reside on the mail server...then the mail server is rejecting the message if it is bound for an invalid account. This is causing a huge backlog of messages that can't be bounced and just sit in the queue on the filtering server until they time out. What I need to do is to find a way to set up a mail gateway that will reject messages (chkuser style) and put it in front of my spam filtering server. Since my filter is proprietary, it doesn't tie into vpopmail/mysql. The problem that I'm having right now is that chkuser accesses the domain directory directly to check for catchall accounts. Is there a way that I can set up a simple gateway that will make sure that account is valid _only using mysql calls_ before accepting the messagethen forward it on to the filtering server? I do set a pw_catchall filed in the database when a catchall is set. I just haven't seen anything that will make a decision based on the contents of that field. Thanks in advance for any ideas, -jw- attachment: winmail.dat