[Postfixbuch-users] OT: dovecot quota funktioniert nicht [SOLVED]

Peer Heinlein p.heinlein at heinlein-support.de
Do Apr 8 22:17:57 CEST 2010


Am Mittwoch, 7. April 2010 22:04:38 schrieb Oliver Pürsten:
> > test3 at freezz.de:
> > {SSHA}0xPyMV1VQElNImS6iskEvMSRNHOnOiqO::::::userdb_quota_rule=*:sto
> >rage=5120
> 
> Hatte ich auch schon probiert mit der Syntax, hat aber auch nicht
>  funktioniert.

So, ich hab's jetzt debuggt.

Auf dem System wurde gar kein userdb-Lookup in diese Passwort-Datei gemacht. Es gab lediglich einen passdb-Lookup und für den userdb-Lookup wurde lediglich auf static zurückgegriffen. Das heißt aber eben auch: In der 
Passwort-Datei wird NUR der Passwort-Lookup gemacht, kein User-Lookup. Und folgerichtig können auch keine weiteren Parameter ausgelesen werden.

Entweder ist nun alles static, dann gibt's eben keine individuellen Sachen, oder es ist eben nicht alles static, dann muß man auch sauber einen userb-Lookup machen :-)

Ein bißchen static geht nunmal nicht :-)

Ich hab's jetzt alles einmal umgepacht und das doofe static-Geraffel aus der dovecot.conf vertrieben. Ich habe das static-Zeug eh nie gemocht, denn es geht ja auch ohne (und zwar besser).

Unten angehängt das diff von alter zu neuer Config.

Schönen Gruß,

Peer


Diff in kurz:

218c218                                                         
< mail_location = maildir:~/Maildir                             
---                                                             
> mail_location = maildir:/var/vmail/%u/Maildir
299,300c299,300
< #mail_uid =
< #mail_gid =
---
> mail_uid = vmail
> mail_gid = vmail
1005,1007c1005,1007
<   userdb static {
<     args = uid=vmail gid=vmail home=/var/vmail/%u
<   }
---
> #  userdb static {
> #    args = uid=vmail gid=vmail home=/var/vmail/%u
> #  }
1011c1011
<   # userdb passwd-file {
---
>   userdb passwd-file {
1013,1014c1013,1014
<     args =
<   # }
---
>     args = /usr/local/etc/dovecot.passwd
>   }
1185d1184
<   quota_rule = *:storage=7500




Diff in lang mit Kontext zum Verständnis:

--- dovecot.conf-OLD    2010-04-08 22:08:27.000000000 +0200      
+++ dovecot.conf        2010-04-08 22:06:38.000000000 +0200      
@@ -215,7 +215,7 @@                                              
 #                                                               
 # See <doc/wiki/Variables.txt> for full list. Some examples:    
 #                                                               
-mail_location = maildir:~/Maildir                               
+mail_location = maildir:/var/vmail/%u/Maildir                   
 #   mail_location = mbox:~/mail:INBOX=/var/mail/%u              
 #   mail_location = mbox:/var/mail/%d/%1n/%n:INDEX=/var/indexes/%d/%1n/%n
 #                                                                        
@@ -296,8 +296,8 @@                                                       
 # System user and group used to access mails. If you use multiple, userdb
 # can override these by returning uid or gid fields. You can use either numbers
 # or names. <doc/wiki/UserIds.txt>                                             
-#mail_uid =                                                                    
-#mail_gid =                                                                    
+mail_uid = vmail                                                               
+mail_gid = vmail                                                               
                                                                                
 # Group to enable temporarily for privileged operations. Currently this is     
 # used only with INBOX when either its initial creation or dotlocking fails.   
@@ -1002,16 +1002,16 @@                                                         
     # logged in as each others!                                                
     #args = blocking=yes                                                       
   #}                                                                           
-  userdb static {
-    args = uid=vmail gid=vmail home=/var/vmail/%u
-  }
+#  userdb static {
+#    args = uid=vmail gid=vmail home=/var/vmail/%u
+#  }

   # passwd-like file with specified location
   # <doc/wiki/AuthDatabase.PasswdFile.txt>
-  # userdb passwd-file {
+  userdb passwd-file {
     # [username_format=<format>] <Path for passwd-file>
-    args =
-  # }
+    args = /usr/local/etc/dovecot.passwd
+  }

   # checkpassword executable user database lookup
   # <doc/wiki/AuthDatabase.CheckPassword.txt>
@@ -1182,7 +1182,6 @@
   #   quota_warning = storage=95%% /usr/local/bin/quota-warning.sh 95
   #   quota_warning2 = storage=80%% /usr/local/bin/quota-warning.sh 80
   quota = maildir:User quota
-  quota_rule = *:storage=7500
   # ACL plugin. vfile backend reads ACLs from "dovecot-acl" file from maildir
   # directory. You can also optionally give a global ACL directory path where
   # ACLs are applied to all users' mailboxes. The global ACL directory contains



-- 
Heinlein Professional Linux Support GmbH
Linux: Akademie - Support - Hosting

http://www.heinlein-support.de
Tel: 030 / 40 50 51 - 0
Fax: 030 / 40 50 51 - 19

Zwangsangaben lt. §35a GmbHG:
HRB 93818 B / Amtsgericht Berlin-Charlottenburg,
Geschäftsführer: Peer Heinlein  -- Sitz: Berlin



Mehr Informationen über die Mailingliste Postfixbuch-users