Hello
I try to install quota per usr, everything seems fine but the quota is not working
Dovecot : 2.2.13
dovecot-ldap.conf.ext
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 }
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)
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,
-----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-----
# 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@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@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-----
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Mon, 2 Mar 2015, Jean-François Sénéchal wrote:
protocol lmtp { mail_plugins = " quota quota"
^^^^^^^^
it's added twice
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=%$
Mar 2 11:41:58 domaine dovecot: imap: Debug: Added userdb setting: plugin/quota_rule=*:bytes=0
what's the content of siroco's LDAP entry? Esp. gosaMailQuota.
Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1
iQEVAwUBVPRZhHz1H7kL/d9rAQL+FwgAv6T9+fp4JeVdox9Ct3SbNMZUvU7lMLZO MBuZQCMgcov72VR6Kx/c5EGC7qXZA8sIW6PZNQOuAtEWEDJu9XCmy5JA3xBhFvwx ox8v08AUu2WVF0rxu+ABFdv0jvXlp1f2ditaI/45dfynbn2HHfVclliFk5mU9gii UhBJ8w22m0of82RLMIEgcViJbH8swJHjOxY+dx6mxkq2IgJkxo6ST3s7btaibYUH Rxxjqij4NhRKl3Cq/yft4ygQRNytAEk9k7lPrLfGt+hnxhv2L8SFBWdC/ozm8olW psEoCkPJz9ihcW0Wd/5aQg+8OeWSrSHYY+XpnxK12VmOruaOvl8crg== =+N1X -----END PGP SIGNATURE-----
now dovecot -n give
protocol lmtp { mail_plugins = " quota" postmaster_address = jf@marche.be }
But nothing change
in gosaMailQuota I set size in ko bytes
gosaMailQuota : 100000
Le 02/03/15 13:37, Steffen Kaiser a écrit :
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Mon, 2 Mar 2015, Jean-François Sénéchal wrote:
protocol lmtp { mail_plugins = " quota quota"
^^^^^^^^
it's added twice
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=%$
Mar 2 11:41:58 domaine dovecot: imap: Debug: Added userdb setting: plugin/quota_rule=*:bytes=0
what's the content of siroco's LDAP entry? Esp. gosaMailQuota.
- -- Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1
iQEVAwUBVPRZhHz1H7kL/d9rAQL+FwgAv6T9+fp4JeVdox9Ct3SbNMZUvU7lMLZO MBuZQCMgcov72VR6Kx/c5EGC7qXZA8sIW6PZNQOuAtEWEDJu9XCmy5JA3xBhFvwx ox8v08AUu2WVF0rxu+ABFdv0jvXlp1f2ditaI/45dfynbn2HHfVclliFk5mU9gii UhBJ8w22m0of82RLMIEgcViJbH8swJHjOxY+dx6mxkq2IgJkxo6ST3s7btaibYUH Rxxjqij4NhRKl3Cq/yft4ygQRNytAEk9k7lPrLfGt+hnxhv2L8SFBWdC/ozm8olW psEoCkPJz9ihcW0Wd/5aQg+8OeWSrSHYY+XpnxK12VmOruaOvl8crg== =+N1X -----END PGP SIGNATURE-----
El 02/03/2015 a las 10:01 a.m., Jean-François Sénéchal escibió:
now dovecot -n give
protocol lmtp { mail_plugins = " quota" postmaster_address = jf@marche.be }
But nothing change
in gosaMailQuota I set size in ko bytes
gosaMailQuota : 100000
Maildir controls qutoa using a file, in your case will be ~/Maildir/maildirzise. The first line on the file tell you the mailbox limits of sapace (in bytes) and files. Check of this is enforced or not. Maybe dovecot only reads the ldap quota value when this file is not present, because it may be modified by another program (an mta for example)
Le 02/03/15 13:37, Steffen Kaiser a écrit : On Mon, 2 Mar 2015, Jean-François Sénéchal wrote:
protocol lmtp { mail_plugins = " quota quota"
^^^^^^^^
it's added twice
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=%$
Mar 2 11:41:58 domaine dovecot: imap: Debug: Added userdb setting: plugin/quota_rule=*:bytes=0
what's the content of siroco's LDAP entry? Esp. gosaMailQuota.
-- Steffen Kaiser
Content maildirsize :
cat Maildir/maildirsize 0S 181243879 2032 19202 1 14239 1 31954 1
Le 02/03/15 14:21, Juan Bernhard a écrit :
El 02/03/2015 a las 10:01 a.m., Jean-François Sénéchal escibió:
now dovecot -n give
protocol lmtp { mail_plugins = " quota" postmaster_address = jf@marche.be }
But nothing change
in gosaMailQuota I set size in ko bytes
gosaMailQuota : 100000
Maildir controls qutoa using a file, in your case will be ~/Maildir/maildirzise. The first line on the file tell you the mailbox limits of sapace (in bytes) and files. Check of this is enforced or not. Maybe dovecot only reads the ldap quota value when this file is not present, because it may be modified by another program (an mta for example)
Le 02/03/15 13:37, Steffen Kaiser a écrit : On Mon, 2 Mar 2015, Jean-François Sénéchal wrote:
protocol lmtp { mail_plugins = " quota quota" ^^^^^^^^ it's added twice
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=%$ > > Mar 2 11:41:58 domaine dovecot: imap: Debug: Added userdb setting: > plugin/quota_rule=*:bytes=0 what's the content of siroco's LDAP entry? Esp. gosaMailQuota.
-- Steffen Kaiser
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Mon, 2 Mar 2015, Jean-François Sénéchal wrote:
Content maildirsize :
cat Maildir/maildirsize 0S
^^^^^^^^^
181243879 2032 19202 1 14239 1 31954 1
Le 02/03/15 14:21, Juan Bernhard a écrit :
El 02/03/2015 a las 10:01 a.m., Jean-François Sénéchal escibió:
now dovecot -n give
protocol lmtp { mail_plugins = " quota" postmaster_address = jf@marche.be }
But nothing change
in gosaMailQuota I set size in ko bytes
gosaMailQuota : 100000
Maildir controls qutoa using a file, in your case will be ~/Maildir/maildirzise. The first line on the file tell you the mailbox limits of sapace (in bytes) and files. Check of this is enforced or not. Maybe dovecot only reads the ldap quota value when this file is not present, because it may be modified by another program (an mta for example)
Le 02/03/15 13:37, Steffen Kaiser a écrit : On Mon, 2 Mar 2015, Jean-François Sénéchal wrote:
protocol lmtp { mail_plugins = " quota quota" ^^^^^^^^ it's added twice
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=%$ >> >> Mar 2 11:41:58 domaine dovecot: imap: Debug: Added userdb setting: >> plugin/quota_rule=*:bytes=0 what's the content of siroco's LDAP entry? Esp. gosaMailQuota.
-- Steffen Kaiser
Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1
iQEVAwUBVPRpjnz1H7kL/d9rAQKKTQf/VbOUb2kLKWJgvaFAgPY7ze51VhE1Vxg0 WbgZJ366aTDXhGozPSpEtfJlLF0gFYl6pK5+TQWv+AOdfGbcuhFQVZXIcclm5u8R O2nsf9/Q9JQT3tDDHQ78XCSAsBb+gVMYBxL66Gqi0qddbwAcTfMNUaXRGSQn/0z2 ZLIPhRktnmpIqpqLDXU7MtGwXNa1lVxRtpE2EXqwe40CqyFWsmKw0bWCZHkG1zmr s+w85LBHFVJlW4sCVN5KOjqyTiC8c78Lfuv05eQW/qN9wM83RAz0S/DLv8AnYgAa YL8MhSb9s8tEbeyPOpMSi+hsxQpldiwqEx0ftoO09aNrccuVWpd+3Q== =sVwD -----END PGP SIGNATURE-----
El 02/03/2015 a las 10:39 a.m., Jean-François Sénéchal escibió:
Content maildirsize :
cat Maildir/maildirsize 0S The quota is set to unlimited. (0S) Try to remove the file and check if the new values are taken when a new mail arrives (or do a doveadm quota recalc)
The wiki will explain more about this file: http://wiki2.dovecot.org/Quota/Maildir
Saludos, Juan.
181243879 2032 19202 1 14239 1 31954 1
Le 02/03/15 14:21, Juan Bernhard a écrit :
El 02/03/2015 a las 10:01 a.m., Jean-François Sénéchal escibió:
now dovecot -n give
protocol lmtp { mail_plugins = " quota" postmaster_address = jf@marche.be }
But nothing change
in gosaMailQuota I set size in ko bytes
gosaMailQuota : 100000
Maildir controls qutoa using a file, in your case will be ~/Maildir/maildirzise. The first line on the file tell you the mailbox limits of sapace (in bytes) and files. Check of this is enforced or not. Maybe dovecot only reads the ldap quota value when this file is not present, because it may be modified by another program (an mta for example)
Le 02/03/15 13:37, Steffen Kaiser a écrit : On Mon, 2 Mar 2015, Jean-François Sénéchal wrote:
protocol lmtp { mail_plugins = " quota quota" ^^^^^^^^ it's added twice
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=%$ >> >> >> Mar 2 11:41:58 domaine dovecot: imap: Debug: Added userdb setting: >> plugin/quota_rule=*:bytes=0 what's the content of siroco's LDAP entry? Esp. gosaMailQuota.
-- Steffen Kaiser
I deleted
doveadm quota recalc -u siroco Send a new mail
But nothing change
it's always 0S
Is there is error here :
user_attrs = homeDirectory=home,uidNumber=uid,gidNumber=gid,gosaMailQuota=quota_rule=*:bytes=%$
?
Thnaks
Mar 2 15:02:12 domaine dovecot: auth: Debug: userdb out: USER#0111#011siroco#011home=/var/spool/dovecot/mail/s/siroco#011uid=5000#011gid=5000#011quota_rule=*:bytes=0 Mar 2 15:02:19 domaine dovecot: auth: Debug: master in: USER#0111#011siroco#011service=doveadm Mar 2 15:02:19 domaine dovecot: auth: Debug: ldap(siroco): user search: base=ou=Users,ou=Citoyens,dc=marche,dc=be scope=subtree filter=(&(objectClass=posixAccount)(uid=siroco)) fields=homeDirectory,uidNumber,gidNumber,gosaMailQuota Mar 2 15:02:19 domaine dovecot: auth: Debug: ldap(siroco): result: gosaMailQuota=0 homeDirectory=/var/spool/dovecot/mail/s/siroco gidNumber=5000 uidNumber=5000; homeDirectory,uidNumber,gidNumber,gosaMailQuota unused Mar 2 15:02:19 domaine dovecot: auth: Debug: ldap(siroco): result: gosaMailQuota=0 homeDirectory=/var/spool/dovecot/mail/s/siroco gidNumber=5000 uidNumber=5000 Mar 2 15:02:19 domaine dovecot: auth: Debug: userdb out: USER#0111#011siroco#011home=/var/spool/dovecot/mail/s/siroco#011uid=5000#011gid=5000#011quota_rule=*:bytes=0 Mar 2 15:05:01 domaine /USR/SBIN/CRON[6447]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1) Mar 2 15:05:14 domaine postfix/anvil[6417]: statistics: max connection rate 1/60s for (smtp:172.17.1.244) at Mar 2 15:01:54 Mar 2 15:05:14 domaine postfix/anvil[6417]: statistics: max connection count 1 for (smtp:172.17.1.244) at Mar 2 15:01:54 Mar 2 15:05:14 domaine postfix/anvil[6417]: statistics: max cache size 1 at Mar 2 15:01:54 Mar 2 15:05:26 domaine dovecot: auth: Debug: Loading modules from directory: /usr/lib/dovecot/modules/auth Mar 2 15:05:26 domaine dovecot: auth: Debug: Loading modules from directory: /usr/lib/dovecot/modules/auth Mar 2 15:05:26 domaine dovecot: auth: Debug: Module loaded: /usr/lib/dovecot/modules/auth/libauthdb_ldap.so Mar 2 15:05:26 domaine dovecot: auth: Debug: Read auth token secret from /var/run/dovecot/auth-token-secret.dat Mar 2 15:05:26 domaine dovecot: auth: Debug: master in: USER#0111#011siroco#011service=doveadm Mar 2 15:05:26 domaine dovecot: auth: Debug: ldap(siroco): user search: base=ou=Users,ou=Citoyens,dc=marche,dc=be scope=subtree filter=(&(objectClass=posixAccount)(uid=siroco)) fields=homeDirectory,uidNumber,gidNumber,gosaMailQuota Mar 2 15:05:26 citoyen2015 dovecot: auth: Debug: ldap(siroco): result: gosaMailQuota=0 homeDirectory=/var/spool/dovecot/mail/s/siroco gidNumber=5000 uidNumber=5000; homeDirectory,uidNumber,gidNumber,gosaMailQuota unused Mar 2 15:05:26 domaine dovecot: auth: Debug: ldap(siroco): result: gosaMailQuota=0 homeDirectory=/var/spool/dovecot/mail/s/siroco gidNumber=5000 uidNumber=5000 Mar 2 15:05:26 domaine dovecot: auth: Debug: userdb out: USER#0111#011siroco#011home=/var/spool/dovecot/mail/s/siroco#011uid=5000#011gid=5000#011quota_rule=*:bytes=0
Le 02/03/15 14:56, Juan Bernhard a écrit :
El 02/03/2015 a las 10:39 a.m., Jean-François Sénéchal escibió:
Content maildirsize :
cat Maildir/maildirsize 0S The quota is set to unlimited. (0S) Try to remove the file and check if the new values are taken when a new mail arrives (or do a doveadm quota recalc)
The wiki will explain more about this file: http://wiki2.dovecot.org/Quota/Maildir
Saludos, Juan.
181243879 2032 19202 1 14239 1 31954 1
Le 02/03/15 14:21, Juan Bernhard a écrit :
El 02/03/2015 a las 10:01 a.m., Jean-François Sénéchal escibió:
now dovecot -n give
protocol lmtp { mail_plugins = " quota" postmaster_address =jf@marche.be }
But nothing change
in gosaMailQuota I set size in ko bytes
gosaMailQuota : 100000
Maildir controls qutoa using a file, in your case will be ~/Maildir/maildirzise. The first line on the file tell you the mailbox limits of sapace (in bytes) and files. Check of this is enforced or not. Maybe dovecot only reads the ldap quota value when this file is not present, because it may be modified by another program (an mta for example)
Le 02/03/15 13:37, Steffen Kaiser a écrit : On Mon, 2 Mar 2015, Jean-François Sénéchal wrote:
> protocol lmtp { > mail_plugins = " quota quota" ^^^^^^^^ it's added twice
> 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=%$ >>> >>> >>> Mar 2 11:41:58 domaine dovecot: imap: Debug: Added userdb setting: >>> plugin/quota_rule=*:bytes=0 what's the content of siroco's LDAP entry? Esp. gosaMailQuota.
-- Steffen Kaiser
I have found
I have replace gosaMailQuota=quota_rule=*:bytes=%$ by gosaMailQuota=quota_rule=*:storage=%$M
Le 02/03/15 14:56, Juan Bernhard a écrit :
El 02/03/2015 a las 10:39 a.m., Jean-François Sénéchal escibió:
Content maildirsize :
cat Maildir/maildirsize 0S The quota is set to unlimited. (0S) Try to remove the file and check if the new values are taken when a new mail arrives (or do a doveadm quota recalc)
The wiki will explain more about this file: http://wiki2.dovecot.org/Quota/Maildir
Saludos, Juan.
181243879 2032 19202 1 14239 1 31954 1
Le 02/03/15 14:21, Juan Bernhard a écrit :
El 02/03/2015 a las 10:01 a.m., Jean-François Sénéchal escibió:
now dovecot -n give
protocol lmtp { mail_plugins = " quota" postmaster_address = jf@marche.be }
But nothing change
in gosaMailQuota I set size in ko bytes
gosaMailQuota : 100000
Maildir controls qutoa using a file, in your case will be ~/Maildir/maildirzise. The first line on the file tell you the mailbox limits of sapace (in bytes) and files. Check of this is enforced or not. Maybe dovecot only reads the ldap quota value when this file is not present, because it may be modified by another program (an mta for example)
Le 02/03/15 13:37, Steffen Kaiser a écrit : On Mon, 2 Mar 2015, Jean-François Sénéchal wrote:
> protocol lmtp { > mail_plugins = " quota quota" ^^^^^^^^ it's added twice
> 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=%$ >>> >>> >>> Mar 2 11:41:58 domaine dovecot: imap: Debug: Added userdb setting: >>> plugin/quota_rule=*:bytes=0 what's the content of siroco's LDAP entry? Esp. gosaMailQuota.
-- Steffen Kaiser
-- logomarche Jean-François Sénéchal Centre de Support Télématique Webmaster Rue des Carmes, 22 6900 Marche-en-Famenne Tél: 084/32 70 55 - Fax: 084/32 70 72 jean-francois.senechal@ac.marche.be <mailto:jean-francois.senechal@ac.marche.be>
Retrouvez-nous sur www.marche.be <http://www.marche.be> et sur logofacebook <https://www.facebook.com/pages/Ville-de-Marche-en-Famenne/152999594777489> Disclaimer <https://www.marche.be/disclaimer/> | SVP, pensez à notre environnement avant d'imprimer ce mail
participants (3)
-
Jean-François Sénéchal
-
Juan Bernhard
-
Steffen Kaiser