[Dovecot] questions about SETQUOTA

Michael Cramer michael at bigmichi1.de
Fri Jan 24 20:57:34 EET 2014


Zitat von Steffen Kaiser <skdovecot at smail.inf.fh-brs.de>:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On Thu, 23 Jan 2014, Michael Cramer wrote:
>
>> i tried to setup my configuration to use the SETQUOTA command but  
>> the only thing i got is:
>>
>> 3 setquota "User quota" (storage 12345)
>> 3 OK Setquota completed.
>>
>> but nothing is changed in database.
>>
>> i modified the password_query and the user_query to return the  
>> admin and userdb_admin field, both set to y.
>>
>> all other changes that are done are like in the wiki  
>> http://wiki2.dovecot.org/Quota/Configuration
>
> Please post your doveconf -n
>
> - -- Steffen Kaiser
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.11 (GNU/Linux)
>
> iQEVAwUBUuIZ1nD1/YhP6VMHAQKVCwgAgS9VVyagJLyw/1EPb/IqpQDOx20yVnzM
> nX9mu0mvVpuMrCS22VXsEssMQhD2xJ7X+0fL/3eeajXHUdcbAFwTnupndf37U90y
> qdi0OGzorbgzltUYDXhPx1wwTPRUs62t4PB3Nbhca/zgT5JeH0Jy2L6q9+CXsYlV
> l/rA111qGNptxjjtsPACbuquctXJ1bFf3IKKmLn2GbJCruZEbFm47m3YctN3FewC
> tHaTP+3j9oVu+vKlFxTo7NL60lkxPfDzi4B2fPXI3eUvP/BTrAcwgVMbvMJp0DyT
> U6Mb4il1ReSsgOdqa6iwp9vff1R+FoYMUz4E6wuR7f08pGMu8n8UIw==
> =xlbQ
> -----END PGP SIGNATURE-----


# 2.2.10 (6b8ae0ba5959): /etc/dovecot/dovecot.conf
# OS: Linux 3.11.0-15-generic x86_64 Ubuntu 13.10 ext4
auth_master_user_separator = *
auth_mechanisms = plain login
debug_log_path = /var/log/dovecot/debug.log
dict {
   acl = pgsql:/etc/dovecot/dovecot-dict-sql.conf.ext
   expire = pgsql:/etc/dovecot/dovecot-dict-sql.conf.ext
   quota = pgsql:/etc/dovecot/dovecot-dict-sql.conf.ext
}
first_valid_gid = 8
first_valid_uid = 8
imap_metadata = yes
info_log_path = /var/log/dovecot/info.log
last_valid_gid = 8
last_valid_uid = 8
log_path = /var/log/dovecot/error.log
mail_attribute_dict = file:/srv/vmail/dovecot/metadata/%d/%n/attributes
mail_gid = 8
mail_location =  
mdbox:/srv/vmail/dovecot/mail/%d/%n:INDEX=/srv/vmail/dovecot/indexes/shared/%d/%n
mail_plugins = quota zlib acl expire virtual fts fts_solr mail_log  
notify stats
mail_uid = 8
mailbox_list_index = yes
managesieve_notify_capability = mailto
managesieve_sieve_capability = fileinto reject envelope  
encoded-character vacation subaddress comparator-i;ascii-numeric  
relational regex imap4flags copy include variables body enotify  
environment mailbox date ihave imapflags notify
mdbox_preallocate_space = yes
mdbox_rotate_size = 10 M
namespace {
   list = children
   location =  
mdbox:/srv/vmail/dovecot/mail/%%d/%%n:INDEX=/srv/vmail/dovecot/indexes/shared/%%d/%%n:INDEXPVT=/srv/vmail/dovecot/indexes/private/%d/%n/shared/%%u
   prefix = Shared/%%u/
   separator = /
   subscriptions = no
   type = shared
}
namespace inbox {
   inbox = yes
   location =
   mailbox Archive {
     auto = subscribe
     special_use = \Archive
   }
   mailbox Drafts {
     auto = subscribe
     special_use = \Drafts
   }
   mailbox Sent {
     auto = subscribe
     special_use = \Sent
   }
   mailbox Spam {
     auto = subscribe
     special_use = \Junk
   }
   mailbox Trash {
     auto = subscribe
     special_use = \Trash
   }
   mailbox virtual/All {
     auto = subscribe
     special_use = \All
   }
   mailbox virtual/Flagged {
     auto = subscribe
     special_use = \Flagged
   }
   prefix =
   separator = /
   type = private
}
namespace virtual {
   location =  
virtual:/srv/vmail/dovecot/virtual:INDEX=/srv/vmail/dovecot/indexes/shared/%d/%n/virtual
   prefix = virtual/
   separator = /
}
passdb {
   args = /etc/dovecot/dovecot-sql-master.conf.ext
   driver = sql
   master = yes
   pass = yes
}
passdb {
   args = /etc/dovecot/dovecot-sql.conf.ext
   driver = sql
}
passdb {
   args = /etc/dovecot/passwd.masterusers
   driver = passwd-file
   master = yes
   pass = yes
}
plugin {
   acl = vfile:/srv/vmail/dovecot/acl:cache_secs=300
   acl_anyone = allow
   acl_shared_dict = proxy::acl
   expire = Trash
   expire1 = Trash/*
   expire2 = Spam
   expire_dict = proxy::expire
   fts = solr
   fts_autoindex = yes
   fts_solr = break-imap-search url=http://localhost:8080/solr/dovecot/
   quota = dict:User quota::proxy::quota
   quota_set = dict:proxy::quota
   quota_warning = storage=95%% quota-warning 95 %u
   quota_warning2 = storage=80%% quota-warning 80 %u
   quota_warning3 = -storage=100%% quota-warning below %u
   sieve = /srv/vmail/dovecot/sieve/%d/%n/.dovecot.sieve
   sieve_default = /srv/vmail/dovecot/sieve/default.sieve
   sieve_dir = /srv/vmail/dovecot/sieve/%d/%n/user
   sieve_extensions = +notify +imapflags
   sieve_global_dir = /srv/vmail/dovecot/sieve/global
   stats_refresh = 30 secs
   stats_track_cmds = yes
   zlib_save = gz
   zlib_save_level = 6
}
postmaster_address = postmaster at domain.com
protocols = " imap lmtp sieve"
service auth-worker {
   user = $default_internal_user
}
service auth {
   unix_listener /var/spool/postfix/private/auth {
     group = postfix
     mode = 0666
     user = postfix
   }
   unix_listener auth-userdb {
     group = mail
     mode = 0666
     user = mail
   }
}
service dict {
   unix_listener dict {
     group = mail
     mode = 0660
     user = mail
   }
}
service managesieve-login {
   inet_listener sieve {
     port = 4190
   }
}
service quota-warning {
   executable = script /usr/local/bin/quota-warning.sh
   unix_listener quota-warning {
     user = mail
   }
   user = dovecot
}
service stats {
   fifo_listener stats-mail {
     mode = 0600
     user = mail
   }
}
ssl_cert = </srv/ssl/ssl-unified.crt
ssl_key = </srv/ssl/ssl-decrypted.key
userdb {
   args = /etc/dovecot/dovecot-sql.conf.ext
   driver = sql
}
protocol lda {
   debug_log_path = /var/log/dovecot/deliver-debug.log
   info_log_path = /var/log/dovecot/deliver-info.log
   log_path = /var/log/dovecot/deliver-errors.log
   mail_plugins = quota zlib acl expire virtual fts fts_solr mail_log  
notify stats sieve
}
protocol imap {
   mail_plugins = quota zlib acl expire virtual fts fts_solr mail_log  
notify stats imap_quota imap_acl imap_zlib imap_stats
}




More information about the dovecot mailing list