Hi,

On 05.09.2007, at 22:19, WJCarpenter wrote:

bc> When I put a standard quota into the config as follows, the
bc> delivery succeeds (apparently deliver checks the standard quota,
bc> while IMAP correctly checks the quota from the database if it is
bc> returned.  Sep 5 21:46:11 ms4

bc> The mailbox is still over quota here, but deliver does not seem to
bc> notice.

I recently debugged that situation in my own configuration.  Are you
using prefetches for your user query?

If you are using prefetch for your userdb lookups, you still need a
separate user query to be used by deliver (it doesn't do the password
query).  The wiki pages show a configuration for keeping the prefetch
for IMAP but having a user query for deliver.  I don't know if that
works since I simply got rid of my prefetch completely and moved on to
a different problem when that cured it. (I plan to try to put the
prefetch back in later when I get some spare time.)

I do use prefetch, I have an separate query, too. Without that the quota fails completely.

Having both statements and prefetch, the quota works fine with IMAP and deliver when I have no quota line in the plugin section, when I add the line (see !!MARK!! below), the deliver takes the quota from that line instead of the database information. IMAP uses the information from the database all the time, no matter if I have a quota line in the config.


### SNIP /etc/dovecot/dovecot.conf
protocol imap {
  mail_plugins = quota trash imap_quota
}

protocol pop3 {
  pop3_uidl_format = %08Xu%08Xv
  pop3_client_workarounds = outlook-no-nuls oe-ns-eoh
}

protocol lda {
  postmaster_address = postmaster@<mydomain>
  auth_socket_path = /var/run/dovecot/auth-master
  mail_plugins = cmusieve quota
}

auth default {
  mechanisms = plain digest-md5 cram-md5 ntlm rpa
  passdb sql {
    args = /etc/dovecot/dovecot-sql.conf
  }
  userdb prefetch {
  }
  userdb sql {
    args = /etc/dovecot/dovecot-sql.conf
  }
  user = _dcauth
  socket listen {
    master {
      path = /var/run/dovecot/auth-master
      mode = 0600
      user = vmail
      group = mail
    }
  }
}

plugin {
  # !!MARK!!
# deliver seems to use the userdb quota only when I don't have the following line
  quota = maildir:storage=102400:messages=1000
  acl = vfile:/etc/dovecot/acls
  trash = /etc/dovecot/dovecot-trash.conf
}

### SNIP

_____ FORMER 03 GmbH
_____ www.former03.de

Attachment: PGP.sig
Description: This is a digitally signed message part

Reply via email to