Ja Du musst folgenden Part deaktivieren, so:
Code:
#userdb prefetch {
#}
Beides mal, unter auth default und einmal unter auth pysievd.
Das Plugin muss so aussehen:
Code:
plugin {
quota = maildir:User quota
quota_rule = *:storage=1G
}
Der SQL-String sieht dann so aus:
Code:
user_query = SELECT concat('/var/mail/virtual/', domain.domain_name, '/',mail_acc) as home, '1000' as uid, '8' as gid, concat('*:bytes=', quota) AS quota_rule FROM mail_users inner join domain on mail_users.domain_id = domain.domain_id WHERE mail_acc='%n' and (mail_type='normal_mail' OR mail_type='normal_mail,normal_forward');
Hier noch meine config zum vergleich:
Code:
base_dir: /var/run/dovecot/
protocols: imap pop3 imaps pop3s
disable_plaintext_auth: no
login_dir: /var/run/dovecot//login
login_executable(default): /usr/lib/dovecot/imap-login
login_executable(imap): /usr/lib/dovecot/imap-login
login_executable(pop3): /usr/lib/dovecot/pop3-login
mail_access_groups: mail
mail_location: maildir:/var/mail/virtual/%d/%n
mail_executable(default): /usr/lib/dovecot/imap
mail_executable(imap): /usr/lib/dovecot/imap
mail_executable(pop3): /usr/lib/dovecot/pop3
mail_plugins(default): quota imap_quota
mail_plugins(imap): quota imap_quota
mail_plugins(pop3): quota
mail_plugin_dir(default): /usr/lib/dovecot/modules/imap
mail_plugin_dir(imap): /usr/lib/dovecot/modules/imap
mail_plugin_dir(pop3): /usr/lib/dovecot/modules/pop3
pop3_uidl_format(default): %08Xu%08Xv
pop3_uidl_format(imap): %08Xu%08Xv
pop3_uidl_format(pop3): %u-%v
namespace:
type: private
prefix: INBOX.
inbox: yes
list: yes
subscriptions: yes
auth pysieved:
mechanisms: plain login
verbose: yes
passdb:
driver: checkpassword
args: /var/www/ispcp/engine/ispcp-dovecot-mngr
userdb:
driver: sql
args: /etc/dovecot/dovecot-sql-domain.conf
userdb:
driver: sql
args: /etc/dovecot/dovecot-sql-aliasdomain.conf
userdb:
driver: sql
args: /etc/dovecot/dovecot-sql-subdomain.conf
socket:
type: listen
client:
path: /var/run/pysieved/auth
mode: 432
user: vmail
group: mail
master:
path: /var/run/pysieved/auth-master
mode: 432
user: vmail
group: mail
auth default:
mechanisms: plain login
verbose: yes
passdb:
driver: checkpassword
args: /var/www/ispcp/engine/ispcp-dovecot-mngr
userdb:
driver: sql
args: /etc/dovecot/dovecot-sql-domain.conf
userdb:
driver: sql
args: /etc/dovecot/dovecot-sql-aliasdomain.conf
userdb:
driver: sql
args: /etc/dovecot/dovecot-sql-subdomain.conf
socket:
type: listen
client:
path: /var/spool/postfix/private/auth
mode: 432
user: postfix
group: postfix
master:
path: /var/run/dovecot/auth-master
mode: 432
user: vmail
group: mail
plugin:
quota: maildir:User quota
quota_rule: *:storage=1G
Greez BeNe