RE: [vchkpw] ldap or mysql
Is LDAP support of Vpopmail mature enough for a large production server? Has anyone used it succesfully in such a case? From README.ldap : Using vpopmail with LDAP is not very common. The LDAP modules are functional, but because it not as popular as using CDB or MySQL auth systems, you should be wary of implementing the LDAP system on a production server. I'm using Vpopmail+LDAP for about 2 years, with no problems. But, for older versions of Vpopmail, I had to do some nasty things in order to make it compile correctly. From README.mysql : Using vpopmail with MySQL is becoming increasingly popular. The code is well tested and can be considered to be just as stable as the default CDB authentication system. Michael. And you will have much more flexibility. I did choose LDAP because of this performance, but if I had to make the choice again, I would choose mysql instead.
[vchkpw] Vdelivermail high load
Hi all, Today, when issuing a top on my pop server, I noticed that there were some vdelivermails process eating a lot of cpu resources. Then, looking in the logs files, I saw that it was a spam to a specific domain, and this domain had the postmaster account as the 'catchall account'. What surprised me is the number of emails in the its Maildir: about 1479158 Is the number of emails in a Maildir related to the amount of cpu vdelivermail uses? I saw an increasing use of the disc too, somethings 100%... Thanks! ___ ALMEIDA, Fernando Costa de Computeasy Informtica www.computeasy.com.br BSD USER BSD050945 ICQ 72293951
RE: [vchkpw] Vdelivermail high load
Hi Jeremy, thanks for your explanation! Im using FreeBSD and consequently an UFS Filesystem (with DIR_HASH and SoftUpdates enabled). I will delete the emails, but I posted this question just to make sure that my problem was caused by the high number of files in the user's Maildir. The next step is to avoid that an user have so many emails in his Maildir, perhaps enabling quota for all users... I frequently face high IO loads in this server, even though its has one dedicated disk for the qmail queue and logs. Thanks. ___ ALMEIDA, Fernando Costa de Computeasy Informtica www.computeasy.com.br BSD USER BSD050945 ICQ 72293951 -Original Message- From: Jeremy Kitchen [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 13, 2004 1:12 PM To: [EMAIL PROTECTED] Subject: Re: [vchkpw] Vdelivermail high load On Tuesday 13 July 2004 09:47 am, Fernando Costa de Almeida wrote: Hi all, Today, when issuing a top on my pop server, I noticed that there were some vdelivermails process eating a lot of cpu resources. Then, looking in the logs files, I saw that it was a spam to a specific domain, and this domain had the postmaster account as the 'catchall account'. What surprised me is the number of emails in the its Maildir: about 1479158 Is the number of emails in a Maildir related to the amount of cpu vdelivermail uses? I saw an increasing use of the disc too, somethings 100%... if you're using ext2/3 filesystem, or any other non-directory hashing filesystem, this will occur. This isn't vpopmail's fault, it's the filesystem. You have two options, remove the emails, or switch to a better filesystem (such as reiserfs, or UFS with DIR_HASH) for more details about this filesystem issue, please visit google, as this is discussed on more mailing lists than you could possibly think of. -Jeremy -- Jeremy Kitchen ++ Systems Administrator ++ Inter7 Internet Technologies, Inc. [EMAIL PROTECTED] ++ www.inter7.com ++ 866.528.3530 ++ 847.492.0470 int'l kitchen @ #qmail #gentoo on EFnet ++ scriptkitchen.com/qmail
RE: [vchkpw] Vdelivermail high load
Yes! This account has a big quota (about 50MB)... Here is what I did: 1) Deleted all emails from this account; 2) Increased vfs.ufs.dirhash_maxmem to improve performance on big directories (Thanks to Jeremy who mades me read more about DIRHASH)... And now, I will set the users to NOQUOTA (thanks to you, hehe)... Another question... Is there a quota on this account? I've caught some maildrop and vdelivermail processes chewing up a ton of cpu just trying to recalculate the quota. Very similar situation; catchalls are evil and outdated. Since the user had an incredibly huge quota anyway, I set them to NOQUOTA with vmoduser and everything calmed down. Thanks, Charles I frequently face high IO loads in this server, even though its has one dedicated disk for the qmail queue and logs. Thanks. ___ ALMEIDA, Fernando Costa de Computeasy Informtica www.computeasy.com.br BSD USER BSD050945 ICQ 72293951 -Original Message- From: Jeremy Kitchen [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 13, 2004 1:12 PM To: [EMAIL PROTECTED] Subject: Re: [vchkpw] Vdelivermail high load On Tuesday 13 July 2004 09:47 am, Fernando Costa de Almeida wrote: Hi all, Today, when issuing a top on my pop server, I noticed that there were some vdelivermails process eating a lot of cpu resources. Then, looking in the logs files, I saw that it was a spam to a specific domain, and this domain had the postmaster account as the 'catchall account'. What surprised me is the number of emails in the its Maildir: about 1479158 Is the number of emails in a Maildir related to the amount of cpu vdelivermail uses? I saw an increasing use of the disc too, somethings 100%... if you're using ext2/3 filesystem, or any other non-directory hashing filesystem, this will occur. This isn't vpopmail's fault, it's the filesystem. You have two options, remove the emails, or switch to a better filesystem (such as reiserfs, or UFS with DIR_HASH) for more details about this filesystem issue, please visit google, as this is discussed on more mailing lists than you could possibly think of. -Jeremy -- Jeremy Kitchen ++ Systems Administrator ++ Inter7 Internet Technologies, Inc. [EMAIL PROTECTED] ++ www.inter7.com ++ 866.528.3530 ++ 847.492.0470 int'l kitchen @ #qmail #gentoo on EFnet ++ scriptkitchen.com/qmail
RE: [vchkpw] Problems upgrading from 5.2 to 5.4.0
I've turned domain quotas off, and the problem was solved. Thanks for helping. Hi all, I'm having some problems trying to upgrade my vpopmail 5.2 to 5.4.0. The compilation goes well (no errors at this stage), but after the instalation, just a few minutes later, the load of the server begins to get high, very high... :-(. When issuing a top, I see a lot of process of vdelivermail eating all cpu resources:
RE: [vchkpw] POP3 not logging
Hi, I still cant log qmail-pop3d, even putting the 21 at the script [ root@ /var/qmail/supervise/qmail-pop3d ] svstat /service/qmail-pop3d/log /service/qmail-pop3d/log: unable to open supervise/ok: file does not exist If I run a simple echo AA | /var/qmail/supervise/qmail-pop3d/log/run, I got the AA string in the log, what makes me conclude that the log script is working well.. Follow are my scripts: 1) qmail-pop3d/run #!/bin/sh exec /usr/local/bin/tcpserver -c 100 -H -R 0 pop3 /var/qmail/bin/qmail-popup server /var/vpopmail/bin/vchkpw /var/qmail/bin/qmail-pop3d Maildir 21 2) qmail-pop3d/log/run #!/bin/sh exec /usr/local/bin/setuidgid qmaill /usr/local/bin/multilog t /var/log/qmail/pop3d What am I losing? ___ ALMEIDA, Fernando Costa de Computeasy Informática www.computeasy.com.br BSD USER BSD050945 ICQ 72293951 -Original Message- From: Mario Gamito [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 23, 2004 12:17 PM To: ML vpopmail Cc: [EMAIL PROTECTED] Subject: RE: [vchkpw] POP3 not logging Hi Shane, I can't f* believe it. After two weeks around this, all that was needed was a mere 21 It never crossed my mind. I really don't know how to thank you for your unvaluable tip. When you pass by Portugal, send me an e-mail and i'll pay you a can of lagger :) Thank you so very, very, much. Warmest Regards, Mário Gamito On Wed, 2004-06-23 at 14:42, Shane Chrisp wrote: Try adding 21 at the end. Shane -Original Message- From: Mario Gamito [mailto:[EMAIL PROTECTED] Sent: Wednesday, 23 June 2004 9:40 PM To: ML vpopmail Subject: [vchkpw] POP3 not logging Hi, I have a qmail/vpopmail running. I can log qmail-send, qmail-smtp, qmail-pop3ds, BUT NOT qmail-pop3d. I've tried everything, but nothing. After a lot of research i came to the conclusion that it must have something to do with vpopmail. I just don't know what. Any ideas ? Any help would be appreciated. Following my signature is my /var/qmail/supervise/qmail-pop3d/run and /var/qmail/supervise/qmail-pop3d/log run. Warm Regards, Mário Gamito /var/qmail/supervise/qmail-pop3d/run: - #!/bin/sh exec env - PATH=/usr/local/bin:/var/qmail/bin \ tcpserver -v -l 0 -P -H -R 0 pop3 \ qmail-popup foo.netual.com \ /home/vpopmail/bin/vchkpw qmail-pop3d Maildir - /var/qmail/supervise/qmail-pop3d/log/run: #!/bin/sh exec env - PATH=/usr/local/bin \ setuidgid qmaill multilog t s250 /var/log/qmail/qmail-pop3d
RE: [vchkpw] POP3 not logging
[ [EMAIL PROTECTED] ~ ] svstat /service/*/log /service/qmail-pop3d/log: unable to open supervise/ok: file does not exist /service/qmail-send/log: up (pid 312) 685531 seconds /service/qmail-smtpd/log: up (pid 310) 685531 seconds -Original Message- From: Mario Gamito [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 23, 2004 12:52 PM To: ML vpopmail Subject: RE: [vchkpw] POP3 not logging Hi, [ root@ /var/qmail/supervise/qmail-pop3d ] svstat Hummm... try svstat /service/*/log Regards, Mário Gamito
RE: [vchkpw] Problems upgrading from 5.2 to 5.4.0
Fernando Costa de Almeida wrote: Hi all, I'm having some problems trying to upgrade my vpopmail 5.2 to 5.4.0. The compilation goes well (no errors at this stage), but after the instalation, just a few minutes later, the load of the server begins to get high, very high... :-(. When issuing a top, I see a lot of process of vdelivermail eating all cpu resources: I bet you now have quota support enabled, and you did not before. Actually, I already had quota support enabled, but just for user accounts, not for the entire domain. That means that the first time vdelivermail attempts to deliver mail to an account it must scan all the existing mail to determine the file space being used. Can the new feature of domain quota be causing this behaviour too? Although I had enabled the domain quota support, I did not set any domain quota yet. Even in this case, will vpopmail still scan my domains in order to calculate these disk usages? You can either disable quota support, or just live with it. Once everyone has received their first new email their disk usage information will be cached, and the number of full directory scans will go way down. It is bad at first because every new message is to a user without cached disk usage information. Rick
[vchkpw] Problems upgrading from 5.2 to 5.4.0
Hi all, I'm having some problems trying to upgrade my vpopmail 5.2 to 5.4.0. The compilation goes well (no errors at this stage), but after the instalation, just a few minutes later, the load of the server begins to get high, very high... :-(. When issuing a top, I see a lot of process of vdelivermail eating all cpu resources: -- Last pid: 94268; load averages: 34.92, 14.57, 8.28 up 6+01:40:03 16:22:59 175 processes: 36 running, 119 sleeping, 20 zombie CPU states: 40.5% user, 0.0% nice, 58.0% system, 1.6% interrupt, 0.0% idle Mem: 76M Active, 300M Inact, 89M Wired, 23M Cache, 61M Buf, 12M Free Swap: 1500M Total, 348K Used, 1500M Free PID USERNAME PRI NICE SIZERES STATETIME WCPUCPU COMMAND 92591 vpopmail 62 0 2516K 1456K RUN 0:05 3.50% 3.47% vdelivermail 92083 vpopmail 61 0 2516K 1460K RUN 0:08 3.33% 3.32% vdelivermail 91842 vpopmail 61 0 2516K 1244K RUN 0:10 3.28% 3.27% vdelivermail 92320 vpopmail 62 0 2516K 1452K RUN 0:06 3.29% 3.27% vdelivermail 92588 vpopmail 62 0 2516K 1456K RUN 0:05 3.30% 3.27% vdelivermail 92773 vpopmail 63 0 2516K 1456K RUN 0:04 3.28% 3.22% vdelivermail 93178 vpopmail 62 0 2516K 1456K RUN 0:03 3.26% 3.08% vdelivermail 93464 vpopmail 62 0 2516K 1448K RUN 0:02 2.90% 2.49% vdelivermail 93366 vpopmail 61 0 2516K 1464K RUN 0:02 2.58% 2.29% vdelivermail -- My guess is that the bootleneck is in the filesystem, but I cant figure out how to avoid this.. Here is my configure command: ./configure --enable-tcpserver-file=/RAID0/vpopmail/etc/tcp.smtp --enable-auth-module=ldap \ --enable-roaming-users=y --enable-logging=p --disable-clear-passwd --enable-domainquotas=y \ --enable-md5-passwords=n --enable-file-locking=n --disable-users-big-dir /RAID0 points to a dedicated disk, where I put the queue and the archives related to roaming users (open smtp, tcp.cdb, etc), trying to achieve better IO performance My configuration is: FreeBSD 4.9-p4 Vpopmail 5.4.0 (was 5.2) OpenLDAP Qmail 1.03 Thanks in advance! ___ ALMEIDA, Fernando Costa de Computeasy Informtica www.computeasy.com.br BSD USER BSD050945 ICQ 72293951
[vchkpw] Almost working... vpopmail+maildrop+mailadmin
Hi, After hours of fight my setup is working: 1) maildrop 1.5.0 2) vpopmail 5.2 3) qmailadmin 1.0.4 4) sqwebmail 3.3.3 I have just one problem: I dont need to loose the catchall feature of vpopmail, so I cant use a .qmail-default in the domain dir to instruct qmail to use maildrop. One possible solution is to keep the .qmail-default untouched, and create a .qmail-user for every user in the domain, with the following: _ | /usr/local/bin/maildrop /etc/maildroprc _ and maildroprc _ VHOME=`/var/vpopmail/bin/vuserinfo -d $EXT@$HOST` include $VHOME/Maildir/.mailfilter _ the user .mailfilter contains the following: _ #MFMAILDROP=2 # # DO NOT EDIT THIS FILE. This is an automatically generated filter. MAILDIRQUOTA=10S FROM='[EMAIL PROTECTED]' import SENDER if ($SENDER eq ) { SENDER=$FROM } ##Op:contains ##Header: ##Value:teste ##Folder:*Seu email contem teste ##From: ##PlainString ##Body ##Name:Teste to | /var/vpopmail/bin/vdelivermail '' bounce-no-mailbox _ This way, I dont loose the vdelivermail features (like quota), and use the maildrop filtering too. The .mailfilter file is created by the sqwebmail. My problem is that this way, I will have to create a .qmail-user file to every user in every domain, and maintain this sincronized How can I avoid this? Im thinking in hack qmailadmin, but this is a 'last resort'. Thanks in advance, ___ ALMEIDA, Fernando Costa de Computeasy Informática www.computeasy.com.br BSD USER BSD050945 ICQ 72293951
Re: [vchkpw] Re: Maildrop
Thanks, now Im sending emails with maildrop with success.., but I still have some questions: 1) How can I make a .qmail-default and maildroprc that dinamically choose the user sender? What I want is to not put a .qmail file to every user in my domains, but instead justt a .qmail-default in the domain dir... 2) I have quotas support, but maildrop cant see them, since vdelivermail is the responsable to do this.. How can I do not loose the vdelivermail features, but use maildrop filters? Im reading about the seekable patch, and althougt I applied the patch sucessfully, vdelivermail seens to not see my emails. Here is my .qmail.default $ cat .qmail-default | /usr/local/bin/maildrop ./teste/Maildir/.mailfilter | /var/vpopmail/bin/vdelivermail '' bounce-no-mailbox Im not getting 'lseek erros' any more, but it seens that vdelivermail dont do this work :-) Thanks in advance. Fernando Costa de Almeida writes: Hi, Im trying to add mail filtering feature to my existent vpopmail setup: 1) vpopmail-5.2 2) sqwebmail-3.3.3 3) maildrop-1.5.0 4) qmailadmin-1.0.4 5) OpenLdap 2.0.27 But I always get this error when sending email: delivery 43: deferral: /usr/local/bin/maildrop:_Unable_to_open_mailbox./ _ $ cat /usr/local/share/sqwebmail/maildirfilterconfig MAILDIRFILTER=.mailfilter MAILDIR=./Maildir $ cat /var/vpopmail/domains/teste.com.br/.qmail-default | /usr/local/bin/maildrop ./teste/Maildir/.mailfilter | /var/vpopmail/bin/vdelivermail '' bounce-no-mailbox I ran into the same problem. Try setting MAILDIR=teste/Maildir in maildirfilterconfig. For some reason maildrop looks for Maildir folder in domains/domain.com/ dir. Update your filters using sqwebmail or editing .mailfilter file. Then send a test message. LanMan
[vchkpw] Maildrop
Hi, Im trying to add mail filtering feature to my existent vpopmail setup: 1) vpopmail-5.2 2) sqwebmail-3.3.3 3) maildrop-1.5.0 4) qmailadmin-1.0.4 5) OpenLdap 2.0.27 But I always get this error when sending email: delivery 43: deferral: /usr/local/bin/maildrop:_Unable_to_open_mailbox./ _ $ cat /usr/local/share/sqwebmail/maildirfilterconfig MAILDIRFILTER=.mailfilter MAILDIR=./Maildir _ _ $ cat /var/vpopmail/domains/teste.com.br/.qmail-default | /usr/local/bin/maildrop ./teste/Maildir/.mailfilter | /var/vpopmail/bin/vdelivermail '' bounce-no-mailbox _ _ $ cat /var/vpopmail/domains/teste.com.br/teste/Maildir/.mailfilter #MFMAILDROP=2 # # DO NOT EDIT THIS FILE. This is an automatically generated filter. MAILDIRQUOTA=1048576S FROM='[EMAIL PROTECTED]' import SENDER if ($SENDER eq ) { SENDER=$FROM } ##Op:contains ##Header: ##Value:teste ##Folder:*Erro Teste ##From: ##PlainString ##Body ##Name:Teste if ((/teste/:b)) { echo Erro Teste EXITCODE=77 exit } to ./Maildir/. _ _ $ cat /etc/maildroprc DEFAULT=./teste/Maildir _ Ive tried a lot of options in the DEFAULT_DEF in the maildrop configure, etc, etc etc.. but always got the error above.. Can anyone please help me? Best Regards ___ ALMEIDA, Fernando Costa de BSD USER BSD050945 ICQ 72293951
[vchkpw] Limiting size of the emails sent based on quota
Hi all, I have to add the following feature in my email system: Users of a determined domain can't sent email with size greater than 20% of their quota. Ive already have vpopmail, sqwebmail, qmailadmin, vqadmin working well with LDAP and quotas, but I dont know (yet) how to do the feature above. Any help willl be apreciated, ___ ALMEIDA, Fernando Costa de Computeasy Informática www.computeasy.com.br BSD USER BSD050945 ICQ 72293951
[vchkpw] Courier-Imap and Sqwebmail
Hi, Ive installed Courier-Imap with vchkpw authentication (qmail + vpopmail + qmailadmin + Courier-IMAP), and all works well: I can connect to the server and etc... But there is a problem: If I delete the Drafts folder (used by Sqwebmail), Sqwebmail shows an errors when I try to send a message, because it needs this folder to store something. The question is: How can I avoid that users delete this folder in Courier-IMAP? Sorry if it was off-topic... Thanks in advance, ___ ALMEIDA, Fernando Costa de Computeasy Informática www.computeasy.com.br BSD USER BSD050945 ICQ 72293951