setting quota through IMAP
I'd like to set the quota of a user through the IMAP protocol. I use Pythons imaplib:
imap.setquota("test1m@uni.dtr", "(storage 8192)") ('NO', ['Quota can be changed only by admin.'])
So... which user is the "admin" user in a virtual user setting (passwd: PAM, userdb: LDAP)?
Greetings Daniel
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Fri, 19 Jun 2015, Daniel Tröder wrote:
I'd like to set the quota of a user through the IMAP protocol. I use Pythons imaplib:
imap.setquota("test1m@uni.dtr", "(storage 8192)") ('NO', ['Quota can be changed only by admin.'])
So... which user is the "admin" user in a virtual user setting (passwd: PAM, userdb: LDAP)?
You can't. Use a LDAP-Library to change the values in the UserDB directly, not via IMAP.
Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1
iQEVAwUBVYQkSHz1H7kL/d9rAQL2aggAvGuA2xjpUV5tDZAMjGTY7pfxU96nuqif Dlm6HoJpfk4H7cn4Yc5NXi5rExk45KSBWn5CffKES4nPeMOQ6o7Tc3H5zDEak1Iv iQGStBvSrKzML4tKz9n5j2GAertFYTvxk1bVAA9pJzmFO7HNWfOzxu3GypVEL4lU MYmHwR3emxCIU8FmWxLTiPqsvgLYHJDxRbE/usFWW6X79gUeBuA265SsmUB8OM9E qkUnMv1YZCWgxAXLC+I5W+F275pTyAc82roVZwuX4cJdA8VG2aLzQRG0lnYjxHuc 99IvRf3BJqOxtJVlVKk2I/rqNRiXqlvqVYduHm/VnrxJEsElPt9USw== =ykQL -----END PGP SIGNATURE-----
Am 19.06.2015 um 16:16 schrieb Steffen Kaiser:
On Fri, 19 Jun 2015, Daniel Tröder wrote:
I'd like to set the quota of a user through the IMAP protocol. I use Pythons imaplib:
imap.setquota("test1m@uni.dtr", "(storage 8192)") ('NO', ['Quota can be changed only by admin.'])
So... which user is the "admin" user in a virtual user setting (passwd: PAM, userdb: LDAP)?
You can't. Use a LDAP-Library to change the values in the UserDB directly, not via IMAP. Sure - I do anyway - this was just for a test-case I was writing. I'm curious though: in which scenario / IMAP-server does this work? Maybe in a setting with a root (uid=0) email user? Or with Cyrus (which has a admin user)?
Greetings Daniel
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Fri, 19 Jun 2015, Daniel Tröder wrote:
Am 19.06.2015 um 16:16 schrieb Steffen Kaiser:
On Fri, 19 Jun 2015, Daniel Tröder wrote:
I'd like to set the quota of a user through the IMAP protocol. I use Pythons imaplib:
imap.setquota("test1m@uni.dtr", "(storage 8192)") ('NO', ['Quota can be changed only by admin.'])
So... which user is the "admin" user in a virtual user setting (passwd: PAM, userdb: LDAP)?
You can't. Use a LDAP-Library to change the values in the UserDB directly, not via IMAP. Sure - I do anyway - this was just for a test-case I was writing. I'm curious though: in which scenario / IMAP-server does this work? Maybe in a setting with a root (uid=0) email user? Or with Cyrus (which has a admin user)?
Oh, it seems that Dictionary quota http://wiki2.dovecot.org/Quota/Dict handles SETQUOTA. This implementation does not support usual UserDBs, though.
The admin-status is described here: http://wiki2.dovecot.org/Quota/Configuration?highlight=%28admin%3D%29
Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1
iQEVAwUBVYetiXz1H7kL/d9rAQJlaAf/YXko3mn7Y2XMztMAgdV0oGHbjJHjQba/ 4IvLuQTsqsXiH9j7Hy/KysNEEFZMowA5MNJ9Ijg2d7Jn/Gd3vqSC55fV7I1QA0Sc 3tpsB1MIceOjIVUUnUzppABoU8qB7INCuSfaofAkeGpLdY9Kh7RELkTZhmjKsL8/ 6gR80nC6yYASltuhGY+gJjX9nSfsw/aRbpLfzzTt4sWJ6iM4XEawHvrAAxbb/kWF gBqfaWo305QwPsB61OhzUN4OiIjXkK149frRKHGZQDG2xY/X+bmU4eEvANIDdZz3 rzdODCxtX+YAWZW9OEEWStGDeiIX3Ovj5uWPBtrYoIUO527qVhqqNg== =pLuM -----END PGP SIGNATURE-----
participants (2)
-
Daniel Tröder
-
Steffen Kaiser