Quota and ldap

Jean-François Sénéchal jean-francois.senechal at ac.marche.be
Mon Mar 2 11:28:46 UTC 2015


# 2.2.13: /etc/dovecot/dovecot.conf
# OS: Linux 3.2.0-4-amd64 x86_64 Debian 7.8
auth_debug = yes
auth_debug_passwords = yes
auth_mechanisms = plain login
auth_verbose = yes
auth_verbose_passwords = yes
imapc_features = rfc822.size fetch-headers
imapc_host = citoyen.marche.be
imapc_list_prefix = INBOX
imapc_master_user = cyrus
imapc_password = homer
imapc_user = %u
mail_debug = yes
mail_location = maildir:~/Maildir:LAYOUT=fs
mail_plugins = " quota"
mail_prefetch_count = 20
maildir_very_dirty_syncs = yes
managesieve_notify_capability = mailto
managesieve_sieve_capability = fileinto reject envelope 
encoded-character vacation subaddress comparator-i;ascii-numeric 
relational regex imap4flags copy include variables body enotify 
environment mailbox date ihave
namespace inbox {
   inbox = yes
   location =
   mailbox Drafts {
     auto = subscribe
     special_use = \Drafts
   }
   mailbox Junk {
     auto = subscribe
     special_use = \Junk
   }
   mailbox Sent {
     auto = subscribe
     special_use = \Sent
   }
   mailbox "Sent Messages" {
     special_use = \Sent
   }
   mailbox Trash {
     auto = subscribe
     special_use = \Trash
   }
   prefix =
   type = private
}
passdb {
   args = /etc/dovecot/dovecot-ldap.conf.ext
   driver = ldap
}
plugin {
   quota = maildir:User quota
   quota_grace = 10%%
   quota_rule = *:storage=150M
   quota_rule2 = Trash:storage=+100M
   sieve = ~/.dovecot.sieve
   sieve_dir = ~/sieve
}
postmaster_address = jf at marche.be
protocols = imap lmtp
service auth {
   unix_listener auth-userdb {
     group = vmail
     mode = 0666
     user = vmail
   }
}
service lmtp {
   unix_listener /var/spool/postfix/private/dovecot-lmtp {
     group = postfix
     mode = 0600
     user = postfix
   }
}
ssl_ca = </etc/dovecot/server-ca.crt
ssl_cert = </etc/dovecot/marche.be.crt
ssl_key = </etc/dovecot/private/marche.be.key
userdb {
   args = /etc/dovecot/dovecot-ldap.conf.ext
   driver = ldap
}
verbose_ssl = yes
protocol lmtp {
   mail_plugins = " quota quota"
   postmaster_address = jf at marche.be
}
protocol imap {
   mail_plugins = " quota imap_quota"
}


Le 02/03/15 12:17, Steffen Kaiser a écrit :
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On Mon, 2 Mar 2015, Jean-François Sénéchal wrote:
>
> please post output of dovecont -n
>
>>
>> user_attrs = 
>> homeDirectory=home,uidNumber=uid,gidNumber=gid,gosaMailQuota=quota_rule=*:bytes=%$
>>
>> 10-mail.conf
>>
>> mail_location = maildir:~/Maildir:LAYOUT=fs
>> mail_plugins = $mail_plugins quota
>>
>> /10-master.conf
>>
>> service lmtp {
>>  unix_listener /var/spool/postfix/private/dovecot-lmtp {
>>    group = postfix
>>    mode = 0600
>>    user = postfix
>>  }
>>
>>
>> 20-imapd.conf
>>
>> protocol imap {
>>  mail_plugins = $mail_plugins imap_quota
>> }
>>
>>
>> 20-lmtp.conf
>>
>> protocol lmtp {
>>  mail_plugins = $mail_plugins quota
>> }
>
> This looks like quota is added twice.
>
>> 90-quota.conf
>>
>> plugin {
>>  quota_rule = *:storage=150M
>>  quota_rule2 = Trash:storage=+100M
>>  quota_grace = 10%%
>> }
>>
>> plugin {
>>  quota = maildir:User quota
>> }
>>
>> Command doveadm quota recalc
>> return nothing (no error)
>
> you need -u user or -A
>
> also try:
>
> doveadm quota get -u siroco
>
>
>> My log
>>
>> Mar  2 11:41:58 domaine dovecot: imap-login: Login: user=<siroco>, 
>> method=PLAIN, rip=::1, lip=::1, mpid=3695, secured, 
>> session=<X+Yi3ksQdAAAAAAAAAAAAAAAAAAAAAAB>
>> Mar  2 11:41:58 domaine dovecot: imap: Debug: Loading modules from 
>> directory: /usr/lib/dovecot/modules
>> Mar  2 11:41:58 domaine dovecot: imap: Debug: Module loaded: 
>> /usr/lib/dovecot/modules/lib10_quota_plugin.so
>> Mar  2 11:41:58 domaine dovecot: imap: Debug: Module loaded: 
>> /usr/lib/dovecot/modules/lib11_imap_quota_plugin.so
>> Mar  2 11:41:58 domaine dovecot: imap: Debug: Added userdb setting: 
>> plugin/quota_rule=*:bytes=0
>> Mar  2 11:41:58 domaine dovecot: imap(siroco): Debug: Effective 
>> uid=5000, gid=5000, home=/var/spool/dovecot/mail/s/siroco
>> Mar  2 11:41:58 domaine dovecot: imap(siroco): Debug: Quota root: 
>> name=User quota backend=maildir args=
>> Mar  2 11:41:58 domaine dovecot: imap(siroco): Debug: Quota rule: 
>> root=User quota mailbox=* bytes=0 messages=0
>> Mar  2 11:41:58 domaine dovecot: imap(siroco): Debug: Quota rule: 
>> root=User quota mailbox=Trash bytes=+104857600 messages=0
>> Mar  2 11:41:58 domaine dovecot: imap(siroco): Debug: Quota grace: 
>> root=User quota bytes=0 (10%)
>> Mar  2 11:41:58 domaine dovecot: imap(siroco): Debug: Namespace 
>> inbox: type=private, prefix=, sep=, inbox=yes, hidden=no, list=yes, 
>> subscriptions=yes location=maildir:~/Maildir:LAYOUT=fs
>> Mar  2 11:41:58 domaine dovecot: imap(siroco): Debug: fs: 
>> root=/var/spool/dovecot/mail/s/siroco/Maildir, index=, indexpvt=, 
>> control=, inbox=/var/spool/dovecot/mail/s/siroco/Maildir,
>>
>
> - -- Steffen Kaiser
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1
>
> iQEVAwUBVPRGrnz1H7kL/d9rAQJC8wf+N74Pc8y4LsgrLtIEWvb7jkwbhbYIpijN
> lmZN2ZGZroDbfDB6ieXPP6lSz7c6dUfDmVDDlq1R280FzXRfyEU08jdxs4G3/NuM
> IA9kw2IPpyZdk4sKDDA2rNYxN7SJa+v8V3ab4TFP7LFEsLDZJlZVwo6+ugcjWhSe
> DErBwSKTsqKUnBwStQZyHow5hV8PhSDI3Dj4Mp2L3WncpUPsEIFeB/6PKDphnnN7
> nFzADtS67rLDR1KMGvVv/7RKysbs9a7IhdN3YDywWfgoDlSEFNIhM4DFNBiPvm/P
> jhOGq25KpPnm2mI5MumNnZW4UlJN1KpEc6iko2XA4ABaWhQgE1FOLg==
> =91Zl
> -----END PGP SIGNATURE-----




More information about the dovecot mailing list