Re: [Dovecot] Quota

2011-10-21 Thread Simone Caruso
It's depends on the kind of quota u need: mailbox usage, messages size, message count per month /domain /user /server.. if u want to limit per user mailbox quota use dovecot's quota plugin.. -- Simone Caruso IT Consultant

Re: [Dovecot] Quota

2011-10-21 Thread Charles Marcus
On 2011-10-21 6:43 AM, nuno marques nam...@hotmail.com wrote: The system as a whole is composed of:dovecot-2.0-0.10.beta6.20100630.el6.x86_64 Fyi, this is really old, you should upgrade to the latest version... -- Best regards, Charles

Re: [Dovecot] Quota

2011-10-21 Thread nuno marques
Jun 27 19:49:27 BST 2011 x86_64 x86_64 x86_64 GNU/Linux Date: Fri, 21 Oct 2011 14:15:31 +0200 From: i...@simonecaruso.com To: dovecot@dovecot.org Subject: Re: [Dovecot] Quota It's depends on the kind of quota u need: mailbox usage, messages size, message count per month /domain

[Dovecot] Quota fs

2011-10-21 Thread nuno marques
Hi, I have the following error, any help? imap(user4): Error: quotactl(Q_GETQUOTA, /dev/mapper/VolGroup-lv_root) failed: Permission denied The system as a whole is composed of: dovecot-2.0.14-1_130.el6.x86_64 openldap-servers-2.4.19-15.el6_0.2.x86_64 postfix-2.6.6-2.1.el6_0.x86_64

Re: [Dovecot] Quota fs (don't start script quota-warning.sh)

2011-09-13 Thread Timo Sirainen
On Tue, 2011-09-13 at 11:06 +0300, Peter Ignatov wrote: Hi, # doveadm -Dv quota get -u pit doveadm(pit): Debug: auth input: pit system_groups_user=pit uid=500 gid=500 home=/home/pit doveadm(pit): Debug: Effective uid=500, gid=500, home=/home/pit doveadm(pit): Debug: Quota root: name=INBOX

Re: [Dovecot] quota percents

2011-09-13 Thread Micah Anderson
Timo Sirainen t...@iki.fi writes: On 12.9.2011, at 19.17, Micah Anderson wrote: However, it doesn't seem to work in practice, because I have a user that is at 99% of quota, with nothing in the Trash who cannot move a 77KB message into the Trash without getting the quota_exceeded message and

Re: [Dovecot] quota percents

2011-09-12 Thread Timo Sirainen
On Fri, 2011-09-09 at 16:05 -0400, Micah Anderson wrote: I've noticed that http://wiki2.dovecot.org/Quota/Configuration is out of date, it says: plugin { quota = maildir:User quota quota_rule = *:storage=1GB # 10% of 1GB = 100MB quota_rule2 = Trash:storage=10%% # 20% of 1GB =

Re: [Dovecot] quota percents

2011-09-12 Thread Micah Anderson
Timo Sirainen t...@iki.fi writes: On Fri, 2011-09-09 at 16:05 -0400, Micah Anderson wrote: its incorrect because if you change it to what it suggests ('+10%') it wont work because that wont be 10% more, rather, it is set to bytes=+10: Well, that's a more complex problem. The %% escaping

[Dovecot] Quota fs (ignore mount)

2011-09-09 Thread Peter Ignatov
I set quota: fs:INBOX:noenforcing:mount=/var/spool/mail, but receive: fs quota add storage dir = /home/pit/mail... Why ? Well .. I'm not entirely sure if the current behavior is good or not, but what you need to do to get it working is to add two quota roots. One for /home/pit/mail (i.e.

[Dovecot] quota percents

2011-09-09 Thread Micah Anderson
I've noticed that http://wiki2.dovecot.org/Quota/Configuration is out of date, it says: plugin { quota = maildir:User quota quota_rule = *:storage=1GB # 10% of 1GB = 100MB quota_rule2 = Trash:storage=10%% # 20% of 1GB = 200MB quota_rule3 = Spam:storage=20%% } but if you use the

Re: [Dovecot] Quota fs (ignore mount)

2011-09-07 Thread Timo Sirainen
On 6.9.2011, at 15.11, Peter Ignatov wrote: I set quota: fs:INBOX:noenforcing:mount=/var/spool/mail, but receive: fs quota add storage dir = /home/pit/mail... Why ? Well .. I'm not entirely sure if the current behavior is good or not, but what you need to do to get it working is to add two

Re: [Dovecot] Dovecot quota dict

2011-08-10 Thread Nikita Koshikov
On Tue, 09 Aug 2011 11:18:55 -0300 Juan Bernhard wrote: Hi Nikita, thanks for the help, but I don't have any problem with bouncing the mail after the deliver (in fact, the mail pass two MTAs servers before reaching the final storage) I will try (with my limited english) to explain it

Re: [Dovecot] Dovecot quota dict

2011-08-10 Thread Juan Bernhard
Thank you Nikita, that's what I need. El 10/08/2011 03:35 a.m., Nikita Koshikov escribió: On Tue, 09 Aug 2011 11:18:55 -0300 Juan Bernhard wrote: Hi Nikita, thanks for the help, but I don't have any problem with bouncing the mail after the deliver (in fact, the mail pass two MTAs servers

Re: [Dovecot] Dovecot quota dict

2011-08-09 Thread Nikita Koshikov
On Mon, 08 Aug 2011 16:35:53 -0300 Juan Bernhard wrote: Hi, Im using dovecot with maildir++ quota and I have this problem, maybe some of you already solve this and can helpme. I want to use some flat file to tell exim and dovecot the quota limit for each user, i tried to work with exim and

Re: [Dovecot] Dovecot quota dict

2011-08-09 Thread Juan Bernhard
Hi Nikita, thanks for the help, but I don't have any problem with bouncing the mail after the deliver (in fact, the mail pass two MTAs servers before reaching the final storage) I will try (with my limited english) to explain it better. Now I m working with a single quota rule for everyone.

[Dovecot] Dovecot quota dict

2011-08-08 Thread Juan Bernhard
Hi, Im using dovecot with maildir++ quota and I have this problem, maybe some of you already solve this and can helpme. I want to use some flat file to tell exim and dovecot the quota limit for each user, i tried to work with exim and maildirsize file, but exim just ignores the limits there. I

[Dovecot] dovecot quota feature request

2011-07-28 Thread Shing
Hi all, I'm going to implement before queue quota check with postfix to prevent bounce mail, the quota information is stored into mysql using dovecot quotadict, it would be nice that dovecot can have an option to switch the quota check with (used space quota) instead of (used space+mail size

Re: [Dovecot] quota-warning.sh not working (lda problem?)

2011-07-19 Thread Thomas Krause
For testing I replaced /usr/local/libexec/dovecot/dovecot-lda -d $USER with /usr/sbin/sendmail $USER in the quota-warning.sh script. Now the mail is delivered when 80% or 95% of quota is reached. Any idea, why dovecot-lda doesn't deliver the warning mail? Regards, Thomas. Hi, I setup a new

[Dovecot] quota-warning.sh not working (lda problem?)

2011-07-18 Thread Thomas Krause
Hi, I setup a new mailserver with dovecot 2.0.12. Everything is working fine (including quota) - except of sending quota warning mails. When running /usr/local/bin/quota-warning.sh 95 u...@domain.de manually as root or user vmail, the mail is delivered. content of

Re: [Dovecot] Quota has none effect

2011-04-05 Thread Timo Sirainen
On Mon, 2011-04-04 at 23:22 +0200, Jim Knuth wrote: lda: Error: userdb lookup: connect(/var/run/dovecot/auth-userdb) failed: Permission denied (euid=1182(web1p5) egid=5000(vmail) missing +r perm: /var/run/dovecot/auth-userd b, euid is not dir owner) Give it some permissions. Since you're

Re: [Dovecot] Quota has none effect

2011-04-04 Thread Jim Knuth
am 04.04.11 06:33 schrieb Timo Sirainen t...@iki.fi: On 3.4.2011, at 17.48, Jim Knuth wrote: I have a user who has 153600 kBytes max. storage space. Now, however, he has used already 167396 kBytes and he can receive e-mails and can send. How can this be? Set mail_debug=yes and show logs

Re: [Dovecot] Quota has none effect

2011-04-04 Thread Joseba Torre
On Sunday 03 April 2011 18:23:37 Jim Knuth wrote: protocol imap { imap_client_workarounds = mail_fsync = never mail_plugins = autocreate quota imap_quota trash } plugin { trash = /etc/dovecot/dovecot-trash.conf.ext } protocol pop3 { mail_fsync = never mail_plugins

Re: [Dovecot] Quota has none effect

2011-04-04 Thread Jim Knuth
am 04.04.11 10:47 schrieb Joseba Torre joseba.to...@ehu.es: On Sunday 03 April 2011 18:23:37 Jim Knuth wrote: protocol imap { imap_client_workarounds = mail_fsync = never mail_plugins = autocreate quota imap_quota trash } plugin { trash = /etc/dovecot/dovecot-trash.conf.ext }

Re: [Dovecot] Quota has none effect

2011-04-04 Thread Joseba Torre
On Monday 04 April 2011 11:01:40 Jim Knuth wrote: sorry, but that`s IMHO not right. Take a look at $mail_plugins. There is also defined quota In your dovecot -n output mail_plugins are only defined inside the protocol parts. So, when inside protocol lda you write mail_plugins = $mail_plugins

Re: [Dovecot] Quota has none effect

2011-04-04 Thread Jim Knuth
am 04.04.11 11:22 schrieb Joseba Torre joseba.to...@ehu.es: On Monday 04 April 2011 11:01:40 Jim Knuth wrote: sorry, but that`s IMHO not right. Take a look at $mail_plugins. There is also defined quota In your dovecot -n output mail_plugins are only defined inside the protocol parts. So,

Re: [Dovecot] Quota has none effect

2011-04-04 Thread Timo Sirainen
On Mon, 2011-04-04 at 11:22 +0200, Joseba Torre wrote: On Monday 04 April 2011 11:01:40 Jim Knuth wrote: sorry, but that`s IMHO not right. Take a look at $mail_plugins. There is also defined quota In your dovecot -n output mail_plugins are only defined inside the protocol parts. So, when

Re: [Dovecot] Quota has none effect

2011-04-04 Thread Jim Knuth
am 04.04.11 13:31 schrieb Jim Knuth j...@jkart.de: am 04.04.11 12:55 schrieb Timo Sirainen t...@iki.fi: On Mon, 2011-04-04 at 11:22 +0200, Joseba Torre wrote: On Monday 04 April 2011 11:01:40 Jim Knuth wrote: sorry, but that`s IMHO not right. Take a look at $mail_plugins. There is also

Re: [Dovecot] Quota has none effect

2011-04-04 Thread Timo Sirainen
On Mon, 2011-04-04 at 14:58 +0200, Jim Knuth wrote: no rejects with that config above. Just a mail has arrived for the user .. So what do the logs say with mail_debug=yes?

Re: [Dovecot] Quota has none effect

2011-04-04 Thread Jim Knuth
am 04.04.11 15:13 schrieb Timo Sirainen t...@iki.fi: On Mon, 2011-04-04 at 14:58 +0200, Jim Knuth wrote: no rejects with that config above. Just a mail has arrived for the user .. So what do the logs say with mail_debug=yes? which piece do you mean? Arriving mail or sent mail? Or IMAP

Re: [Dovecot] Quota has none effect

2011-04-04 Thread Timo Sirainen
On Mon, 2011-04-04 at 16:01 +0200, Jim Knuth wrote: am 04.04.11 15:13 schrieb Timo Sirainen t...@iki.fi: On Mon, 2011-04-04 at 14:58 +0200, Jim Knuth wrote: no rejects with that config above. Just a mail has arrived for the user .. So what do the logs say with mail_debug=yes?

Re: [Dovecot] Quota has none effect

2011-04-04 Thread Jim Knuth
am 04.04.11 17:02 schrieb Timo Sirainen t...@iki.fi: On Mon, 2011-04-04 at 16:01 +0200, Jim Knuth wrote: am 04.04.11 15:13 schrieb Timo Sirainent...@iki.fi: On Mon, 2011-04-04 at 14:58 +0200, Jim Knuth wrote: no rejects with that config above. Just a mail has arrived for the user .. So

Re: [Dovecot] Quota has none effect

2011-04-04 Thread Timo Sirainen
On Mon, 2011-04-04 at 17:33 +0200, Jim Knuth wrote: Apr 4 14:34:17 server2 dovecot: lda(web6p1): sieve: msgid=op.vteyat1azaba4d@agi-pc: stored mail into mailbox 'INBOX' If this is the only message logged from Dovecot, it means mail_debug isn't yes. You should have lines like: Apr 04

Re: [Dovecot] Quota has none effect

2011-04-04 Thread Jim Knuth
am 04.04.11 17:43 schrieb Timo Sirainen t...@iki.fi: On Mon, 2011-04-04 at 17:33 +0200, Jim Knuth wrote: Apr 4 14:34:17 server2 dovecot: lda(web6p1): sieve: msgid=op.vteyat1azaba4d@agi-pc: stored mail into mailbox 'INBOX' If this is the only message logged from Dovecot, it means mail_debug

Re: [Dovecot] Quota has none effect

2011-04-04 Thread Jim Knuth
am 04.04.11 17:43 schrieb Timo Sirainen t...@iki.fi: On Mon, 2011-04-04 at 17:33 +0200, Jim Knuth wrote: Apr 4 14:34:17 server2 dovecot: lda(web6p1): sieve: msgid=op.vteyat1azaba4d@agi-pc: stored mail into mailbox 'INBOX' If this is the only message logged from Dovecot, it means mail_debug

Re: [Dovecot] Quota has none effect

2011-04-04 Thread Timo Sirainen
On Mon, 2011-04-04 at 18:15 +0200, Jim Knuth wrote: Apr 4 18:00:55 server2 dovecot: lda(web6p1): Debug: Quota rule: root=User quota mailbox=* bytes=734003200 messages=0 This is the default 700 MB quota specified in config file. Apr 4 18:00:55 server2 dovecot: lda(web6p1): Debug: userdb

Re: [Dovecot] Quota has none effect

2011-04-04 Thread Jim Knuth
am 04.04.11 18:23 schrieb Timo Sirainen t...@iki.fi: On Mon, 2011-04-04 at 18:15 +0200, Jim Knuth wrote: Apr 4 18:00:55 server2 dovecot: lda(web6p1): Debug: Quota rule: root=User quota mailbox=* bytes=734003200 messages=0 This is the default 700 MB quota specified in config file. Apr 4

Re: [Dovecot] Quota has none effect

2011-04-04 Thread Jim Knuth
am 04.04.11 18:23 schrieb Timo Sirainen t...@iki.fi: On Mon, 2011-04-04 at 18:15 +0200, Jim Knuth wrote: Apr 4 18:00:55 server2 dovecot: lda(web6p1): Debug: Quota rule: root=User quota mailbox=* bytes=734003200 messages=0 This is the default 700 MB quota specified in config file. Apr 4

[Dovecot] Quota has none effect

2011-04-03 Thread Jim Knuth
Hello, I have a user who has 153600 kBytes max. storage space. Now, however, he has used already 167396 kBytes and he can receive e-mails and can send. How can this be? # 2.0.11 (0ce50c22f84c): /etc/dovecot/dovecot.conf # OS: Linux 2.6.29.4 i686 Debian wheezy/sid -- Mit freundlichen Grüßen,

Re: [Dovecot] Quota has none effect

2011-04-03 Thread Sven Hartge
Jim Knuth j...@jkart.de wrote: I have a user who has 153600 kBytes max. storage space. Now, however, he has used already 167396 kBytes and he can receive e-mails and can send. How can this be? Your configuration is wrong? Sorry, without any further information there is not much else to

Re: [Dovecot] Quota has none effect

2011-04-03 Thread Jim Knuth
am 03.04.11 17:13 schrieb Sven Hartge s...@svenhartge.de: Jim Knuthj...@jkart.de wrote: I have a user who has 153600 kBytes max. storage space. Now, however, he has used already 167396 kBytes and he can receive e-mails and can send. How can this be? Your configuration is wrong? Sorry,

Re: [Dovecot] Quota has none effect

2011-04-03 Thread Sven Hartge
Jim Knuth j...@jkart.de wrote: am 03.04.11 17:13 schrieb Sven Hartge s...@svenhartge.de: Jim Knuthj...@jkart.de wrote: I have a user who has 153600 kBytes max. storage space. Now, however, he has used already 167396 kBytes and he can receive e-mails and can send. How can this be? Your

Re: [Dovecot] Quota has none effect

2011-04-03 Thread Jim Knuth
am 03.04.11 18:30 schrieb Sven Hartge s...@svenhartge.de: Jim Knuthj...@jkart.de wrote: am 03.04.11 17:13 schrieb Sven Hartges...@svenhartge.de: Jim Knuthj...@jkart.de wrote: I have a user who has 153600 kBytes max. storage space. Now, however, he has used already 167396 kBytes and he

Re: [Dovecot] Quota has none effect

2011-04-03 Thread Timo Sirainen
On 3.4.2011, at 17.48, Jim Knuth wrote: I have a user who has 153600 kBytes max. storage space. Now, however, he has used already 167396 kBytes and he can receive e-mails and can send. How can this be? Set mail_debug=yes and show logs about a mail delivery that should have been rejected.

Re: [Dovecot] quota warning email to user

2011-03-25 Thread upen
: quota: net_connect_unix(/var/run/dovecot/quota-warning) failed: Permission denied (euid=1002(local_username) egid=10(wheel) missing +r perm: /var/run/dovecot/quota-warning, euid is not dir owner) Mar 24 15:41:28 email_serverdovecot: lda(local_username): msgid=20110324154128.0df8855a

[Dovecot] quota warning email to user

2011-03-24 Thread upen
/dovecot/quota-warning) failed: Permission denied (euid=1002(local_username) egid=10(wheel) missing +r perm: /var/run/dovecot/quota-warning, euid is not dir owner) Mar 24 15:41:28 email_serverdovecot: lda(local_username): msgid=20110324154128.0df8855a@local_username_ots.domainname: save failed

[Dovecot] Quota ignore issue

2011-02-02 Thread Tim Traver
Hi Timo, ok, in my dovecot setup, I have a setting to ignore messages in the Spam folder (I will put my dovecot -n at the end of the message), and a strange thing appears to be happening. If I do a quota recalc on an account, It creates the maildirsize file correctly, without the contents of the

Re: [Dovecot] Quota ignore issue

2011-02-02 Thread Timo Sirainen
On Wed, 2011-02-02 at 11:54 -0800, Tim Traver wrote: But, it looks like when a new spam email is delivered, before the sieve rules in the lda can move it into the spam folder, it is added to the maildirsize file. Then, once it is moved into the Spam folder, if it is directly expunged from the

Re: [Dovecot] Quota ignore issue

2011-02-02 Thread Tim Traver
Timo, ok, I found the issue. Config problem on some servers that were delivering the mail. We have separate servers delivering outside mail to the Maildirs, and a set of servers that do the IMAP, POP, Webmail, etc... Seems the delivery servers didn't have the ignore the Spam folder directive. I

Re: [Dovecot] Quota ignore subfolders

2011-01-04 Thread Timo Sirainen
On Wed, 2010-12-15 at 12:47 +0100, Héctor Moreno Blanco wrote: We have dovecot 2.0.8 in our servers with Scientific Linux SL release 5.2 (Boron). We want to ignore a mailbox and its child mailboxes. A few weeks ago Timo told me to do this in dovecot.conf, create a new namespace which

Re: [Dovecot] Dovecot Quota plugin as Couier quota

2011-01-02 Thread Antonio Perez-Aranda
this with the : modification until delete-to-trash run on Dovecot 2.0 2010/12/30 Timo Sirainen t...@iki.fi: On Mon, 2010-12-27 at 12:08 +0100, Antonio Perez-Aranda wrote: I get a similar behavior between dovecot quota plugin and courier quota with the attached patch. When the client change flags

[Dovecot] Quota Calculation seems to be wrong when using dsync

2010-12-25 Thread Thomas Leuxner
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Recently I encountered odd quota increases when using 'dsync' with the latest and greatest: 2.0.8 (89936539e3b8). Say you got something in place like this: plugin { quota = dict:user::file:%h/mdbox/dovecot-quota quota_rule = *:storage=1GB

[Dovecot] quota issues

2010-12-20 Thread PA
Hi I seem to be getting an error when quotas are enabled. Also I noticed that the quota_ rule settings don't actually get used, the only settings that are used are on the sql.conf file. Maybe I'm not understanding what the quota_rule does but should I be specifying the storage/messages values on

Re: [Dovecot] quota issues

2010-12-20 Thread Charles Marcus
On 2010-12-20 1:35 PM, PA wrote: Dovecot -n # OS: Linux 2.6.18-194.el5PAE i686 CentOS release 5.5 (Final) ext3 Why'd you snip the version? -- Best regards, Charles Marcus I.T. Director Media Brokers International, Inc. 678.514.6200 x224 | 678.514.6299 fax

Re: [Dovecot] quota issues

2010-12-20 Thread PA
dovecot --version 2.0.8 -Original Message- From: dovecot-bounces+razor=meganet@dovecot.org [mailto:dovecot-bounces+razor=meganet@dovecot.org] On Behalf Of Charles Marcus Sent: Monday, December 20, 2010 2:31 PM To: dovecot@dovecot.org Subject: Re: [Dovecot] quota issues On 2010-12

Re: [Dovecot] quota issues

2010-12-20 Thread PA
Sent: Monday, December 20, 2010 3:13 PM To: 'Dovecot Mailing List' Subject: Re: [Dovecot] quota issues dovecot --version 2.0.8 -Original Message- From: dovecot-bounces+razor=meganet@dovecot.org [mailto:dovecot-bounces+razor=meganet@dovecot.org] On Behalf Of Charles Marcus Sent

Re: [Dovecot] quota issues - fixed

2010-12-20 Thread PA
List' Subject: Re: [Dovecot] quota issues Just looked at the patch I referenced below seems to be included on version 2.0.8 that I'm using, not really sure why I'm getting those errors. -Original Message- From: dovecot-bounces+razor=meganet@dovecot.org [mailto:dovecot-bounces+razor

[Dovecot] Quota ignore subfolders

2010-12-15 Thread Héctor Moreno Blanco
Hello, We have dovecot 2.0.8 in our servers with Scientific Linux SL release 5.2 (Boron). We want to ignore a mailbox and its child mailboxes. A few weeks ago Timo told me to do this in dovecot.conf, create a new namespace which will be the quotaless namespace and edit the quota: namespace {

Re: [Dovecot] Quota warning generated when crossing on both sides

2010-12-13 Thread Timo Sirainen
On Fri, 2010-12-10 at 16:29 +0100, Harm van Tilborg wrote: user_query = \ SELECT m.maildir AS home, 1001 AS uid, 1001 AS gid, \ CONCAT('*:bytes=', m.quota, 'M') AS quota_rule, \ 'Trash:ignore' AS quota_rule2 \ There's no need for the quota_rule2 to be here since it's always static

[Dovecot] Quota warning generated when crossing on both sides

2010-12-10 Thread Harm van Tilborg
Hello everyone, I'm experimenting with the quota warning plugin. I have the following setting in Dovecot's general config: plugin { quota_warning = storage=75%% /var/www/contrib/doquotawarning.py 75 quota_warning2 = storage=90%% /var/www/contrib/doquotawarning.py 90 } The doquotawarning.py

[Dovecot] Quota by max file size

2010-11-26 Thread Antonio Perez-Aranda
Is It possible have a quota for max file size? Per example, If the client try to save a very big mail as draft, p.e. 100M, and the limit of Exim configuration is 20M, the mail is really saved in Maildir at sent or Draft but it can't be sent. I think maybe is easy to create a plugin, get the

Re: [Dovecot] Quota by max file size

2010-11-26 Thread Timo Sirainen
On 26.11.2010, at 12.26, Antonio Perez-Aranda wrote: Is It possible have a quota for max file size? No. Also I don't think that's really about quota, since this could be useful even when users have no quota. I think maybe is easy to create a plugin, get the saved stream size and then if it

Re: [Dovecot] Quota on unlimited mailboxes (More info)

2010-11-22 Thread Timo Sirainen
It wasn't really a bug, more like a feature I thought would have been a good idea, but wasn't really. Instead of using 100M, you could use e.g. 10% (10% of 0 is 0 = unlimited). Or apply this patch: http://hg.dovecot.org/dovecot-2.0/rev/3a93121f652a On Sun, 2010-11-21 at 23:51 -0800, Tim Traver

Re: [Dovecot] Quota on unlimited mailboxes (More info)

2010-11-22 Thread Tim Traver
Thanks Timo! That patch did the trick! Its great that you are so quick with changes that affect your users. Tim On 11/22/2010 10:36 AM, Timo Sirainen wrote: It wasn't really a bug, more like a feature I thought would have been a good idea, but wasn't really. Instead of using 100M, you could

[Dovecot] Quota on unlimited mailboxes

2010-11-21 Thread Tim Traver
Hi all, ok, I implemented the feature to allow 100 more MB in the trash, and it appears to work for accounts that have a standard quota, but it appears it doesn't work with an account that comes back with a 0 quota (meaning unlimited). So, I seemed to have fixed one issue, but then on accounts

Re: [Dovecot] Quota on unlimited mailboxes (More info)

2010-11-21 Thread Tim Traver
ok, more info on this one. When I took out the quota_rule that added the extra 100M to the trash quota, the unlimited accounts started working properly again. So you know, I retrieve the quota values from the userdb lookups instead of having a default configured in the dovecot config files,

[Dovecot] Quota warning email

2010-10-28 Thread Patrick Westenberg
Hi @all, is there any way to inform a mailbox user via mail that his mailbox reached a specified limit? Regards Patrick

Re: [Dovecot] Quota warning email

2010-10-28 Thread Patrick Westenberg
On Thu, 28 Oct 2010 12:16:11 +0200, Patrick Westenberg p...@wk-serv.de wrote: is there any way to inform a mailbox user via mail that his mailbox reached a specified limit? Forget it. Found it in the wiki.

Re: [Dovecot] Quota, Postgres + Postfixadmin

2010-10-17 Thread Roman
On Thursday 14 October 2010 17:26:08 Timo Sirainen wrote: On Thu, 2010-10-14 at 13:55 +0200, Roman wrote: quotadict = pgsql:/etc/dovecot/dovecot-dict-quota.conf After moving some mail on and off the account and finally cleaning out any mail (verified via console) quota2 looks like this:

[Dovecot] quota sql dict permissions dilemma

2010-10-16 Thread LEVAI Daniel
Hi! I'm trying to set up SQL based dict quota. The quota is working, gets updated but I had to configure really loose file permission to make it work: dovecot.conf: dict { quota = pgsql:/etc/dovecot/dovecot_dict-sql.conf } service dict { unix_listener dict {

Re: [Dovecot] quota sql dict permissions dilemma

2010-10-16 Thread Miha Vrhovnik
LEVAI Daniel l...@ecentrum.hu wrote on 16.10.2010 10:15:45: Hi! I'm trying to set up SQL based dict quota. The quota is working, gets updated but I had to configure really loose file permission to make it work: dovecot.conf: dict { quota = pgsql:/etc/dovecot/dovecot_dict-sql.conf }

[Dovecot] Quota, Postgres + Postfixadmin

2010-10-14 Thread Roman
Hi everybody, i am currently testing dovecot-1.2.9 together with postfix, postgres and postfixadmin. After setting up the basics, i wanted to get the quotas working... So i edited the dovecot.conf: mail_plugins = quota imap_quota mail_plugins = sieve quota quotadict =

Re: [Dovecot] Quota, Postgres + Postfixadmin

2010-10-14 Thread Timo Sirainen
On Thu, 2010-10-14 at 13:55 +0200, Roman wrote: quotadict = pgsql:/etc/dovecot/dovecot-dict-quota.conf After moving some mail on and off the account and finally cleaning out any mail (verified via console) quota2 looks like this: username bytes messages

[Dovecot] Quota value *not* getting over written by ldap attr value, help ?

2010-09-21 Thread Mohit Chawla
Hi, I am having trouble with the quota plugin with deliver. In the auth logs, I see that dovecot is able to get the attribute value just fine: *** Sep 21 17:49:30 dawnone dovecot: auth(default): ldap(cot,127.0.0.1): result: uid(user)=cot uidNumber(userdb_uid)=1011 gidNumber(userdb_gid)=1011

Re: [Dovecot] Quota value *not* getting over written by ldap attr value, help ?

2010-09-21 Thread Timo Sirainen
On Tue, 2010-09-21 at 18:02 +0530, Mohit Chawla wrote: *** Sep 21 17:49:30 dawnone dovecot: auth(default): ldap(cot,127.0.0.1): result: uid(user)=cot uidNumber(userdb_uid)=1011 gidNumber(userdb_gid)=1011 homeDirectory(userdb_home)=/home/cot

Re: [Dovecot] Quota value *not* getting over written by ldap attr value, help ?

2010-09-21 Thread Mohit Chawla
Hi, Thanks Timo, you were right , deliver was missing the -d parameter. On Tue, Sep 21, 2010 at 6:27 PM, Timo Sirainen t...@iki.fi wrote: On Tue, 2010-09-21 at 18:02 +0530, Mohit Chawla wrote: *** Sep 21 17:49:30 dawnone dovecot: auth(default): ldap(cot,127.0.0.1): result:

[Dovecot] quota dict play nice with existing tables

2010-09-14 Thread Miha Vrhovnik
Hi, I'm trying to set Dovecot 2.0 with postgresql dict. It's kind of working but not as I'd like to. Dovecot expects to get a dedicated table for quota management. When I've run *doveadm quota recalc -A* I've noticed in the logs that Dovecot tries to run DELETE statements. Fortunately it

Re: [Dovecot] quota dict play nice with existing tables

2010-09-14 Thread Timo Sirainen
On Tue, 2010-09-14 at 18:07 +0200, Miha Vrhovnik wrote: I'm trying to set Dovecot 2.0 with postgresql dict. It's kind of working but not as I'd like to. Dovecot expects to get a dedicated table for quota management. When I've run *doveadm quota recalc -A* I've noticed in the logs that

Re: [Dovecot] quota dict play nice with existing tables

2010-09-14 Thread Timo Sirainen
On Tue, 2010-09-14 at 17:49 +0100, Timo Sirainen wrote: On Tue, 2010-09-14 at 18:07 +0200, Miha Vrhovnik wrote: I'm trying to set Dovecot 2.0 with postgresql dict. It's kind of working but not as I'd like to. Dovecot expects to get a dedicated table for quota management. When I've run

Re: [Dovecot] quota dict play nice with existing table s

2010-09-14 Thread Miha Vrhovnik
Timo Sirainen t...@iki.fi wrote on 14.9.2010 18:51:29: On Tue, 2010-09-14 at 17:49 +0100, Timo Sirainen wrote: On Tue, 2010-09-14 at 18:07 +0200, Miha Vrhovnik wrote: I'm trying to set Dovecot 2.0 with postgresql dict. It's kind of working but not as I'd like to. Dovecot expects to get a

Re: [Dovecot] quota dict play nice with existing tables

2010-09-14 Thread Timo Sirainen
On Tue, 2010-09-14 at 19:08 +0200, Miha Vrhovnik wrote: When removing/receiving new message and same in case of doveadm recalc. SELECT with key.. if not found INSERT else UPDATE I don't think this kind of code exists anywhere? It's possible that doveadm does a SELECT, but it's

Re: [Dovecot] quota dict play nice with existing table s

2010-09-14 Thread Miha Vrhovnik
Timo Sirainen t...@iki.fi wrote on 14.9.2010 19:24:14: On Tue, 2010-09-14 at 19:08 +0200, Miha Vrhovnik wrote: When removing/receiving new message and same in case of doveadm recalc. SELECT with key.. if not found INSERT else UPDATE I don't think this kind of code exists

Re: [Dovecot] quota not updated

2010-08-03 Thread Timo Sirainen
On Tue, 2010-08-03 at 07:47 +0200, Martin Ott wrote: See if this works: quota = maildir:User quota:ns=INBOX/ with quota: maildir:User quota:ns=INBOX/ log says Aug 3 07:43:11 vlmail01 dovecot: IMAP(user): quota maildir: No maildir storages, ignoring quota. Fixed:

Re: [Dovecot] quota not updated

2010-08-03 Thread Martin Ott
Am 03.08.2010 14:12, schrieb Timo Sirainen: On Tue, 2010-08-03 at 07:47 +0200, Martin Ott wrote: See if this works: quota = maildir:User quota:ns=INBOX/ with quota: maildir:User quota:ns=INBOX/ log says Aug 3 07:43:11 vlmail01 dovecot: IMAP(user): quota maildir: No maildir storages,

Re: [Dovecot] quota not updated

2010-08-03 Thread Timo Sirainen
On Tue, 2010-08-03 at 14:48 +0200, Martin Ott wrote: thanks, the warnings in the log are gone, but when mail is expunged, quota stays the same. There are no negative values added to maildirsize file when mail is expunged. Should there? Yes. Looks like this works correctly in v2.0. I don't

[Dovecot] quota not updated

2010-08-02 Thread Martin Ott
Hi, we're using quota with the maildir backend. When new mail arrives, the quota gets updated. But when mail is expunged, quota stays the same (see imap dialog below). We're using the latest version from hg ( 1.2.13 ). Any ideas? ###quota part from dovecot -n plugin: quota: maildir:User quota

Re: [Dovecot] quota not updated

2010-08-02 Thread Timo Sirainen
On Mon, 2010-08-02 at 09:30 +0200, Martin Ott wrote: Hi, we're using quota with the maildir backend. When new mail arrives, the quota gets updated. But when mail is expunged, quota stays the same (see imap dialog below). We're using the latest version from hg ( 1.2.13 ). Any ideas? Anything

Re: [Dovecot] quota not updated

2010-08-02 Thread Martin Ott
Hi Timo, thanks for your answer. I triggered the problem down to the lazy_expunge plugin. When I remove lazy_expunge from mail_plugins, quota gets calculated as expected. How can I change the quota_rule, so that only the namespace with prefix INBOX is regarded? namespace: type: private

Re: [Dovecot] quota not updated

2010-08-02 Thread Timo Sirainen
On Mon, 2010-08-02 at 15:34 +0200, Martin Ott wrote: thanks for your answer. I triggered the problem down to the lazy_expunge plugin. When I remove lazy_expunge from mail_plugins, quota gets calculated as expected. How can I change the quota_rule, so that only the namespace with prefix INBOX

Re: [Dovecot] quota not updated

2010-08-02 Thread Martin Ott
Am 02.08.2010 16:39, schrieb Timo Sirainen: On Mon, 2010-08-02 at 15:34 +0200, Martin Ott wrote: thanks for your answer. I triggered the problem down to the lazy_expunge plugin. When I remove lazy_expunge from mail_plugins, quota gets calculated as expected. How can I change the

Re: [Dovecot] quota warning error with dict

2010-07-26 Thread Timo Sirainen
On Sat, 2010-07-24 at 01:58 +0200, Daniel Luttermann wrote: cat EOF | /usr/lib/dovecot/dovecot-lda -d $USER -o plugin/quota=dict:user::proxy::quota quota:noenforcing quota = dict:user::proxy::quota Well, this isn't right.. Assuming dict works normally, dovecot-lda should be called with one

Re: [Dovecot] quota warning error with dict

2010-07-26 Thread Daniel Luttermann
Timo Sirainen wrote on 26.07.2010: On Sat, 2010-07-24 at 01:58 +0200, Daniel Luttermann wrote: cat EOF | /usr/lib/dovecot/dovecot-lda -d $USER -o plugin/quota=dict:user::proxy::quota quota:noenforcing quota = dict:user::proxy::quota Well, this isn't right.. Assuming dict works normally,

[Dovecot] quota warning error with dict

2010-07-23 Thread Daniel Luttermann
Version: Dovecot 2.0rc3 Hi, I try to get the quota-warning.sh script working with quota/dict but I get some errors. The script looks like: #!/bin/sh PERCENT=$1 USER=$2 cat EOF | /usr/lib/dovecot/dovecot-lda -d $USER -o plugin/quota=dict:user::proxy::quota quota:noenforcing From:

[Dovecot] quota-warning example script from wiki2

2010-07-22 Thread Daniel Luttermann
Hi, in the wiki there's an example script for sending an email to an user that has exceeded his quota. Link: http://wiki2.dovecot.org/Quota/Configuration The dovecot deliver command line is: dovecot-lda -d $USER -o plugin/quota=maildir:User quota:noenforcing I wonder about -o: seems to be

Re: [Dovecot] quota-warning example script from wiki2

2010-07-22 Thread Timo Sirainen
On 22.7.2010, at 21.27, Daniel Luttermann wrote: The dovecot deliver command line is: dovecot-lda -d $USER -o plugin/quota=maildir:User quota:noenforcing I wonder about -o: seems to be undocumented because I've found no information about this parameter. Yeah, I guess it is. It anyway

[Dovecot] Quota in mysql dict not properly recalculated on 1.2?

2010-07-02 Thread Joan
Good morning, I am trying to add quota storage on mysql following the guide in the wiki http://wiki.dovecot.org/Quota/Dict, and I am having some problems. My setup works fine for the newly created accounts, and correctly increases/decreases quota when necessary. The wrong part seems to be the

Re: [Dovecot] Quota in mysql dict not properly recalculated on 1.2?

2010-07-02 Thread Timo Sirainen
On Fri, 2010-07-02 at 10:06 +0200, Joan wrote: It seems to me that dovecot --exec-mail doesn't do the mysql lookups to get the usersdb. Yes, you're right. --exec-mail doesn't do a userdb lookup. With v2.0 you could use imap -u username and it does a userdb lookup. Did you try the quota

Re: [Dovecot] Quota in mysql dict not properly recalculated on 1.2?

2010-07-02 Thread Joan
2010/7/2 Timo Sirainen t...@iki.fi: On Fri, 2010-07-02 at 10:06 +0200, Joan wrote: It seems to me that dovecot --exec-mail doesn't do the mysql lookups to get the usersdb. Yes, you're right. --exec-mail doesn't do a userdb lookup. With v2.0 you could use imap -u username and it does a

Re: [Dovecot] Quota in mysql dict not properly recalculated on 1.2?

2010-07-02 Thread Timo Sirainen
On Fri, 2010-07-02 at 14:31 +0200, Joan wrote: Did you try the quota recalculation when logging in normally, instead of with --exec-mail? I sent a 5M mail to myself, there's the mail in inbox and the copy to sent (amounting 10M), I connected to the server and manually removed the mail (rm

Re: [Dovecot] Quota in mysql dict not properly recalculated on 1.2?

2010-07-02 Thread Joan
2010/7/2 Timo Sirainen t...@iki.fi: On Fri, 2010-07-02 at 14:31 +0200, Joan wrote: Did you try the quota recalculation when logging in normally, instead of with --exec-mail? I sent a 5M mail to myself, there's the mail  in inbox and the copy to sent (amounting 10M), I connected to the

[Dovecot] quota and quota_warning

2010-06-21 Thread Guillermo Botero
hi everyone, i have dovecot 1.2.11 and postfix with virtual users and domains and mailscanner all is working fine but i cant made works the quota_warning i have in my script touch quota to see is the script run but never hapen i have in dovecot-sql.conf 'storage=10%% /etc/postfix/limit.sh' as

<    1   2   3   4   5   6   7   8   >