> On Wed, 24 Jun 2009, Rudy Gevaert wrote: > >> >> Citeren Rudy Gevaert <rudy.gevaert@xxxxxxxx>: >> >>> Hi, >>> >>> I was wondering if it is possible to deliver an email to a mailbox >>> even when the mailbox is over quota. >>> >>> We sometimes have users emailing us 'we are over quota', but we can't >>> reply because they are over quota :). We then temporary increase the >>> quota till the users cleans up his mailbox. >>> >>> However it would be easy to still deliver email in certain cases. >>> >>> Any ideas? > > We kinda bruteforce it here: > > open(OUT, "| ssh root\@$location /usr/local/cyrus/bin/deliver -q > -r osuhelpdesk\@oregonstate.edu $username"); > > (where $location is the backend holding $username's mailbox) > > Then we pipe in our prepared overquota warning message to it. > >> And now I see that lmtp has an IGNOREQUOTA extension! :) > > Is anyone using this? I don't have a script which speaks LMTP, so some > example code would be useful. Yes I do with my quotawarn.sh script. Basically it calls 'deliver -l' and sends something like warn_user() { echo "warning mailbox $owner with $pct% quota" cat << EOF | submit MAIL FROM:<$from> RCPT TO:<$owner> IGNOREQUOTA DATA From: $from To: $to Subject: WARNING: Your mailbox has reached $pct% quota. Your server mailbox has reached $pct% of your available quota for storing messages. This will not cause any immediate problem, but if the size of your inbox exceeds your quota, you will not be able to receive any new email until some messages are removed from your server mailbox, either by deleting them or saving them to a local folder. If you need assistance cleaning up your inbox, please contact the Help Desk on tel. $helptel or by email at $helpmail. Thank you. . EOF } Regards, Simon ---- Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html