[Dovecot] Sendmail, procmail, dovecot and quota

Asheesh Laroia asheesh at asheesh.org
Tue Jan 8 19:33:39 EET 2008


On Tue, 8 Jan 2008, papi mac wrote:

> I have Fedora 7 from a standard installation running sendmail, procmail 
> and dovecot 1.0 installed on a single partition. I now need to set up 
> mail quotas for most of the users but not all. Just protecting 
> /var/spool/mail/$LOGNAME is probably good enough for me. Since I just 
> want mail quotas and the installation is on just 1 partition I don't 
> have an easy way to use file system quotas. By reading through the 
> dovecot documentation and list archives I have the feeling that this is 
> possible with the versions and setup I have. I would probably need a 
> main line like this (apart from other lines) per user mailbox that needs 
> to be managed:
>
> dirsize:/var/spool/mail/joe-user:storage 10240
>
> to give joe-user a 10 mb limit.

Full dislosure: I haven't actually used Dovecot's quotas. (-:

> Since this server is in production I don't have the luxury of 
> experimenting (extensively) on it.
>
> I have a question though that I have not been able to answer yet. If the 
> flow of mail goes from sendmail to procmail to the mailbox, how is it 
> possible for dovecot to implement quotas on the inbox? Or would dovecot 
> write something there that procmail has to honor?

If you use the Dovecot delivery agent called "deliver" as the last chain, 
it will bounce the mail or not depending on of the user is above quota.

-- Asheesh.

-- 
When the wind is great, bow before it;
when the wind is heavy, yield to it.


More information about the dovecot mailing list