On Sat, Feb 22, 2003 at 01:59:16PM +0200, Arthur Kerpician wrote:
> > >    I'm using Qmail 1.03 / Courier-IMAP 1.5.3 with mysqlauth 
> > / vpopmail.
> > >    The quota limits are working ok but i cannot see how to deliver
> > >    warning messages when user goes above a certain limit.
> > 
> > You won't get them if qmail is delivering mail into the 
> > mailbox directly.
> > 
> > Configure qmail to run Courier's 'deliverquota' or 'maildrop' 
> > as its local delivery agent (the first is included with 
> > courier-imap; the second is available as a separate package)
> > 
> >
> Ok, but I don't want to set the quota through .qmail files. As I
> understood, I have to replace in the user's .qmail (I want users to have
> different quotas) the line
> ./Maildir/
> with
> '| /usr/local/bin/deliverquota ./Maildir 1000000S' (example)
> and my quota limits are in the auth mysql database.

Ah, then that's a qmail problem, not a Courier problem :-)

Ask on a qmail mailing list. Perhaps the quota is in an environment variable
which you can substitute into the deliverquota command line.

If you can't find a solution, at worst you can change your MTA (either to
courier, which has the quotawarnmsg functionality built-in, or to some other
MTA which is more flexible and lets you substitute database lookups into the
pipe command, like exim)

There are other benefits in using deliverquota BTW - most importantly that
the 'maildirquota' file will be kept up to date, which is a much more
efficient way of enforcing quotas than counting the sizes of all files in
the maildir on every delivery.

Regards,

Brian.


-------------------------------------------------------
This SF.net email is sponsored by: SlickEdit Inc. Develop an edge.
The most comprehensive and flexible code editor you can use.
Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial.
www.slickedit.com/sourceforge
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to