[Dovecot] POLL: v2.2 to allow one mail over quota?

/dev/rob0 rob0 at gmx.co.uk
Tue Oct 30 18:23:18 EET 2012


On Mon, Oct 29, 2012 at 10:39:51PM +0200, Timo Sirainen wrote:
> Currently if user is 1MB under quota and someone tries to deliver 
> mail that is over 1MB, Dovecot rejects the mail. But smaller mails 
> aren't rejected probably for days. So user might not even realize 
> that they didn't receive one of the mails. Also having a user 
> "almost over quota" is a rather strange state I think.
> 
> So what do you think about v2.2 allowing delivery of one last mail 
> even if it brings the user over quota? Except add a limit that if 
> the message size is as much as the user's entire quota limit it 
> wouldn't be added (or 50% or ..?). Also IMAP wouldn't allow this, 
> since user would get an error anyway. I could make this also 
> optional, but if nobody really wants to keep the old behavior 
> there's really no point in adding the option.

I think the thing to do is to adjust the admin's thinking about it.

Yes, if the current mailstore is under quota, by all means, you 
should accept the next email up to the maximum size the server 
accepts. No exception, just take it.

You control $quota and $maxMsg. Set your quota with that in mind, 
where $(($quota - 1 + $maxMsg)) total is something you can live with.

That said, I have been fortunate to never have to set up a quota. 
Storage is cheap. An occasional cron job can point out individual 
users who might be beyond what you'd consider reasonable, and to 
those users, apply a LART.
-- 
  http://rob0.nodns4.us/ -- system administration and consulting
  Offlist GMX mail is seen only if "/dev/rob0" is in the Subject:



More information about the dovecot mailing list