[Dovecot] quota infor @ wiki page

OpenMacNews openmacnews at gmail.com
Fri Sep 8 17:39:27 EEST 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

hi matthias,

reading the dovecot wiki page:

	http://wiki.dovecot.org/Quota

that, apparently, you last edited (created?):

	Quota (last edited 2006-06-13 15:27:38 by MatthiasAndree)

i note:

"
	plugin {
	  # 10 MB quota limit
	  quota = maildir:storage=10240
	  # 1000 messages quota limit
	  quota = maildir:messages=1000
	  # 10 MB + 1000 messages quota limit
	  quota = maildir:storage=10240:messages=1000
	}
	
	The above example shows how to set the same quota globally for 
everyone. You can override this for one or all users by returning a 
quota field from the user database. See UserDatabase for more 
information about how to set them for the user database you are using. 
Here is an example using a SQL-based user database:
"

i'm (currently) attempting to assign per-user quotas in a 'userdb 
static' scenario, where, in my dovecot.conf, i've:

protocol imap {
	...
	plugin {
		quota = maildir:storage=10240
	}
	...
}

	auth default {
		...
		passdb passwd-file {
			args = /var/MailServer/Data/USERS/imap.users
		}
		userdb static {
			args = static uid=300 gid=300 
home=/var/MailServer/Mail/Dovecot/Domains/%d/Accounts/%n nice=10
		}
		...
	}


so, per 'your' suggestion @ the wiki page, i nav to:

	http://wiki.dovecot.org/UserDatabase

then:

	http://wiki.dovecot.org/AuthDatabase/PasswdFile

where the example for userdb is given as:

	Or for passdb and userdb:
	user:{plain}pass:1000:1000::/home/user::mail=maildir:~/Maildir 
allow_nets=192.168.0.0/24

which, iiuc, would 'translate' to quota in my scenario as, in the 
"/var/MailServer/Data/USERS/imap.users" file:

		user:{plain}pass::::::quota=maildir:storage=4096

Unfortunately, when I do make this change, dovecot starts without 
error, BUT the given user's QUOTA *remains* at the global setting of 
(in this example) '10240'.

i.e., the per-user override is, seemingly, not recognized.

i'd make an add/change/comment *to* the wiki page, but it's set as an 
"Immutable Page".

can you, perhaps, comment/clarify?  any suggestions?

many thanks!

richard

- -- 

/"\
\ /  ASCII Ribbon Campaign
 X   against HTML email, vCards
/ \  & micro$oft attachments

[GPG] OpenMacNews at gmail dot com
fingerprint: 50C9 1C46 2F8F DE42 2EDB  D460 95F7 DDBD 3671 08C6
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iEYEARECAAYFAkUBgJ8ACgkQlffdvTZxCMYHrQCaAtvv9WvetLoA0BVd8lLfIHa0
rosAoL3l3rNuBHwwJ+sLi3qqT4fw50bH
=wl2c
-----END PGP SIGNATURE-----



More information about the dovecot mailing list