Hello there.
I do like Dovecot so far, but ran into problem I cant seem to solve, maybe someone can point me into right direction please. I am running version 1.0.rc15 on CentOS 5 Linux i386 system, ext3 fs. The problem is I cant get the maildir: and :ignore to work together. Here is my SQL query, that includes the Quota field.
# cat /etc/dovecot-sql.conf | grep -i quota user_query = SELECT maildir AS home, 901 AS uid, 901 AS gid, CONCAT('maildir:storage=', floor(IF(quota!=0, quota,-1)/1000), ':ignore=Trash') AS quota FROM mailbox WHERE username = '%u' AND active = '1'
Even Dovecot agrees it seems correct.
# cat /var/log/maillog | grep kaktus | grep quota\= | tail -n1
Sep 30 23:37:33 XXXXXX dovecot: auth(default): master out: USER
5 XXX@XXX.cz home=XXX uid=901 gid=901
quota=maildir:storage=1024:ignore=Trash
I hope this is the correct way. Looking at IMAP communication with Wireshark, the server seems to ignore my settings.
118 uid copy 22 Trash\r\n 118 NO Quota exceeded\r\n
Anyone can help me, please ? Thank you in advance.
# dovecot -n # /etc/dovecot.conf listen: [*] ssl_ca_file: /etc/postfix/ssl/cacert.pem ssl_cert_file: /etc/postfix/ssl/smtpd.crt ssl_key_file: /etc/postfix/ssl/smtpd.key login_dir: /var/run/dovecot/login login_executable(default): /usr/libexec/dovecot/imap-login login_executable(imap): /usr/libexec/dovecot/imap-login login_executable(pop3): /usr/libexec/dovecot/pop3-login login_greeting: login_greeting_capability(default): yes login_greeting_capability(imap): yes login_greeting_capability(pop3): no first_valid_uid: 901 last_valid_uid: 901 mail_location: maildir:/srv/mail/%d/%n mail_executable(default): /usr/libexec/dovecot/imap mail_executable(imap): /usr/libexec/dovecot/imap mail_executable(pop3): /usr/libexec/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/imap mail_plugin_dir(imap): /usr/lib/dovecot/imap mail_plugin_dir(pop3): /usr/lib/dovecot/pop3 auth default: mechanisms: plain login cram-md5 digest-md5 apop user: nobody verbose: yes debug: yes passdb: driver: sql args: /etc/dovecot-sql.conf userdb: driver: prefetch userdb: driver: sql args: /etc/dovecot-sql.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: 384 user: vmail group: vmail
participants (2)
-
Timo Sirainen
-
Tomas Horacek