I have to face it, my users are retards: * either they're using crap MUAs which will not display their quota to them * or they're using POP with "leave mail on server" and will never notice their quota, unless it's too late * and once their quota is exceeded, their mails will bounce -- they'll never notice that, though. Thus I need a feature in dovecot that will tell them via email: Level1: "You ALMOST exceeded your quota, you're at 90% now" Level2: "You're very close to exceededin your quota, you're at 95% now" Level3: "Would you please clean up now? You're at 99% now" -- Ralf Hildebrandt (Ralf.Hildebrandt at charite.de) plonk at charite.de Postfix - Einrichtung, Betrieb und Wartung Tel. +49 (0)30-450 570-155 http://www.arschkrebs.de "Hardware: the parts of a computer that can be kicked." -- Jeff Pesis
Hi there, On Mon, 21 May 2007, Ralf Hildebrandt wrote:> I have to face it, my users are retards:Every one have such users... :)> * either they're using crap MUAs which will not display their quota to them > * or they're using POP with "leave mail on server" and will never > notice their quota, unless it's too late > * and once their quota is exceeded, their mails will bounce -- they'll > never notice that, though. > > Thus I need a feature in dovecot that will tell them via email: > > Level1: "You ALMOST exceeded your quota, you're at 90% now" > Level2: "You're very close to exceededin your quota, you're at 95% now" > Level3: "Would you please clean up now? You're at 99% now"Personaly I do that using lmtp (http://pll.sf.net/) that does this kind of warning. Since lmtpd is also a lmtp client, it can reply with a temp fail (eg 450) to postfix for several days.... Avoiding bounces... /Xavier
On 5/21/07, Ralf Hildebrandt <Ralf.Hildebrandt at charite.de> wrote:> I have to face it, my users are retards: > > Level1: "You ALMOST exceeded your quota, you're at 90% now" > Level2: "You're very close to exceededin your quota, you're at 95% now" > Level3: "Would you please clean up now? You're at 99% now" >I use dovecot imap, pop, lda + exim with maildir++ quotas all sql backended. I have a small perlscript that uses mail::imapclient->append() to place a message in their inbox detailing something similar to your 'level' information as well as a dspam like alert if need be and a few other things. I use a custom msgid so that i can easily 'replace' the message with a new one. So in your level example as they rise from 1,2,3 they would only see 3 if they never saw 1 or 2 as new message. Back dating the message also helps to keep it noticed. If you use dovecot's lda your quite able to do something at that moment to check the quota and toss a crafted message into the mix using the deliver script. I think an entry on the dovecot wiki dealing with one of the quotas plugins mentions this. If your using a filesystem quota and have real users a script wouldn't be hard to craft to do the warn/hard messages either. But pushing a lot of warnings into the inbox would be my fear which is why i replace mine. -- Gabriel Millerd
On Mon, 2007-05-21 at 08:49 +0200, Ralf Hildebrandt wrote:> I have to face it, my users are retards: > > * either they're using crap MUAs which will not display their quota to them > * or they're using POP with "leave mail on server" and will never > notice their quota, unless it's too late > * and once their quota is exceeded, their mails will bounce -- they'll > never notice that, though. > > Thus I need a feature in dovecot that will tell them via email: > > Level1: "You ALMOST exceeded your quota, you're at 90% now" > Level2: "You're very close to exceededin your quota, you're at 95% now" > Level3: "Would you please clean up now? You're at 99% now"http://dovecot.org/patches/quota-warning.patch would do it, assuming you're not using filesystem quota. I'm not exactly sure how its configuration went. It's described somewhere in this mailing list. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20070523/62f290ad/attachment-0002.bin>