[Dovecot] Per User Quotas

Peter Fraser petros.fraser at gmail.com
Thu Oct 15 22:50:09 EEST 2009


Here they are

mail# dovecot -n
# 1.1.16: /usr/local/etc/dovecot.conf
# OS: FreeBSD 7.2-RELEASE-p1 i386
protocols: imaps pop3s imap
ssl_cert_file: /usr/local/etc/dovecot/ssl/certs/dovecot.pem
ssl_key_file: /usr/local/etc/dovecot/ssl/private/dovecot.pem
ssl_cipher_list: ALL:!ADH!LOW:!SSLv2:!EXP:+HIGH:+MEDIUM
disable_plaintext_auth: no
login_dir: /var/run/dovecot/login
login_executable(default): /usr/local/libexec/dovecot/imap-login
login_executable(imap): /usr/local/libexec/dovecot/imap-login
login_executable(pop3): /usr/local/libexec/dovecot/pop3-login
login_greeting: POP3 Server ready.
verbose_proctitle: yes
first_valid_gid: 0
mail_access_groups: mail
mail_location: maildir:~/Maildir
mail_debug: yes
mail_executable(default): /usr/local/libexec/dovecot/imap
mail_executable(imap): /usr/local/libexec/dovecot/imap
mail_executable(pop3): /usr/local/libexec/dovecot/pop3
mail_plugins(default): quota imap_quota
mail_plugins(imap): quota imap_quota
mail_plugins(pop3): quota
mail_plugin_dir(default): /usr/local/lib/dovecot/imap
mail_plugin_dir(imap): /usr/local/lib/dovecot/imap
mail_plugin_dir(pop3): /usr/local/lib/dovecot/pop3
imap_client_workarounds(default): delay-newmail outlook-idle
netscape-eoh tb-extra-mailbox-sep
imap_client_workarounds(imap): delay-newmail outlook-idle netscape-eoh
tb-extra-mailbox-sep
imap_client_workarounds(pop3):
pop3_client_workarounds(default):
pop3_client_workarounds(imap):
pop3_client_workarounds(pop3): outlook-no-nuls oe-ns-eoh
auth default:
  username_format: %Lu
  debug: yes
  passdb:
    driver: pam
  passdb:
    driver: ldap
    args: /usr/local/etc/dovecot-ldap.conf
  userdb:
    driver: ldap
    args: /usr/local/etc/dovecot-ldap.conf
  userdb:
    driver: passwd
plugin:
  quota: maildir
  quota2: maildir:user quota
  quota_rule: *:storage=512M
  quota_rule2: Trash:storage=10M
  quota_rule3: SPAM:ignore

Maillog Below
Oct 15 14:44:22 mail dovecot: dovecot v1.1.16 starting up
Oct 15 14:44:23 mail dovecot: auth(default): new auth connection: pid=27040
Oct 15 14:44:23 mail dovecot: auth(default): new auth connection: pid=27038
Oct 15 14:44:23 mail dovecot: auth(default): new auth connection: pid=27039
Oct 15 14:44:23 mail dovecot: auth(default): new auth connection: pid=27041
Oct 15 14:44:23 mail dovecot: auth(default): new auth connection: pid=27042
Oct 15 14:44:23 mail dovecot: auth(default): new auth connection: pid=27043
Oct 15 14:45:43 mail dovecot: auth(default): new auth connection: pid=27048
Oct 15 14:45:45 mail dovecot: auth(default): client in: AUTH    1
 PLAIN   service=imap    secured lip=192.168.1.80
rip=192.168.1.
Oct 15 14:45:45 mail dovecot: auth(default): client out: CONT   1
Oct 15 14:45:45 mail dovecot: auth(default): client in: CONT<hidden>
Oct 15 14:45:45 mail dovecot: auth-worker(default):
pam(peter.fraser,192.168.1.112): lookup service=dovecot
Oct 15 14:45:45 mail dovecot: auth-worker(default):
pam(peter.fraser,192.168.1.112): #1/1 style=1 msg=Password:
Oct 15 14:45:45 mail dovecot: auth-worker(default):
pam(peter.fraser,192.168.1.112): pam_authenticate() failed:
authentication error (password
Oct 15 14:45:45 mail dovecot: auth(default): client out: OK     1
 user=peter.fraser
Oct 15 14:45:45 mail dovecot: auth(default): master in: REQUEST 1
 27043   1
Oct 15 14:45:45 mail dovecot: auth(default):
ldap(peter.fraser,192.168.1.112): user search: base=dc=atlas,dc=local
scope=subtree filter=(&(obj
Oct 15 14:47:28 mail postfix/scache[26993]: statistics: start interval
Oct 15 14:44:08



On Thu, Oct 15, 2009 at 2:25 PM, Timo Sirainen <tss at iki.fi> wrote:
> On Thu, 2009-10-15 at 14:11 -0500, Peter Fraser wrote:
>> user_attrs = streetAddress=quota_rule=*:storage=%$M
>> ,=uid=uid,=gid=gid,=home=/home/vmail/%u
>
> The =uid=uid part looks wrong. Should be more like =uid=1000, =gid=1000.
>
> Anyway.. Post again dovecot -n output and also logs with auth_debug=yes
> and mail_debug=yes.
>
>


More information about the dovecot mailing list