Re: Dovecot/doveadm quota

2020-02-12 Thread Martynas Bendorius
In webhosting customers usually see their physical disk usage used (quota on filesystem), and it causes a lot of confusion when numbers don't match with doveadm quota at all. What's your opinion on these: 1) Should indexes (including FTS indexes stored in Maildir) be counted in the mail quota?

Re: Dovecot/doveadm quota

2020-02-12 Thread Aki Tuomi
I think that most admins do not really care about physical disk usage as long as it's not exceeded, and most service providers prefer calculating quota against apparent usage instead of real usage, so they can charge you for that. Aki On 8.2.2020 18.16, Martynas Bendorius wrote: > Doesn't it curr

Re: Dovecot/doveadm quota

2020-02-08 Thread Martynas Bendorius
Doesn't it currently confuse them? Because they'd reach their quota, while actually there would be a lot of disk space left :) + their whole mailbox could take a lot more space due to indexes and other files in the filesystem, and quota would not be reached. Also, I've dovecot is using fstat's

Re: Dovecot/doveadm quota

2020-02-08 Thread Max Kostikov
I think these changes will confuse users because calculated quota wouldn't be equals with total messages sizes. Marsistynas Bendorius писал 2020-02-07 11:07: Is there any reason why dovecot relies on S= instead of real disk size email takes? 1) compressed mails take less than than the S= speci

Dovecot/doveadm quota

2020-02-07 Thread Martynas Bendorius
Hello, Is there any reason why dovecot relies on S= instead of real disk size email takes? 1) compressed mails take less than than the S= specified 2) we could avoid using "S=" for the lookups and count every file there, including indexes and mails without S=... if we'd read filesizes Eample:

Re: [Dovecot] doveadm quota get -A via doveadm-proxy director with LDAP

2012-11-10 Thread Ramón Frontera
Hi, I think that the problem is different to http://dovecot.org/list/dovecot/2012-October/069100.html The command don't print anything in backend mail server dovecot.log. If I do " doveadm -D quota get -u user1" on proxy it works! the backend mail server responds to proxy. If I do: doveadm

Re: [Dovecot] doveadm quota get -A via doveadm-proxy director with LDAP

2012-11-09 Thread Daniel Parthey
Ramon Frontera wrote: > We are running Dovecot 2.1.10 > I want configure dovecot to do execute doveadm commands on the proxy server. > We have 1 proxy with director and 2 mail servers. we use LDAP > when I try to do doveadm quota get -u user it works fine. > The problem is when I try to do doveadm

[Dovecot] doveadm quota get -A via doveadm-proxy director with LDAP

2012-11-09 Thread Ramon Frontera
Hi, We are running Dovecot 2.1.10 I want configure dovecot to do execute doveadm commands on the proxy server. We have 1 proxy with director and 2 mail servers. we use LDAP when I try to do doveadm quota get -u user it works fine. The problem is when I try to do doveadm quota get -A ON PROXY I hav

Re: [Dovecot] doveadm quota does not list all accounts

2011-12-20 Thread Nikolaos Milas
On 20/12/2011 12:15 μμ, Timo Sirainen wrote: > Perhaps: iterate_filter = (uid=*) Actually, the current default iterate_filter is fine, if you look at the default pass/user filters: #user_filter = (&(objectClass=posixAccount)(uid=%u)) #pass_filter = (&(objectClass=posixAccount)(uid=%u)) This

Re: [Dovecot] doveadm quota does not list all accounts

2011-12-20 Thread Nikolaos Milas
On 20/12/2011 10:57 πμ, Timo Sirainen wrote: On Tue, 2011-12-20 at 10:47 +0200, Nikolaos Milas wrote: So I added in the LDAP setup: iterate_filter = (objectClass=*) and now everything works fine! Isn't that basically the same as an empty filter? And I forgot to answer: Yes, (objectCla

Re: [Dovecot] doveadm quota does not list all accounts

2011-12-20 Thread Timo Sirainen
On Tue, 2011-12-20 at 12:13 +0200, Timo Sirainen wrote: > > I agree that the default should be changed to empty. > > But that also returns non-user results, like at least in my test setup > it returns an organization and admin. .. > Perhaps: iterate_filter = (uid=*) Actually, the current default

Re: [Dovecot] doveadm quota does not list all accounts

2011-12-20 Thread Timo Sirainen
On Tue, 2011-12-20 at 12:06 +0200, Nikolaos Milas wrote: > > Isn't that basically the same as an empty filter? What other types of > > objectClasses are there with user accounts? Perhaps the default should > > be changed to empty, or maybe to (uid=*) > > > > I agree that the default should be cha

Re: [Dovecot] doveadm quota does not list all accounts

2011-12-20 Thread Nikolaos Milas
On 20/12/2011 10:57 πμ, Timo Sirainen wrote: On Tue, 2011-12-20 at 10:47 +0200, Nikolaos Milas wrote: So I added in the LDAP setup: iterate_filter = (objectClass=*) and now everything works fine! Isn't that basically the same as an empty filter? What other types of objectClasses are the

Re: [Dovecot] doveadm quota does not list all accounts

2011-12-20 Thread Timo Sirainen
On Tue, 2011-12-20 at 10:47 +0200, Nikolaos Milas wrote: > On 20/12/2011 10:15 πμ, Timo Sirainen wrote: > > > Try adding (objectClass=posixAccount) as filter in the ldapsearch. > > That's the default iterate_filter. > > We've caught it! Only the returned (30) accounts include the > posixAccount

Re: [Dovecot] doveadm quota does not list all accounts

2011-12-20 Thread Nikolaos Milas
On 20/12/2011 10:15 πμ, Timo Sirainen wrote: Try adding (objectClass=posixAccount) as filter in the ldapsearch. That's the default iterate_filter. We've caught it! Only the returned (30) accounts include the posixAccount objectClass! So I added in the LDAP setup: iterate_filter = (objec

Re: [Dovecot] doveadm quota does not list all accounts

2011-12-20 Thread Timo Sirainen
On Tue, 2011-12-20 at 10:10 +0200, Nikolaos Milas wrote: > On 20/12/2011 7:41 πμ, Timo Sirainen wrote: > > > Can you try if changing it back helps? Or by running the same LDAP query > > using ldapsearch. Is there a reason why you changed the scope? (I'm not > > entirely sure what the LDAP scheme

Re: [Dovecot] doveadm quota does not list all accounts

2011-12-20 Thread Nikolaos Milas
I resend, because I forgot to change the true domain once and the previous message would appear to include inconsistencies... Sorry for this... On 20/12/2011 7:41 πμ, Timo Sirainen wrote: Can you try if changing it back helps? Or by running the same LDAP query using ldapsearch. Is there a re

Re: [Dovecot] doveadm quota does not list all accounts

2011-12-20 Thread Nikolaos Milas
On 20/12/2011 7:41 πμ, Timo Sirainen wrote: Can you try if changing it back helps? Or by running the same LDAP query using ldapsearch. Is there a reason why you changed the scope? (I'm not entirely sure what the LDAP schemes usually look like..) Hi Timo, The same query, using ldapsearch (wi

Re: [Dovecot] doveadm quota does not list all accounts

2011-12-19 Thread Timo Sirainen
On 16.12.2011, at 0.00, Nikolaos Milas wrote: > I am running dovecot-2.0.13-1_128.el5 x86_64 RPM on CentOS 5.7. > > All accounts are virtual, hosted on LDAP Server. > > My problem is that the command: > > doveadm quota get -A > > stopped listing all accounts. I think this problem started aft

Re: [Dovecot] doveadm quota does not list all accounts

2011-12-15 Thread ml
Le 2011-12-15 23:00, Nikolaos Milas a écrit : Hello, I am running dovecot-2.0.13-1_128.el5 x86_64 RPM on CentOS 5.7. All accounts are virtual, hosted on LDAP Server. My problem is that the command: doveadm quota get -A stopped listing all accounts. I think this problem started after I cha

[Dovecot] doveadm quota does not list all accounts

2011-12-15 Thread Nikolaos Milas
Hello, I am running dovecot-2.0.13-1_128.el5 x86_64 RPM on CentOS 5.7. All accounts are virtual, hosted on LDAP Server. My problem is that the command: doveadm quota get -A stopped listing all accounts. I think this problem started after I changed in LDAP lookup configuration from "scope

Re: [Dovecot] 'doveadm quota get' dictionary SQL query ignores specified '@domain' part of username. bad config or bug?

2011-10-19 Thread Rich
I've made some progress, but quota 'Limit' is still not fully functioning for me. A couple of changes have helped: Specifying a "%u% as username format, /etc/dovecot/conf.d/90-quota.conf plugin { - quota = dict:User Quota::proxy::quota +

[Dovecot] 'doveadm quota get' dictionary SQL query ignores specified '@domain' part of username. bad config or bug?

2011-10-18 Thread Rich
Hi, I'm setting up SQL quota usage in Dovecot2. I've created a MAILBOX parameter table, 'PARAMS', that contains unique @ pairs, with quota data. mysql> select * from PARAMS; ++++-++ | ai | MA

Re: [Dovecot] doveadm quota get -u segmentation fault

2010-12-30 Thread Timo Sirainen
On Fri, 2010-12-24 at 14:16 +0300, subscri...@viliar.net.ru wrote: > I get segfault error with "doveadm quota get -u user" Fixed the crash by having it give error message instead: http://hg.dovecot.org/dovecot-2.0/rev/a293626e09e2 Then fix your config: > plugin { quota = maildir > autocrea

[Dovecot] doveadm quota get -u segmentation fault

2010-12-24 Thread subscriber
Hello! I'm trying move to dovecot2 (centos 5.5, dovecot 2.0.8, dovecot compiled/packaged via edited dovecot2.spec from fedora git). Almost all fine, I can login via imap/pop3 and work with mail. I get segfault error with "doveadm quota get -u user" Here backtrace and other info: # gdb `which d

Re: [Dovecot] doveadm quota recalc don't work

2010-09-24 Thread Timo Sirainen
On 24.9.2010, at 22.51, Thiago Henrique wrote: > I use 'mdbox' as mailbox format, but my quota backend is 'maildir'. Is > there a problem? You can't use Maildir++ quota with mdbox. I guess I should make it give an error.. Use dict quota with file backend instead.

[Dovecot] doveadm quota recalc don't work

2010-09-24 Thread Thiago Henrique
Hello, I'm testing Dovecot 2.0. I plan to use Dovecot 2.0 with thousands of domains per server. My user base is under virtual MySQL. When I run `quota doveadm recalc`, Dovecot sets quota to zero: r...@server:# dove

Re: [Dovecot] doveadm quota get -u some...@ourdomains.com

2010-09-01 Thread Timo Sirainen
On Tue, 2010-08-31 at 20:46 -0400, Jerrale G wrote: > On 8/31/2010 5:03 PM, Timo Sirainen wrote: > > On 31.8.2010, at 21.42, Jerrale G wrote: > > > >> we have the mail_plugins defined differently for each protocol > >> ({imap=quota,expire,imap_quota} {pop3=quota,expire} > >> {lda=quota,expire,sie

Re: [Dovecot] doveadm quota get -u some...@ourdomains.com

2010-08-31 Thread Jerrale G
On 8/31/2010 5:03 PM, Timo Sirainen wrote: On 31.8.2010, at 21.42, Jerrale G wrote: we have the mail_plugins defined differently for each protocol ({imap=quota,expire,imap_quota} {pop3=quota,expire} {lda=quota,expire,sieve}). doveadm doesn't have a protocol. You must set it globally. When

Re: [Dovecot] doveadm quota get -u some...@ourdomains.com

2010-08-31 Thread Timo Sirainen
On 31.8.2010, at 21.42, Jerrale G wrote: > we have the mail_plugins defined differently for each protocol > ({imap=quota,expire,imap_quota} {pop3=quota,expire} {lda=quota,expire,sieve}). doveadm doesn't have a protocol. You must set it globally.

[Dovecot] doveadm quota get -u some...@ourdomains.com

2010-08-31 Thread Jerrale G
With the expire running from mysql, on 2.0.1, we get no errors with: " doveadm expunge -A mailbox Trash savedbefore 7d" we have the mail_plugins defined differently for each protocol ({imap=quota,expire,imap_quota} {pop3=quota,expire} {lda=quota,expire,sieve}). When trying "doveadm quota ge