Re: [Dovecot] quota issues - fixed

2010-12-20 Thread PA
Looks like I fixed the issue, changed postfix master to use appropriate
dovecot string.
flags=DRhu user=vmail:vmail argv=/usr/local/libexec/dovecot/dovecot-lda -f
${sender} -d ${us...@${nexthop}

on my sql virtual domains file I had the incorrect string, used wrogn
variable. 

changed to 

query  = SELECT domain FROM domain WHERE domain='%d' AND active =
'1'

thanks, Paul

-Original Message-
From: dovecot-bounces+razor=meganet@dovecot.org
[mailto:dovecot-bounces+razor=meganet@dovecot.org] On Behalf Of PA
Sent: Monday, December 20, 2010 3:30 PM
To: 'Dovecot Mailing 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=meganet@dovecot.org] On Behalf Of 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: Monday, December 20, 2010 2:31 PM
To: dovecot@dovecot.org
Subject: Re: [Dovecot] quota issues

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
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=meganet@dovecot.org] On Behalf Of 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: Monday, December 20, 2010 2:31 PM
To: dovecot@dovecot.org
Subject: Re: [Dovecot] quota issues

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-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 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


[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
there even though they are being read/used are on the sql.conf file only.



dict {
  quotadict = mysql:/usr/local/etc/dovecot/dovecot-dict-quota-sql.conf
}

plugin {
  quota = dict:::proxy::quotadict
  quota_rule = *:storage=1M:messages=5
  quota_exceeded_message = Quota exceed, please email support for further
assistance.
  trash = /usr/local/etc/dovecot/trash.conf.ext
  driver = sql
}

Sql.conf

user_query = SELECT concat('/var/vmail/%d/', maildir) as home,
concat('maildir:/var/vmail/%d/', maildir) as mail, 101 AS uid, 502 AS gid,
concat('*:messages=5:storage=', quota) AS quota_rule FROM mailbox WHERE
username = '%u' AND active = '1'





Below are the errors I'm seeing in the log.

If I'm overquota I get the following error


Dec 20 08:32:32 testip5 dovecot: dict: mysql: Connected to localhost
(dovecotquota)
Dec 20 08:32:32 testip5 dovecot: lda(us...@virttest2.meganet.net): Panic:
stream doesn't support seeking backwards
Dec 20 08:32:32 testip5 dovecot: lda(us...@virttest2.meganet.net): Error:
Raw backtrace: /usr/local/lib/dovecot/libdovecot.so.0 [0x7850c0] ->
/usr/local/lib/dovecot/libdovecot.so.0(i_syslog_fatal_handler+0x34)
[0x785164] -> /usr/local/lib/dovecot/libdovecot.so.0 [0x784704] ->
/usr/local/lib/dovecot/libdovecot.so.0 [0x78e600] ->
/usr/local/lib/dovecot/libdovecot.so.0(i_stream_seek+0x68) [0x78bb68] ->
/usr/local/lib/dovecot/libdovecot.so.0 [0x78eda8] ->
/usr/local/lib/dovecot/libdovecot.so.0(i_stream_read+0x7a) [0x78bc3a] ->
/usr/local/lib/dovecot/libdovecot.so.0(i_stream_read_data+0x2b) [0x78beab]
-> /usr/local/lib/dovecot/libdovecot.so.0(message_parse_header_next+0x87)
[0x76f4a7] -> /usr/local/lib/dovecot/libdovecot.so.0 [0x770d5e] ->
/usr/local/lib/dovecot/libdovecot.so.0(message_parser_parse_next_block+0x43)
[0x770543] ->
/usr/local/lib/dovecot/libdovecot.so.0(message_parser_parse_header+0x2f)
[0x77075f] ->
/usr/local/lib/dovecot/libdovecot-storage.so.0(index_mail_parse_headers+0x10
1) [0x598b51] -> /usr/local
Dec 20 08:32:32 testip5 postfix/pipe[7995]: E0FA4958156:
to=, relay=dovecot, delay=3900,
delays=3900/0/0/0.06, dsn=4.3.0, status=deferred (Command died with signal
6: "/usr/local/libexec/dovecot/deliver")

Or error message if I'm not over quota on certain messages. 

Dec 20 08:12:12 testip5 dovecot: auth: Debug: master out: USER  1
us...@virttest1.meganet.net
home=/var/vmail/virttest1.meganet.net/us...@virttest1.meganet.net/
mail=maildir:/var/vmail/virttest1.meganet.net/us...@virttest1.meganet.net/
uid=101 gid=502quota_rule=*:messages=5:storage=0
Dec 20 08:12:12 testip5 dovecot: lda(us...@virttest1.meganet.net): Panic:
stream doesn't support seeking backwards
Dec 20 08:12:12 testip5 dovecot: lda(us...@virttest1.meganet.net): Error:
Raw backtrace: /usr/local/lib/dovecot/libdovecot.so.0 [0x63d0c0] ->
/usr/local/lib/dovecot/libdovecot.so.0(i_syslog_fatal_handler+0x34)
[0x63d164] -> /usr/local/lib/dovecot/libdovecot.so.0 [0x63c704] ->
/usr/local/lib/dovecot/libdovecot.so.0 [0x646600] ->
/usr/local/lib/dovecot/libdovecot.so.0(i_stream_seek+0x68) [0x643b68] ->
/usr/local/lib/dovecot/libdovecot.so.0 [0x646da8] ->
/usr/local/lib/dovecot/libdovecot.so.0(i_stream_read+0x7a) [0x643c3a] ->
/usr/local/lib/dovecot/libdovecot.so.0(i_stream_read_data+0x2b) [0x643eab]
-> /usr/local/lib/dovecot/libdovecot.so.0(message_parse_header_next+0x87)
[0x6274a7] -> /usr/local/lib/dovecot/libdovecot.so.0 [0x628d5e] ->
/usr/local/lib/dovecot/libdovecot.so.0(message_parser_parse_next_block+0x43)
[0x628543] ->
/usr/local/lib/dovecot/libdovecot.so.0(message_parser_parse_header+0x2f)
[0x62875f] ->
/usr/local/lib/dovecot/libdovecot-storage.so.0(index_mail_parse_headers+0x10
1) [0xb17b51] -> /usr/local
Dec 20 08:12:12 testip5 postfix/pipe[7557]: 2982A958151:
to=, relay=dovecot, delay=0.03,
delays=0.01/0/0/0.02, dsn=4.3.0, status=deferred (Command died with signal
6: "/usr/local/libexec/dovecot/deliver")



I look at http://www.mail-archive.com/dovecot@dovecot.org/msg35048.html and
it looks like the issue I'm having, if so what file to I apply the path to?

Dovecot -n

# OS: Linux 2.6.18-194.el5PAE i686 CentOS release 5.5 (Final) ext3
auth_debug = yes
auth_mechanisms = plain login
auth_verbose = yes
base_dir = /usr/local/var/run/dovecot/
dict {
  quotadict = mysql:/usr/local/etc/dovecot/dovecot-dict-quota-sql.conf
}
disable_plaintext_auth = no
first_valid_uid = 101
last_valid_uid = 101
login_greeting = Mail Server Ready.
mail_location = maildir:/var/vmail/%d/%u
passdb {
  args = /usr/local/etc/dovecot/sql.conf.ext
  driver = sql
}
plugin {
  acl = vfile:/usr/local/etc/dovecot/acls
  driver = sql
  quota = dict:::proxy::quotadict
  quota_exceeded_message = Quota exceed, please email support for further
assistance.
  quota_

Re: [Dovecot] Quota Issues

2008-10-07 Thread Timo Sirainen

On Oct 7, 2008, at 1:07 AM, Peter Fraser wrote:


Is there a way to test to see if the dovecot quota settings are being
applied?
I'm doing this as part of troubleshooting.
I have set up dovecot + quotas  with squirrelmail and I am not  
seeing the

quota graphs in squirrelmail but I am not getting any errors.
Could someone please help me with this?


Set mail_debug=yes and look at the logs. It should say what the  
configured quota limits are.




PGP.sig
Description: This is a digitally signed message part


Re: [Dovecot] Quota Issues

2008-10-07 Thread Ken A

Peter Fraser wrote:

Hi All

Is there a way to test to see if the dovecot quota settings are being
applied?


http://www.google.com/search?q=telnet+IMAP+QUOTA


I'm doing this as part of troubleshooting.
I have set up dovecot + quotas  with squirrelmail and I am not seeing the
quota graphs in squirrelmail but I am not getting any errors.
Could someone please help me with this?

THanks.





--
Ken Anderson
Pacific.Net



[Dovecot] Quota Issues

2008-10-06 Thread Peter Fraser
Hi All

Is there a way to test to see if the dovecot quota settings are being
applied?
I'm doing this as part of troubleshooting.
I have set up dovecot + quotas  with squirrelmail and I am not seeing the
quota graphs in squirrelmail but I am not getting any errors.
Could someone please help me with this?

THanks.