Skip to content

[FR] Quota for LDAP account is working #2957

@Marsu31

Description

@Marsu31

Feature Request

Context

Quota with LDAP configuration.

Is your Feature Request related to a Problem?

Yes. Quota is disabled if LDAP.

Describe the Solution you'd like

Permit quota if LDAP.

Are you going to implement it?

No but ...

What are you going to contribute?? What have you done already?

I tried to configure quota with LDAP and it works :

  1. activate quota like in account provisioner of type file (default behaviour). This is done inside running container.
  2. configure quota in LDAP. I'm using postfix-book schema within OenLDAP.
    1. create a user with object class PostfixBookMailAccount (for mail attributes)
    2. fill mailQuota attribute, for example 100M.
  3. add the following attribute to DOVECOT_USER_ATTRS : =quota_rule=*:storage=%{ldap:mailQuota}

I tested this configuration sending mail mails which are bigger than quota, they were rejected. Thunderbird detects too the mail box quota.

What you have to do, almost nothing 😉 :

  1. Allow quota for LDAP account provisioner
  2. Add few lines to documentation with my sample.

Regards.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions