[vchkpw] Permision error
Hi I'm getting this error when when I put my domains in /var/qmail/control/locals Unable_to_chdir_to_maildir._(#4.2.1) Otherwise it works just fine. I checked the perms and they're all ok. The domains dirs and subdirs are owned by vpopmail vhckpw drwx-- 22 vpopmail vchkpw 752 2005-05-03 17:16 domain.com The qmail users assign are also ok vpopmail and vchkpw +domain.com-:domain.com:1000:102:/home/vpopmail/domains/domain.com:-:: . . /etc/passwd vpopmail:x:1000:102:Vpopmail-Master:/home/vpopmail:/bin/false /etc/group vchkpw:x:102: Any ideas? signature.asc Description: OpenPGP digital signature
Re: [vchkpw] Permision error
On Tue, 24 May 2005 11:03:28 +0300 Andrei Talmaciu [EMAIL PROTECTED] wrote: I'm getting this error when when I put my domains in /var/qmail/control/locals Domains created and administered using vpopmail are supposed to be virtual. Why do you need to list them in locals file ? Unable_to_chdir_to_maildir._(#4.2.1) -- Adrian Pircalabu Public KeyID = 0x04329F5E -- This message was scanned for spam and viruses by BitDefender. For more information please visit http://www.bitdefender.com/
[vchkpw] simscan/vpopmail etc
Hello, I am currently running a fairly busy email server with around 30 domains and several hundred high usage users sending and receiving email. I have currently setup the system so that It is running without any virus scanning. Its setup something like this rblsmtpd -- qmail -- .qmail file (which then pipes to spamc) then vpopmail delivers the email. The whole system works fairly well however I would like to start using virus scanning. I have been recommended simscan by people on the qmail list. There are some questions that I have im hoping that people can answer. Does simscan integrate perfectly with vpopmail. I cant see any reason why it wouldnt but i would still like clarification on that. Thanks Jimmy.
Re: [vchkpw] Permision error
Adi Pircalabu wrote: On Tue, 24 May 2005 11:03:28 +0300 Andrei Talmaciu [EMAIL PROTECTED] wrote: I'm getting this error when when I put my domains in /var/qmail/control/locals Domains created and administered using vpopmail are supposed to be virtual. Why do you need to list them in locals file ? Unable_to_chdir_to_maildir._(#4.2.1) You're right I don't need the local file.. I read some docs on qmail without virtual domains, as I now found out, and thought that it only uses the locals file to deliver mail.. I posted the message, because I couldn't understand how qmail delivers the messages if the domains aren't listed in the locals file.. In the meantime I re-read the vpopmail admin guide and figured out how qmail works with local and virtual domains.. Thanks signature.asc Description: OpenPGP digital signature
Re: [vchkpw] simscan/vpopmail etc
Jimmy Stewpot wrote: Hello, I am currently running a fairly busy email server with around 30 domains and several hundred high usage users sending and receiving email. I have currently setup the system so that It is running without any virus scanning. Its setup something like this rblsmtpd -- qmail -- .qmail file (which then pipes to spamc) then vpopmail delivers the email. The whole system works fairly well however I would like to start using virus scanning. I have been recommended simscan by people on the qmail list. There are some questions that I have im hoping that people can answer. Does simscan integrate perfectly with vpopmail. I cant see any reason why it wouldnt but i would still like clarification on that. Thanks Jimmy. Actually simscan has nothing to do with vpopmail, because simscan operates at the smtp level. If it detects a virus or spam with a higher score than that set by you it will reject the message. I'm currently using simscan with clamav and spamassassin and have no problems. signature.asc Description: OpenPGP digital signature
[vchkpw] Disable Over quota bounce
Is there a way to disable the over quota bounce for messages which are not delivered? I would like the quota to be enforced, but if the account is over quota the message to be silently dropped instead of bounced. Thanks. -- Rod Taylor [EMAIL PROTECTED]
RE: [vchkpw] LastAuth Remote IP
-Message d'origine- De : Michael Bowe [mailto:[EMAIL PROTECTED] - Original Message - From: Cedric GROSS [EMAIL PROTECTED] I'm running a new install of vpopmail 5.4.10 on a freeBSD 5.3 box and courier-imap 4.0.3. When I logging to pop3 or imap, records are well updated or created in lastauth mysql table but instead of having remote ip I get only name of services (imap or pop3) and also with a webmail I have only imap logged. Under courier-imap v4 (and courier-imap pre-v4 --with-authdaemon), the IP address information is not available to the courier vchkpw module, thus it cant be logged into the lastauth table. Michael. I install courier 3.0.8 but it's change nothing, may be 3.0.8 it's what you called pre-v4 ? Have you anymore clue on that topic ? Thanks Cedric.
Re: [vchkpw] Disable Over quota bounce
On Tuesday 24 May 2005 8:11 am, Rod Taylor wrote: Is there a way to disable the over quota bounce for messages which are not delivered? I would like the quota to be enforced, but if the account is over quota the message to be silently dropped instead of bounced. Thanks. Hi Rod, There isn't any code in now to disable it. But it just needs a different vexit() return code. Proably take about 15 to 30 minutes to get setup and tested. Ken Jones inter7.com 815.766.9465
[vchkpw] processing .qmail files for all users
Hi, In a qmail + vpopmail setup, I would like to run, | /path/to/script in .qmail file for all users. Is there any eay way of doing it? With warm regards, -Payal
Re: [vchkpw] processing .qmail files for all users
Hi, On Tue, 2005-05-24 at 12:04 -0400, Payal Rathod wrote: In a qmail + vpopmail setup, I would like to run, | /path/to/script in .qmail file for all users. Is there any eay way of doing it? You can do it in the .qmail-default file. Change: | /path/to/vpopmail/vdelivermail '' bounce-no-mailbox to: | /path/to/script | /path/to/vpopmail/vdelivermail '' bounce-no-mailbox - you still have to do it with every domain thou... /Anders
Re: [vchkpw] processing .qmail files for all users
On Tue, May 24, 2005 at 06:17:46PM +0200, Anders Brander wrote: Hi, On Tue, 2005-05-24 at 12:04 -0400, Payal Rathod wrote: In a qmail + vpopmail setup, I would like to run, | /path/to/script in .qmail file for all users. Is there any eay way of doing it? You can do it in the .qmail-default file. Change: | /path/to/vpopmail/vdelivermail '' bounce-no-mailbox to: | /path/to/script | /path/to/vpopmail/vdelivermail '' bounce-no-mailbox But qmail-default is not looked at when the user has a .qmail file of her own, maybe for forwarding mails or something like that. What do I do in such case? With warm regards, -Payal
Re: [vchkpw] processing .qmail files for all users
Hi again, On Tue, 2005-05-24 at 12:24 -0400, Payal Rathod wrote: In a qmail + vpopmail setup, I would like to run, | /path/to/script in .qmail file for all users. Is there any eay way of doing it? You can do it in the .qmail-default file. Change: | /path/to/vpopmail/vdelivermail '' bounce-no-mailbox to: | /path/to/script | /path/to/vpopmail/vdelivermail '' bounce-no-mailbox But qmail-default is not looked at when the user has a .qmail file of her own, maybe for forwarding mails or something like that. Are you sure about that? What do I do in such case? Is it really a problem? /Anders
Re: [vchkpw] Anyone using vpopmail 5.4.11?
Tom Collins wrote: On May 20, 2005, at 1:19 PM, Rick Macdougall wrote: Tom Collins wrote: On May 20, 2005, at 7:47 AM, Rick Macdougall wrote: Been running it in production here since you released it Tom. Aside from the missing int i; everything works here. Rick, Can you confirm that it's working properly for forward/save-a-copy? I was told that it would forward the message, but the saved copy would just be a single Received header. I think it has something to do with the 'make seekable' code. Sure, Hold one sec... Yup, it's broken Rick, Can you pull the stable-5_4 branch from developer CVS and give that a shot? I was able to reproduce the problem on my machine, and I think I found the cause. If you confirm that I've nailed it, I'll release 5.4.12 ASAP for others to test further. Hi, Yes, done and the problem is fixed with this release. I tested a few other things and nothing else seems broken. Regards, Rick
[vchkpw] Vpopmail+qmail-ldap clustering?
I need docs on If and How would this work. Is it possible? Does it work fine? Do we, in vpopmail, have a better solution for this? begin:vcard fn:Alejandro Borges n:Borges;Alejandro email;internet:[EMAIL PROTECTED] tel;work:11585166 x-mozilla-html:TRUE version:2.1 end:vcard
Re: [vchkpw] Disable Over quota bounce
On Tue, 2005-05-24 at 10:00 -0500, Ken Jones wrote: There isn't any code in now to disable it. But it just needs a different vexit() return code. Proably take about 15 to 30 minutes to get setup and tested. Any advice on where? Attached is a patch which we believe may work. -- Rod Taylor [EMAIL PROTECTED] *** vdelivermail.c.orig Thu May 19 11:22:56 2005 --- vdelivermail.c Sun May 22 14:11:40 2005 *** *** 483,488 --- 483,490 * to the sender. */ if (user_over_maildirquota(address,format_maildirquota(quota))==1) { + printf(user is over quota\n); + vexit(99); /* check for over quota message in domain */ sprintf(tmp_file, %s/.over-quota.msg,TheDomainDir); *** *** 506,512 --- 508,516 if (QUOTA_WARN_PERCENT = 0 vmaildir_readquota(address, format_maildirquota(quota)) = QUOTA_WARN_PERCENT) { + /* ROD: Skip the warnings. deliver_quota_warning(address, format_maildirquota(quota)); + */ } } *** *** 514,519 --- 518,525 /* bk: check domain quota */ if (domain_over_maildirquota(address)==1) { + printf(user is over quota\n); + vexit(99); /* check for over quota message in domain */ sprintf(tmp_file, %s/.over-quota.msg,TheDomainDir); if ( (fs=fopen(tmp_file, r)) == NULL ) {
Re: [vchkpw] processing .qmail files for all users
On May 24, 2005, at 9:24 AM, Payal Rathod wrote: But qmail-default is not looked at when the user has a .qmail file of her own, maybe for forwarding mails or something like that. What do I do in such case? Yes it does. qmail-local delivers via .qmail-default to vdelivermail which parses the user's .qmail file. If you need something to happen for all users, you could consider modifying the source to vdelivermail. -- 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] many roaming users
On Saturday 21 May 2005 11:05 am, Matt Simerson wrote: On May 18, 2005, at 3:39 PM, Jeremy Kitchen wrote: On Wednesday 18 May 2005 01:26 pm, Payal Rathod wrote: On Wed, May 18, 2005 at 01:15:22PM -0500, Jeremy Kitchen wrote: don't use vpopmail's roaming-users functionality if you want pop-before-smtp authentication, use Bruce Guenter's relay-ctrl package. Any particular reason why? vpopmail's roaming-users support is poorly designed, slow, and prone to failure. I'd like to see some evidence to back up this assertion. the fact that it's based around one file (actually, 3) that can theoretically be attempted to be updated many times simultaneously (requiring locking, etc) the open-smtp file has to be locked, old entries purged, then the cdb file has to be locked, and rebuilt. If you have 10k users and their mail clients check every .. 10 minutes.. you're rebuilding this giant tcp.smtp.cdb file quite often. with relay-ctrl, it simply creates a file in a directory for each IP allowed, and checks for old ones that should be removed. This is NFS safe, requires no locking (who cares if two processes try to create the same empty file at the same time), and is a lot more fault-tolerant. Plus, since the relay-ctrl software is independent of any other qmail process, no other qmail process needs to know the location of the relay-ctrl directory, whereas vpopmail's roaming users either requires you to change where your cdb file is, or tell it specifically where your cdb file is. Also.. some people use scripts to generate their tcp.smtp.cdb file, since tcprules simply generates a cdb file based on stdin. vpopmail's roaming users breaks this. -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] pgpJrYPfjsAjd.pgp Description: PGP signature
[vchkpw] Re: many roaming users
Hello Jeremy, On Tuesday, May 24, 2005 at 10:11:21 PM Jeremy wrote: vpopmail's roaming-users support is poorly designed, slow, and prone to failure. I'd like to see some evidence to back up this assertion. the fact that it's based around one file (actually, 3) that can theoretically be attempted to be updated many times simultaneously (requiring locking, etc) the open-smtp file has to be locked, old entries purged, then the cdb file has to be locked, and rebuilt. 'open-smtp' has to be locked, yes. But cdb file hasn't. It's rebuild in a temporary file and if build successfully the old one is removed and the new one renamed. In fact vpopmail makes use of 'tcprules' to create cdb file. with relay-ctrl, it simply creates a file in a directory for each IP allowed, and checks for old ones that should be removed. This is NFS safe, requires no locking (who cares if two processes try to create the same empty file at the same time), and is a lot more fault-tolerant. And with 10k users adds a lot of things to do to find the correct file to the file system, especially if this special directory is located on an ext2 or ext3 partition, which as we all know, does not scale very well if there are a lot of directory entries. Plus, since the relay-ctrl software is independent of any other qmail process, no other qmail process needs to know the location of the relay-ctrl directory, whereas vpopmail's roaming users either requires you to change where your cdb file is, or tell it specifically where your cdb file is. ** Deleting whatever '-x' points existing tcpserver-processes and replacing it with a symlink really is hard to do ... If one does not want to adjust startup script and edit '-x' parameter directly. Also.. some people use scripts to generate their tcp.smtp.cdb file, since tcprules simply generates a cdb file based on stdin. vpopmail's roaming users breaks this. Where? As far as I've understood vpopmail source it it simply opens 'tcprules' process, passes 'open-smtp' and 'tcp.smtp' contents to STDIN of this process, and that's it. Nothing that looks to me like 'breaking generating a cdb file based on stdin', especially nothing I'd call prone to fail. Sure, for some 10k users cdb might become slow, when it comes to many necessary cdb file recreations (i.e. many altering IP addresses). But that does not necessarily mean it's slow, poorly designed or prone to fail for anybody else with much less users. It's a good, known to work reliable, solution that perfectly integrates into existing tcpserver usage ... -- Best regards Peter Palmreuther Rap is to music what Etch-A-Sketch is to art.
[vchkpw] valid user patch
Hi, http://http.netdevice.com:9080/qmail/rcptck/ Does anyone know if any of these patches work with vpopmail and virtual domains? I really want to install something eliminate the insane amount of bounce messages in my queue. They are all sorry that user does not exist, and of course they are bouncing to invalid accounts since the spammer never puts a valid from header in their emails. It's driving me nuts, since my queue fills up with many thousands of these messages and is severely degrading the performance of my server. Thanks very much, Dan This message was sent using IMP, the Internet Messaging Program.
RE: [vchkpw] valid user patch
http://http.netdevice.com:9080/qmail/rcptck/ Does anyone know if any of these patches work with vpopmail and virtual domains? I really want to install something eliminate the insane amount of bounce messages in my queue. They are all sorry that user does not exist, and of course they are bouncing to invalid accounts since the spammer never puts a valid from header in their emails. It's driving me nuts, since my queue fills up with many thousands of these messages and is severely degrading the performance of my server. I have used interazioni's chkuser patch with great success: (http://www.interazioni.it/opensource/chkuser/) My queue has dropped from ~20,000 to an average of ~150, with an average load of 1 (Used to be ~8) Regards, MB
[vchkpw] vpopmail authentications failing randomly
Problem: vpopmail authentications failing randomly grep vchkpw /var/log/maillog | grep -v success | grep dlb May 24 11:45:03 mail01 vpopmail[40833]: vchkpw-pop3: vpopmail user not found [EMAIL PROTECTED]:67.92.111.22 May 24 11:50:03 mail01 vpopmail[41401]: vchkpw-pop3: vpopmail user not found [EMAIL PROTECTED]:67.92.111.22 May 24 11:55:04 mail01 vpopmail[42117]: vchkpw-pop3: vpopmail user not found [EMAIL PROTECTED]:67.92.111.22 May 24 12:00:04 mail01 vpopmail[42735]: vchkpw-pop3: vpopmail user not found [EMAIL PROTECTED]:67.92.111.22 May 24 12:50:06 mail01 vpopmail[51623]: vchkpw-pop3: vpopmail user not found [EMAIL PROTECTED]:67.92.111.22 May 24 12:55:07 mail01 vpopmail[52208]: vchkpw-pop3: vpopmail user not found [EMAIL PROTECTED]:67.92.111.22 May 24 13:00:06 mail01 vpopmail[52799]: vchkpw-pop3: vpopmail user not found [EMAIL PROTECTED]:67.92.111.22 May 24 13:20:16 mail01 vpopmail[55953]: vchkpw-pop3: vpopmail user not found [EMAIL PROTECTED]:67.92.111.22 May 24 13:48:23 mail01 vpopmail[13650]: vchkpw-pop3: vpopmail user not found [EMAIL PROTECTED]:67.92.111.22 These are happening for various accounts, on a seemingly random basis. Out about 4,000 authentications today, it failed 100 times. qmail-pop3d is run as follows: exec softlimit -m 4096000 tcpserver -H -R -c50 0 pop3 qmail-popup mail01.example.net vchkpw qmail-pop3d Maildir 21 System Specs: Pentium III 1.0GHz - 1.0GB RAM 36GB ATA disk FreeBSD 4.10-stable MySQL 4.0.24 with linuxthreads, running locally Vpopmail 5.4.2-5.4.10 ~400 users. Previous versions of MySQL were not compiled with linuxthreads but this problem existed then as well. The my.cnf file is based on my- medium.cnf, with two tweaks appropriate for this system (skip-innodb, bin-log disabled). I have used vpopmail versions 5.4.2, 5.4.8 and 5.4.10 and all exhibit this problem. I also see this error in the maillogs on occasion: delivery 14578: failure: vmysql:_sql_error [1]:_Can't_create_database_'vpopmail'._Database_exists/ vmysql:_sql_error[3]:_No_Database_Selected/ Sorry,_no_mailbox_here_by_that_name._vpopmail_(#5.1.1)/ delivery 14641: failure: vmysql:_sql_error [1]:_Can't_create_database_'vpopmail'._Database_exists/ vmysql:_sql_error[3]:_No_Database_Selected/ Sorry,_no_mailbox_here_by_that_name._vpopmail_(#5.1.1)/ There are no errors reported in MySQL's .err log. There are no other related errors reported in the system logs. The MySQL load is quite light, with less than one query executed every few seconds. The system load is also fairly light, mostly hovering between 0.4 and 0.5. All the symptoms are indicative of vpopmail having an issue with MySQL, so I set up a little perl script to test for me while I tried to replicate the problem. #!/usr/bin/perl my $email = $1 || '[EMAIL PROTECTED]'; my $limit = $2 || 1000; print checking for $email $limit times (each . = success) ; for ( my $i = 0; $i $limit; $i++){ my $dir =`~vpopmail/bin/vuserinfo -d $email`; chomp $dir; -d $dir ? print . : print $i fail\n; sleep 1; }; So, I run this script in one terminal window while trying to trigger the problem in another. As near as I can tell, the problem is always during times when the system is busy. I cannot replicate this problem on any of my own servers. To help narrow down the problem, I put the system under sustained heavy load (make buildworld). As expected, I get frequent authentication and test (~45%) failures. So, there is certainly a problem with vpopmail and it's MySQL interaction. Again, this is with versions including 5.4.2, 5.4.8, and 5.4.10. I've seen random cases of this but I've never had an instance where it was repeatable. In such a case, shouldn't the vpopmail programs be returning a error indicative of the problem instead of a user not found error? A user not found error is not even close to accurately describing what the problem is. During this heavy load testing, I wanted to see if the issue was MySQL or vpopmail. To test this I ran another MySQL client and see if it too has problems interacting with the MySQL server. This is another C program, also compiled to access the vpopmail database and do a query. I also ran this program simultaneously with the test script and the make buildworld. While the vpopmail test script was failing every other authentication, the other program succeeded, every single time, never failing once. So, I turned to vmysql.c and noticed a timeout setting there that affects the mysql connection timeout. I bumped it up from 2 to 5, and it has reduced the failure frequency but it's still happening fairly regularly. There are some slow queries in MySQL, but only 15 from the last day, so that doesn't even closely correspond with 300 no found errors. So, anyone got ideas on how to debug this issue further? Matt `` Show me a piano falling down a mineshaft and I'll show you A-flat minor.