[Dovecot] Imap service and quota
Hi, i have just migrated from courier-imap to dovecot. im using it with vpopmail, the pop service is working ok but the imap service for imp webmail is not writing the quota information to the maildirsize file, as recommended in the docs, i have this in dovecot.conf :
plugin { # Quota plugin. Multiple backends are supported: # dirsize: Find and sum all the files found from mail directory. # Extremely SLOW with Maildir. It'll eat your CPU and disk I/O. # dict: Keep quota stored in dictionary (eg. SQL) # maildir: Maildir++ quota # fs: Read-only support for filesystem quota quota = maildir
}
This only happend with imp/imap, there is not problem using a pop client Regards,
Hi Miguel,
On Tue, 21 Aug 2007 11:50:10 -0600 Miguel mmiranda@123.com.sv wrote:
Hi, i have just migrated from courier-imap to dovecot. im using it with vpopmail, the pop service is working ok but the imap service for imp webmail is not writing the quota information to the maildirsize file, as recommended in the docs, i have this in dovecot.conf :
plugin { # Quota plugin. Multiple backends are supported: # dirsize: Find and sum all the files found from mail directory. # Extremely SLOW with Maildir. It'll eat your CPU and disk I/O. # dict: Keep quota stored in dictionary (eg. SQL) # maildir: Maildir++ quota # fs: Read-only support for filesystem quota quota = maildir
}
This only happend with imp/imap, there is not problem using a pop client Regards,
Have you added the quota plugin to the imap service? As far as I've understood the docs it needs to be in every service. However, I'm new to dovecot, too, so I may be wrong.
Baltasar
--
_____ FORMER 03 GmbH _____ infanteriestra§e 19 haus 6 eg _____ 80797 muenchen
_____ www.former03.de
I am almost done migrating to a new server using Dovecot + Postfix + Postfixadmin/MySQL. I am a bit confused about how to mix the system (pam) and virtual (SQL) users though.
I see that in dovecot.conf, there is a default_mail_env variable but that seems to apply to both cases. I really need a default for each type of authentication.
My virtual users are in /var/vmail/domain/user and my system users are in /home/user/Maildir
any ideas? I can get one or the other to work but not both at this point.
Thanks,
Tim
Answering my own question:
In dovecot-sql.conf:
user_query = SELECT '/var/vmail/' as home, maildir as mail,
postfix_uid as uid, postfix_gid as gid FROM mailbox WHERE username = '%u'
And in dovecot.conf userdb/passwdb sections:
args = home=maildir:~/Maildir/
it's not as clean as I'd like but seems to do the trick.
The only other thing that got me really confused was passwd schemes. I am migrating vpopmail password database and I had to specify MD5 in dovecot-sql.conf.
Thanks,
Tim
Tim Tsai wrote:
I am almost done migrating to a new server using Dovecot + Postfix + Postfixadmin/MySQL. I am a bit confused about how to mix the system (pam) and virtual (SQL) users though.
I see that in dovecot.conf, there is a default_mail_env variable but that seems to apply to both cases. I really need a default for each type of authentication.
My virtual users are in /var/vmail/domain/user and my system users are in /home/user/Maildir
any ideas? I can get one or the other to work but not both at this point.
Thanks,
Tim
participants (3)
-
FORMER 03 | Baltasar Cevc
-
Miguel
-
Tim Tsai