Re: [Dovecot] second fs quota root crashes

2009-11-03 Thread Juergen Obermann
On Thu, Oct 29, 2009 at 12:59:40PM -0400, Timo Sirainen wrote:
 On Thu, 2009-10-29 at 14:21 +0100, Juergen Obermann wrote:
  The patch in http://hg.dovecot.org/dovecot-1.2/rev/439e14ff1467 helps with 
  the
  crash of the imap client, but the second quota still does not work. 
 
 What does it show if you give:
 
 a GETQUOTA Home-Verzeichnis
 b GETQUOTA INBOX
 c GETQUOTAROOT INBOX
 d GETQUOTAROOT some other mailbox name than INBOX
 
 i.e. is the problem that there really isn't those two quotas, or one of
 them returns wrong value, or one of them just isn't listed, or..?
 
  The below
  log shows, that only the first fs quota is used for the inbox and the mail
  folders. 
 
 I thought the logs showed both of the quotas.
 
  Even adding 'mount=/home/hrz' to the first quota setting does not help.
  Btw what would be the right mount path setting for an automounter mountpoint
  /home for home filesystems?
 
 mount=%h maybe?

Here ar my test results. If I set

  quota = fs:Home-Verzeichnis:noenforcing
  quota2 = fs:INBOX:noenforcing:mount=/var/mail

then only the first quota for Home-Verzeichnis gets reported for INBOX, which is
wrong, and for all other mail folders in my home filesystem, which is correct.

horus{g033}1040:/opt/local/sbin/dovecot --exec-mail ext 
/opt/local/libexec/dovecot/imap
* PREAUTH [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE SORT 
THREAD=REFERENCES THREAREFS MULTIAPPEND UNSELECT IDLE CHILDREN NAMESPACE 
UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC EARCH ESORT SEARCHRES 
WITHIN CONTEXT=SEARCH QUOTA] Logged in as g033
a GETQUOTA Home-Verzeichnis
* QUOTA Home-Verzeichnis (STORAGE 1567704 200)
a OK Getquota completed.
b GETQUOTA INBOX
* QUOTA INBOX ()
b OK Getquota completed.
c GETQUOTAROOT INBOX
* QUOTAROOT INBOX Home-Verzeichnis
* QUOTA Home-Verzeichnis (STORAGE 1567704 200)
c OK Getquotaroot completed.
d GETQUOTAROOT dovecot
* QUOTAROOT dovecot Home-Verzeichnis
* QUOTA Home-Verzeichnis (STORAGE 1567704 200)
d OK Getquotaroot completed.
^C* BYE Server shutting down.

If I add mount=%h to my first quota rule I get no quota values at all

  quota = fs:Home-Verzeichnis:noenforcing:mount=%h
  quota2 = fs:INBOX:noenforcing:mount=/var/mail


horus{g033}1041:/opt/local/sbin/dovecot --exec-mail ext 
/opt/local/libexec/dovecot/imap
* PREAUTH [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE SORT 
THREAD=REFERENCES THREAREFS MULTIAPPEND UNSELECT IDLE CHILDREN NAMESPACE 
UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC EARCH ESORT SEARCHRES 
WITHIN CONTEXT=SEARCH QUOTA] Logged in as g033
a GETQUOTA Home-Verzeichnis
* QUOTA Home-Verzeichnis ()
a OK Getquota completed.
b GETQUOTA INBOX
* QUOTA INBOX ()
b OK Getquota completed.
c GETQUOTAROOT INBOX
* QUOTAROOT INBOX
c OK Getquotaroot completed.
d GETQUOTAROOT dovecot 
* QUOTAROOT dovecot
d OK Getquotaroot completed.
^C* BYE Server shutting down.

My current quota values are:

horus{g033}1043:quota -v 
Disk quotas for g033 (uid 10033):
Filesystem usage  quota  limittimeleft  files  quota  limittimeleft
/var/mail 85 200 2097150  1100110   
/home/hrz1567704 200 220  22633 20 22  


Thanks,
Jürgen

-- 
Hochschulrechenzentrum der | Mail: juergen.oberm...@hrz.uni-giessen.de
Justus-Liebig-Universitaet | WWW:  http://www.uni-giessen.de/~g033
Heinrich-Buff-Ring 44  | Tel:  0641-99-13054 (0641-99-13001)
D-35392 Giessen, Germany   | Fax:  0641-99-13009


Re: [Dovecot] second fs quota root crashes

2009-10-29 Thread Juergen Obermann
On Tue, Oct 27, 2009 at 07:19:26PM -0400, Timo Sirainen wrote:
 On Tue, 2009-10-20 at 14:52 +0200, Juergen Obermann wrote:
  Hallo.
  
  In our dovecot 1.2.6 server running under Solaris 9 I would like to set up a
  second quota root because the mail folders are in the users home 
  directories and
  the inboxes of all users are in /var/mail. As soon as I add
  
quota2 = fs:INBOX:noenforcing:mount=/var/mail
  
  the imap client crashes repeatedly as soon as the user tries to open a mail
  folder. 
 
 I guess this helps? http://hg.dovecot.org/dovecot-1.2/rev/439e14ff1467
 
 Or just adding the mount= path to the first quota setting.
 

Hello,

The patch in http://hg.dovecot.org/dovecot-1.2/rev/439e14ff1467 helps with the
crash of the imap client, but the second quota still does not work. The below
log shows, that only the first fs quota is used for the inbox and the mail
folders. Even adding 'mount=/home/hrz' to the first quota setting does not help.
Btw what would be the right mount path setting for an automounter mountpoint
/home for home filesystems?

Thank you, 
Jürgen

Oct 28 15:20:49 horus dovecot: [ID 583609 local0.info] Dovecot v1.2.6 starting 
up

Oct 28 15:21:19 horus dovecot: [ID 583609 local0.info] IMAP(g033): Loading 
modules from directory: /opt/local/lib/dovecot/imap
Oct 28 15:21:19 horus dovecot: [ID 583609 local0.info] IMAP(g033): Module 
loaded: /opt/local/lib/dovecot/imap/lib10_quota_plugin.so
Oct 28 15:21:19 horus dovecot: [ID 583609 local0.info] IMAP(g033): Module 
loaded: /opt/local/lib/dovecot/imap/lib11_imap_quota_plugin.so
Oct 28 15:21:19 horus dovecot: [ID 583609 local0.info] IMAP(g033): Effective 
uid=10033, gid=10010, home=/home/hrz/g033
Oct 28 15:21:19 horus dovecot: [ID 583609 local0.info] IMAP(g033): Quota root: 
name=Home-Verzeichnis backend=fs args=noenforcing
Oct 28 15:21:19 horus dovecot: [ID 583609 local0.info] IMAP(g033): Quota root: 
name=INBOX backend=fs args=noenforcing:mount=/var/mail
Oct 28 15:21:19 horus dovecot: [ID 583609 local0.info] IMAP(g033): Namespace: 
type=private, prefix=, sep=/, inbox=yes, hidden=no, list=yes, subscriptions=yes
Oct 28 15:21:19 horus dovecot: [ID 583609 local0.info] IMAP(g033): mbox: 
data=~/Mail:INBOX=/var/mail/g033
Oct 28 15:21:19 horus dovecot: [ID 583609 local0.info] IMAP(g033): fs: 
root=/home/hrz/g033/Mail, index=, control=, inbox=/var/mail/g033
Oct 28 15:21:19 horus dovecot: [ID 583609 local0.info] IMAP(g033): fs quota add 
storage dir = /home/hrz/g033/Mail
Oct 28 15:21:19 horus dovecot: [ID 583609 local0.info] IMAP(g033): fs quota 
block device = fileserv:/export/home1/hrz
Oct 28 15:21:19 horus dovecot: [ID 583609 local0.info] IMAP(g033): fs quota 
mount point = /home/hrz
Oct 28 15:21:19 horus dovecot: [ID 583609 local0.info] IMAP(g033): Namespace: 
type=private, prefix=Mail/, sep=/, inbox=no, hidden=yes, list=no, 
subscriptions=yes
Oct 28 15:21:19 horus dovecot: [ID 583609 local0.info] IMAP(g033): mbox: 
data=~/Mail:INBOX=/var/mail/g033
Oct 28 15:21:19 horus dovecot: [ID 583609 local0.info] IMAP(g033): fs: 
root=/home/hrz/g033/Mail, index=, control=, inbox=/var/mail/g033
Oct 28 15:21:20 horus dovecot: [ID 583609 local0.info] IMAP(g033): quota-fs: 
host=fileserv, path=/export/home1/hrz, uid=10033, bytes
Oct 28 15:21:20 horus dovecot: [ID 583609 local0.info] IMAP(g033): quota-fs: 
uid=10033, value=1550740480, limit=204800, active=1
Oct 28 15:21:20 horus dovecot: [ID 583609 local0.info] IMAP(g033): 
box=/var/mail/g033 mount=/var/mail match=yes
Oct 28 15:21:20 horus dovecot: [ID 583609 local0.info] IMAP(g033): quota-fs: 
host=fileserv, path=/export/home1/hrz, uid=10033, bytes
Oct 28 15:21:20 horus dovecot: [ID 583609 local0.info] IMAP(g033): quota-fs: 
uid=10033, value=1550740480, limit=204800, active=1
Oct 28 15:21:20 horus dovecot: [ID 583609 local0.info] IMAP(g033): 
box=/var/mail/g033 mount=/var/mail match=yes

Oct 28 15:21:29 horus dovecot: [ID 583609 local0.info] IMAP(g033): Loading 
modules from directory: /opt/local/lib/dovecot/imap
Oct 28 15:21:29 horus dovecot: [ID 583609 local0.info] IMAP(g033): Module 
loaded: /opt/local/lib/dovecot/imap/lib10_quota_plugin.so
Oct 28 15:21:29 horus dovecot: [ID 583609 local0.info] IMAP(g033): Module 
loaded: /opt/local/lib/dovecot/imap/lib11_imap_quota_plugin.so
Oct 28 15:21:29 horus dovecot: [ID 583609 local0.info] IMAP(g033): Effective 
uid=10033, gid=10010, home=/home/hrz/g033
Oct 28 15:21:29 horus dovecot: [ID 583609 local0.info] IMAP(g033): Quota root: 
name=Home-Verzeichnis backend=fs args=noenforcing
Oct 28 15:21:29 horus dovecot: [ID 583609 local0.info] IMAP(g033): Quota root: 
name=INBOX backend=fs args=noenforcing:mount=/var/mail
Oct 28 15:21:29 horus dovecot: [ID 583609 local0.info] IMAP(g033): Namespace: 
type=private, prefix=, sep=/, inbox=yes, hidden=no, list=yes, subscriptions=yes
Oct 28 15:21:29 horus dovecot: [ID 583609 local0.info] IMAP(g033): mbox: 
data=~/Mail:INBOX=/var/mail/g033
Oct 28 15:21:29 horus dovecot: [ID 583609 local0.info] IMAP(g033): fs: 

Re: [Dovecot] second fs quota root crashes

2009-10-29 Thread Timo Sirainen
On Thu, 2009-10-29 at 14:21 +0100, Juergen Obermann wrote:
 The patch in http://hg.dovecot.org/dovecot-1.2/rev/439e14ff1467 helps with the
 crash of the imap client, but the second quota still does not work. 

What does it show if you give:

a GETQUOTA Home-Verzeichnis
b GETQUOTA INBOX
c GETQUOTAROOT INBOX
d GETQUOTAROOT some other mailbox name than INBOX

i.e. is the problem that there really isn't those two quotas, or one of
them returns wrong value, or one of them just isn't listed, or..?

 The below
 log shows, that only the first fs quota is used for the inbox and the mail
 folders. 

I thought the logs showed both of the quotas.

 Even adding 'mount=/home/hrz' to the first quota setting does not help.
 Btw what would be the right mount path setting for an automounter mountpoint
 /home for home filesystems?

mount=%h maybe?


signature.asc
Description: This is a digitally signed message part


Re: [Dovecot] second fs quota root crashes

2009-10-27 Thread Timo Sirainen
On Tue, 2009-10-20 at 14:52 +0200, Juergen Obermann wrote:
 Hallo.
 
 In our dovecot 1.2.6 server running under Solaris 9 I would like to set up a
 second quota root because the mail folders are in the users home directories 
 and
 the inboxes of all users are in /var/mail. As soon as I add
 
   quota2 = fs:INBOX:noenforcing:mount=/var/mail
 
 the imap client crashes repeatedly as soon as the user tries to open a mail
 folder. 

I guess this helps? http://hg.dovecot.org/dovecot-1.2/rev/439e14ff1467

Or just adding the mount= path to the first quota setting.



signature.asc
Description: This is a digitally signed message part


[Dovecot] second fs quota root crashes

2009-10-20 Thread Juergen Obermann
Hallo.

In our dovecot 1.2.6 server running under Solaris 9 I would like to set up a
second quota root because the mail folders are in the users home directories and
the inboxes of all users are in /var/mail. As soon as I add

  quota2 = fs:INBOX:noenforcing:mount=/var/mail

the imap client crashes repeatedly as soon as the user tries to open a mail
folder. 

Thanks for any help.

Dovecot Logfile:


Oct 20 14:12:49 horus dovecot: [ID 583609 local0.info] Dovecot v1.2.6 starting 
up
Oct 20 14:12:50 horus dovecot: [ID 583609 local0.info] auth(default): new auth 
connection: pid=8214
Oct 20 14:12:50 horus dovecot: [ID 583609 local0.info] auth(default): new auth 
connection: pid=8216
Oct 20 14:12:50 horus dovecot: [ID 583609 local0.info] auth(default): new auth 
connection: pid=8217
Oct 20 14:12:50 horus dovecot: [ID 583609 local0.info] auth(default): new auth 
connection: pid=8218
Oct 20 14:12:50 horus dovecot: [ID 583609 local0.info] auth(default): new auth 
connection: pid=8219
Oct 20 14:12:50 horus dovecot: [ID 583609 local0.info] auth(default): new auth 
connection: pid=8220
Oct 20 14:12:50 horus dovecot: [ID 583609 local0.info] auth(default): new auth 
connection: pid=8222
Oct 20 14:12:50 horus dovecot: [ID 583609 local0.info] auth(default): new auth 
connection: pid=8225
Oct 20 14:12:50 horus dovecot: [ID 583609 local0.info] auth(default): new auth 
connection: pid=8223
Oct 20 14:12:50 horus dovecot: [ID 583609 local0.info] auth(default): new auth 
connection: pid=8230
Oct 20 14:12:50 horus dovecot: [ID 583609 local0.info] auth(default): new auth 
connection: pid=8228
Oct 20 14:12:50 horus dovecot: [ID 583609 local0.info] auth(default): new auth 
connection: pid=8229
Oct 20 14:12:50 horus dovecot: [ID 583609 local0.info] auth(default): new auth 
connection: pid=8224
Oct 20 14:12:50 horus dovecot: [ID 583609 local0.info] auth(default): new auth 
connection: pid=8221
Oct 20 14:12:50 horus dovecot: [ID 583609 local0.info] auth(default): new auth 
connection: pid=8233
Oct 20 14:12:50 horus dovecot: [ID 583609 local0.info] auth(default): new auth 
connection: pid=8231
Oct 20 14:12:50 horus dovecot: [ID 583609 local0.info] auth(default): new auth 
connection: pid=8226
Oct 20 14:12:50 horus dovecot: [ID 583609 local0.info] auth(default): new auth 
connection: pid=8237
Oct 20 14:12:50 horus dovecot: [ID 583609 local0.info] auth(default): new auth 
connection: pid=8236
Oct 20 14:12:50 horus dovecot: [ID 583609 local0.info] auth(default): new auth 
connection: pid=8232
Oct 20 14:12:50 horus dovecot: [ID 583609 local0.info] auth(default): new auth 
connection: pid=8234
Oct 20 14:12:50 horus dovecot: [ID 583609 local0.info] auth(default): new auth 
connection: pid=8235
Oct 20 14:12:50 horus dovecot: [ID 583609 local0.info] auth(default): new auth 
connection: pid=8238
Oct 20 14:12:50 horus dovecot: [ID 583609 local0.info] auth(default): new auth 
connection: pid=8227
Oct 20 14:13:00 horus dovecot: [ID 583609 local0.info] auth(default): client 
in: AUTH   1   PLAIN   service=imapsecured lip=134.176.2.11
rip=134.176.150.104 lport=993   rport=1397
Oct 20 14:13:00 horus dovecot: [ID 583609 local0.info] auth(default): client 
out: CONT  1   
Oct 20 14:13:00 horus dovecot: [ID 583609 local0.info] auth(default): client 
in: CONT   1   AGcwMzMAcmVkIHNreQ==
Oct 20 14:13:00 horus dovecot: [ID 583609 local0.info] auth-worker(default): 
pam(g033,134.176.150.104): lookup service=dovecot
Oct 20 14:13:00 horus dovecot: [ID 583609 local0.info] auth-worker(default): 
pam(g033,134.176.150.104): #1/1 style=1 msg=Password: 
Oct 20 14:13:00 horus dovecot: [ID 583609 local0.info] auth(default): client 
out: OK1   user=g033
Oct 20 14:13:00 horus dovecot: [ID 583609 local0.info] auth(default): master 
in: REQUEST1   82361
Oct 20 14:13:00 horus dovecot: [ID 583609 local0.info] auth(default): 
passwd(g033,134.176.150.104): lookup
Oct 20 14:13:00 horus dovecot: [ID 583609 local0.info] auth(default): master 
out: USER  1   g033system_groups_user=g033 uid=10033   gid=10010
   home=/home/hrz/g033
Oct 20 14:13:00 horus dovecot: [ID 583609 local0.info] imap-login: Login: 
user=g033, method=PLAIN, rip=134.176.150.104, lip=134.176.2.11, TLS
Oct 20 14:13:00 horus dovecot: [ID 583609 local0.info] auth(default): new auth 
connection: pid=8236
Oct 20 14:13:00 horus dovecot: [ID 583609 local0.info] IMAP(g033): Loading 
modules from directory: /opt/local/lib/dovecot/imap
Oct 20 14:13:00 horus dovecot: [ID 583609 local0.info] IMAP(g033): Module 
loaded: /opt/local/lib/dovecot/imap/lib10_quota_plugin.so
Oct 20 14:13:00 horus dovecot: [ID 583609 local0.info] IMAP(g033): Module 
loaded: /opt/local/lib/dovecot/imap/lib11_imap_quota_plugin.so
Oct 20 14:13:00 horus dovecot: [ID 583609 local0.info] IMAP(g033): Effective 
uid=10033, gid=10010, home=/home/hrz/g033
Oct 20 14:13:00 horus dovecot: [ID 583609 local0.info] IMAP(g033): Quota root: 
name=Home-Verzeichnis backend=fs