[Dovecot] 1.0.10 - Getting user-quota from an Apple Open Directory?
Hello....
I'm running dovecot 1.0.10 with users in an LDAP database (Apples Open Directory).
In Open Directory, a users mail-info is saved as XML-formated data in the field apple-user-mailattribute as seen below. I want to extract the value key "kUserDiskQuota".
Nay ideas on how to accomplish this?
<?xml version="1.0" encoding="UTF-8"?> <dict> <key>kAPOPRequired</key> <string>APOPNotRequired</string> <key>kAltMailStoreLoc</key> <string></string> <key>kAttributeVersion</key> <string>Apple Mail 1.0</string> <key>kAutoForwardValue</key> <string></string> <key>kIMAPLoginState</key> <string>IMAPAllowed</string> <key>kMailAccountLocation</key> <string>blah.example.com</string> <key>kMailAccountState</key> <string>Enabled</string> <key>kPOP3LoginState</key> <string>POP3Deny</string> <key>kUserDiskQuota</key> <string>500</string> </dict>
Thanks, Tobias
Hello...
Maybe I could have a script extract the quota-data from the LDAP-server and save it in the file maildirsize in the users homes? Any thoughts on this approach?
Tobias
Tobias Balle-Petersen wrote:
On Feb 19, 2008, at 12:38 PM, Tobias Balle-Petersen wrote:
That's one possibility. Also if you don't use deliver, you could do
this for imap/pop3 in a post-login script that sets $QUOTA
environment. http://wiki.dovecot.org/PostLoginScripting
participants (2)
-
Timo Sirainen
-
Tobias Balle-Petersen