Bob Hutchinson wrote:
Thanks for the help Bob; I will mess about some more.On Thursday 23 Mar 2006 07:18, David wrote:Hi all,I would like to integrate maildrop at the .qmail file level, per-user. Something like a simple: |maildrop .mailfilter in the .qmail file (I read somewhere that I might need to | /usr/sbin/preline maildrop .mailfilter) I found a message in the list archives and have been referring to it at: http://www.mail-archive.com/toaster@shupp.org/msg03632.html Somebody (I think it was Bob Hutchinson) posted as part of an example in there:yeah, it was me ;-) I haven't figured out a way to get maildrop to check the quota on the fly either, ~vpopmail/bin/vuserinfo --help tells me that the -Q parameter returns a percentage, eg 45%, whereas -q just returns the quota set, not that helpful. So it should in principle be possible to write a script that tests the quota using -Q and returns something for maildrop to interpret and act upon. I'm not sure how exactly but this might get you started MAILDIRPERCENT=`~vpopmail/bin/vuserinfo -Q [EMAIL PROTECTED] | sed -e 's/%//'` $MAILDIRPERCENT should then contain 100 if the box is full Do let the list know if you crack it, I'm sure others will want to know too.MAILDIRQUOTA=`~vpopmail/bin/vuserinfo -q [EMAIL PROTECTED] in the maildrop filter file. Can anybody tell me if this works with the Shupp toaster? I have successfully integrated maildrop as my LDA in a Shupp toaster, but it seems blissfully unaware of users' quotas and quota warning/over-quota messages get lost, and when the account fills up, maildrop just spits errors and the mail stops with maildrop. I am looking for a way to make it quota-aware. Regards, David Regards, David PS Sorry for late reply - was away from my email for a few days. |
- [toaster] Using maildrop with toaster & quota support David
- Re: [toaster] Using maildrop with toaster & quota ... Bob Hutchinson
- Re: [toaster] Using maildrop with toaster & qu... David
- Re: [toaster] Using maildrop with toaster &... Bob Hutchinson
- Re: [toaster] Using maildrop with toaster & quota ... Adi Pircalabu