[Dovecot] Per User Quotas
thedoghousemailcom
thedoghousemailcom at googlemail.com
Thu Oct 15 23:07:24 EEST 2009
Hi Peter,
this is my working dovecot-configuration:
Dovecot 1.2.4
dovecot.conf (extract)
----------------------
username_translation: @_._
passdb:
driver: ldap
args: /etc/dovecot-ldap.conf
userdb:
driver: ldap
args: /etc/dovecot-ldap-userdb.conf
userdb:
driver: static
args: uid=500 gid=500 home=/home/vmail/%Lu allow_all_users=yes
dovecot-ldap.conf
-------------------
hosts = 1.2.3.4 1.2.3.5
base = DC=first,DC=bank,DC=com
ldap_version = 3
auth_bind = yes
auth_bind_userdn = %u at first.bank.com
user_filter = (&(objectClass=person)(cn=%u))
user_attrs =
homeDirectory=home=/home/vmail/%Lu,description=quota_rule=*:bytes=%$
dovecot-ldap-userdb.conf
---------------------------
hosts = 1.2.3.4 1.2.3.5
base = DC=first,DC=bank,DC=com
ldap_version = 3
auth_bind = no
dn =first\domain-user
dnpass = password
user_filter = (&(objectClass=person)(userPrincipalName=%u at first.bank.com))
user_attrs = description=quota_rule=*:bytes=%$
Peter Fraser schrieb:
> OK this is what I now have.
> In dovecot.conf I put:
> userdb ldap {
> args = /usr/local/etc/dovecot-ldap.conf
> }
>
> In dovecot-ldap.conf:
> hosts = 192.168.1.97
> base = dc=atlas,dc=local
> auth_bind = yes
> scope = subtree
> auth_bind_userdn = atlas\%u
> user_filter = (&(objectClass=mailUser)(mail=%u))
> default_pass_scheme = CRYPT
> pass_filter = (&(objectclass=person)(uid=%u))
> pass_attrs = userPassword=password
> user_attrs = streetAddress=quota_rule=*:storage=%$M
> ,=uid=uid,=gid=gid,=home=/home/vmail/%u
>
> And the quota in street address of AD
>
> When I fire up thunderbird now, I see sending login information for a
> long time before it comes up and even when it does, I still see the
> general quota.
>
>
>
> On Thu, Oct 15, 2009 at 12:40 PM, Timo Sirainen <tss at iki.fi> wrote:
>
>> On Thu, 2009-10-15 at 19:36 +0200, thedoghousemailcom wrote:
>>
>>> Hi Peter + Timo,
>>>
>>> I think the solution is the right order in dovecot.conf:
>>>
>>> "userdb ldap" should stand in front of "userdb static".
>>>
>> Well, if that's done then userdb static is used only when user isn't
>> found from ldap. And I guess that should normally never happen..
>>
>>
>
>
More information about the dovecot
mailing list