[Dovecot] Imap and quota problem
Hi everyone,
i am using dovecot 1.0 as IMAP and i am facing the following problem: when a user is overquota he is unable to access his account and thus he can't delete emails !
Is there any workaround for this problem ?
thanks for any help.
____________________________________________________________________________________
Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs
Hi,
you should put indexes in a filesystem without quotas.
Something like:
mail_location = maildir:~/Maildir:INDEX=/var/dovecot/%u:CONTROL=/var/dovecot/%u
where /var/dovecot/ doesn't use quotas.
Aaaaaaaaagur.
El Wednesday 05 December 2007 10:56:03 Najib Abi Fadel escribió:
Hi everyone,
i am using dovecot 1.0 as IMAP and i am facing the following problem: when a user is overquota he is unable to access his account and thus he can't delete emails !
Is there any workaround for this problem ?
thanks for any help.
_________ Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs
-- Joseba Torre. CIDIR Bizkaia.
Are indexes temporary files ? Should i migrate anything in my existing setup ! Nad finally should i create a directory for every user in /var/dovecot/ ?
--- Joseba Torre joseba.torre@ehu.es wrote:
Hi,
you should put indexes in a filesystem without quotas.
Something like:
mail_location =
maildir:~/Maildir:INDEX=/var/dovecot/%u:CONTROL=/var/dovecot/%u
where /var/dovecot/ doesn't use quotas.
Aaaaaaaaagur.
El Wednesday 05 December 2007 10:56:03 Najib Abi Fadel escribió:
Hi everyone,
i am using dovecot 1.0 as IMAP and i am facing the following problem: when a user is overquota he is unable to access his account and thus he can't delete emails !
Is there any workaround for this problem ?
thanks for any help.
_________ Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs
-- Joseba Torre. CIDIR Bizkaia.
____________________________________________________________________________________
Looking for last minute shopping deals?
Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping
Hi,
El Wednesday 05 December 2007 12:06:16 Najib Abi Fadel escribió:
Are indexes temporary files ? Should i migrate anything in my existing setup !
If you are using an Imap only setup, I think that you have no need to migrate anything; all the needed files will be recreated when needed in the new location. But this may cause a little overhead on the system, so if your system is big, migrating the files may help.
If you are using also POP3, and if some users use the "leave messages on server" thing, you need to migrate the dovecot-uidlist files, or they will download all their messages again.
Nad finally should i create a directory for every user in /var/dovecot/ ?
Yes, and they should be owned by the users.
Here you have an example from my setup:
$ find /var/dovecot/lgstosej/ /var/dovecot/lgstosej/ /var/dovecot/lgstosej/.INBOX /var/dovecot/lgstosej/.INBOX/.imap.index /var/dovecot/lgstosej/.INBOX/.imap.index.data /var/dovecot/lgstosej/.INBOX/.customflags /var/dovecot/lgstosej/.INBOX/dovecot.index.log.2 /var/dovecot/lgstosej/.INBOX/dovecot.index.log /var/dovecot/lgstosej/.INBOX/dovecot-uidlist /var/dovecot/lgstosej/.INBOX/.imap.index.tree /var/dovecot/lgstosej/.INBOX/dovecot.index /var/dovecot/lgstosej/.INBOX/dovecot.index.cache /var/dovecot/lgstosej/.INBOX/dovecot-keywords /var/dovecot/lgstosej/.INBOX/.imap.index.log /var/dovecot/lgstosej/.sent-mail /var/dovecot/lgstosej/.sent-mail/dovecot.index.log /var/dovecot/lgstosej/.sent-mail/dovecot.index /var/dovecot/lgstosej/.sent-mail/dovecot.index.cache /var/dovecot/lgstosej/.sent-mail/dovecot-uidlist /var/dovecot/lgstosej/dovecot-uidlist /var/dovecot/lgstosej/.customflags /var/dovecot/lgstosej/subscriptions /var/dovecot/lgstosej/.Trash /var/dovecot/lgstosej/.Trash/dovecot.index.log /var/dovecot/lgstosej/.Trash/.imap.index /var/dovecot/lgstosej/.Trash/dovecot.index /var/dovecot/lgstosej/.Trash/dovecot.index.cache /var/dovecot/lgstosej/.Trash/dovecot-uidlist /var/dovecot/lgstosej/.Trash/dovecot-keywords /var/dovecot/lgstosej/.Trash/.imap.index.data /var/dovecot/lgstosej/.Trash/.customflags /var/dovecot/lgstosej/.Trash/.imap.index.tree /var/dovecot/lgstosej/.Trash/.imap.index.log
HTH
Joseba Torre. CIDIR Bizkaia.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Wed, 5 Dec 2007, Najib Abi Fadel wrote:
Are indexes temporary files ? Should i migrate
Yes and no, some hold temporary information, but the most ones contain meta information.
anything in my existing setup !
Yes http://wiki.dovecot.org/IndexFiles http://wiki.dovecot.org/MailLocation/Maildir http://wiki.dovecot.org/Quota/FS
duplicate the directory hierarchie and copy/move the files there, control files are dovecot-uidlist and subscriptions, the index files are dovecot.index*
Nad finally should i create a directory for every user in /var/dovecot/ ?
Dovecot is creating the directory hierarchie per user itself, for new users. In this case /var/dovecot is a tmp-like directory with 1777 permissions.
If you pre-create the directory per user, the standard permissions apply. BTW: The direcotory is variable-expanded, http://wiki.dovecot.org/Variables, see the %u in the sample.
Bye,
Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux)
iQEVAwUBR1aRjS9SORjhbDpvAQK7rQgAusKaD232g61ENi2f/biyDVFD/L7g8coG QcQnA4l8kcDcg4J6bXQmPulZZI37Kd25II+Kzg/sHHZJLC5/p0Z6KliMxU0eBVj1 bukAZQCA38oAotrQQ0olY6sZwKMv2wPAi1pGBjInodiNORg7PrxPGg0+bWyUuSpZ E4loGlP7B2LyhaRE1ENB8mDqCVNOUBqMyrg5ZdskQxpi40WOCPqWw1Ybt9h8WkSq 13lPCNKJJbkqN03SISLnewNZk0upJWo5HJJYKkJry+g3L1Yf+4JYSP7JiE5EZIVi zRkC6p1X3mLoXeFvEIyW+ieru9ffzeHFbi8eXiRZSV5Fy9WCThHQyg== =9Qiq -----END PGP SIGNATURE-----
participants (3)
-
Joseba Torre
-
Najib Abi Fadel
-
Steffen Kaiser