LDAP stored quota

Maciej Milaszewski IQ PL maciej.milaszewski at iq.pl
Thu Nov 22 10:44:37 EET 2018


Hi
Do you try recalc and get ?

On 22.11.2018 08:56, Vincent Seynhaeve wrote:
>
> Hello,
>
> I'm trying to set up LDAP stored quota on Dovecot but it doesn't work
> and doesn't get reported by the command doveadm quota get.
>
> I'm using the field departmentNumber in my LDAP server to store the quota.
>
>
> doveadm quota get -u test
>
> Quota name Type    Value
> Limit                                                                               
> %
> User quota STORAGE     0    
> -                                                                               
> 0
> User quota MESSAGE     0    
> -                                                                               
> 0
>
>
> log file associated with doveadm quota get command:
>
> Nov 21 11:38:47 imap dovecot: auth: Debug: master in:
> USER#0111#011test#011service=doveadm
> Nov 21 11:38:47 imap dovecot: auth: Debug: ldap(test): user search:
> base=ou=People,dc=example,dc=com scope=subtree
> filter=(&(objectClass=posixAccount)(uid=test)) fields=departmentNumber
> Nov 21 11:38:47 imap dovecot: auth: Debug: ldap(test): result:
> departmentNumber=1M; departmentNumber unused
> Nov 21 11:38:47 imap dovecot: auth: Debug: ldap(test): result:
> departmentNumber=1M
> Nov 21 11:38:47 imap dovecot: auth: Debug: userdb out:
> USER#0111#011test#011mailRoutingAddress=user =uid=vmail =gid=mail
> =home=/var/mail//test =quota_rule=*:bytes=1M
>
>
> Bellow my configuration files:
>
> conf.d/10-mail.conf
>
> mail_plugins =  $mail_plugins quota
>
>
> conf.d/20-imap.conf
>
>
> protocol imap {
>   mail_plugins = $mail_plugins imap_quota
> }
>
>
> conf.d/90-quota.conf
>
> plugin {
>
>   quota = maildir:User quota
>   quota_rule2 = Trash:storage=+100M
>   quota_grace = 10%%
>   quota_status_success = DUNNO
>   quota_status_nouser = DUNNO
>   quota_status_overquota = "552 5.2.2 Mailbox is full"
>
> }
>
>
> dovecot-ldap.conf.ext
>
> user_attrs= \
> =mailRoutingAddress=user \
> =uid=vmail \
> =gid=mail \
> =home=/var/mail/%d/%n \
> =quota_rule=*:bytes=%{ldap:departmentNumber}
>
>
> Can somebody help me with this or give me some advice for debugging?
>


-- 
Maciej Miłaszewski
IQ PL Sp. z o.o.
Administrator Systemowy

Biuro Obsługi Klienta:
e-mail: bok at iq.pl
tel.: +48 58 326 09 90 - 94
fax: +48 58 326 09 99

Dział pomocy: https://www.iq.pl/pomoc
Informacja dotycząca przetwarzania danych osobowych: https://www.iq.pl/kontakt
Jakość gwarantuje: ISO 9001:2000

IQ PL Sp. z o.o. z siedzibą w Gdańsku (80-298), ul. Geodetów 16, KRS 0000007725, Sąd rejestrowy: Sąd Rejonowy w Gdańsku VII Wydział KRS, 
kapitał zakładowy: 140.000 PLN, NIP 5832736211, REGON 192478853

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://dovecot.org/pipermail/dovecot/attachments/20181122/b7fed8a7/attachment.html>


More information about the dovecot mailing list