[Dovecot] Dovecot Quota Configuration

Timo Sirainen tss at iki.fi
Wed Dec 16 21:45:50 EET 2009


On Wed, 2009-12-16 at 08:34 +0530, Pattabi Prasanna wrote:
> Hi,
>   I edited the /etc/passwd file for one of user, but the quota is not taking
> effect for this user, the user is able to receive mails more than the quota
> allocated.
> 
> 
> testuser:x:515:516::/home/testuser:/bin/bash:userdb_quota_rule=*.bytes=3M
..
>   userdb:
>     driver: passwd

1) passwd backend doesn't support extra fields. There's just no way to
do what you want with it.

2) Modifying /etc/passwd the way you did could easily break other
programs. Using something like chsh to modify /etc/passwd could drop the
fields you added. I wouldn't recommend doing it.

3) You should probably be using userdb passwd-file. I guess you could
simply do userdb passwd-file { args = /etc/passwd } and the above
modification would work, but because of 2) I'd recommend using a
different file and figuring out some way to keep it in sync
with /etc/passwd.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20091216/abeefcd3/attachment.bin 


More information about the dovecot mailing list