I have this account, /usr/home/me To be able to admin websites, I created a folder /usr/home/me/www , containing my siteroot /usr/home/me/www/mysite.com
My dovecot.config: mail_location = mbox:/home/%u:INBOX=/var/mail/%u
the actual mailfolder is /usr/home/me/mail , which I defined in my mailclient as 'mail/'
The issue now is that Dovecot is indexing my whole /usr/home/me/ folder, including the www folder, in which it also idexes every folder that is in /usr/home/me/www/mysite.com . It puts in these folders an .imap folder that is containing the exact content of the folder it is put in. So my site takes double space by this Dovecot indexing.
To solve this issue, I defined my mail_location line as mail_location = mbox:/home/%u/mail:INBOX=/var/mail/%u and removed the 'mail/' directive from my mail client.
For some reason this does not prevent Dovecot to index the subfolders of /usr/home/me/www/
- Do I have to remove all Dovecot related indexing files by hand to solve this and restart Dovecot service afterwards?
- Can you tell me how I can define the Dovecot index files location so that there will be no .imap folder created anymore in my /usr/home/me/www/ subfolder(s)?
Thanks for you help! Elise
#CSSis {beautiful};
Hi Elise,
On 03/04/2021 01:39 Elise dovecot_ml@cloudzeeland.nl wrote:
I have this account, /usr/home/me To be able to admin websites, I created a folder /usr/home/me/www , containing my siteroot /usr/home/me/www/mysite.com
My dovecot.config: mail_location = mbox:/home/%u:INBOX=/var/mail/%u
the actual mailfolder is/usr/home/me/mail , which I defined in my mailclient as 'mail/'
The issue now is that Dovecot is indexing my whole/usr/home/me/ folder, including the www folder, in which it also idexes every folder that is in/usr/home/me/www/mysite.com .
This is very unsafe, as you already noticed. Dovecot will iterate all folders it can find, even if you are only opening mail/.
It puts in these folders an .imap folder that is containing the exact content of the folder it is put in. So my site takes double space by this Dovecot indexing.
The .imap folder will not contain duplicate of your mails. It contains indexes. These are not going to end up being same size as your mailbox.
To solve this issue, I defined my mail_location line asmail_location = mbox:/home/%u/mail:INBOX=/var/mail/%u and removed the 'mail/' directive from my mail client.
For some reason this does not prevent Dovecot to index the subfolders of/usr/home/me/www/
- Do I have to remove all Dovecot related indexing files by hand to solve this and restart Dovecot service afterwards?
You will have to restart dovecot.
- Can you tell me how I can define the Dovecot index files location so that there will be no .imap folder created anymore in my/usr/home/me/www/ subfolder(s)?
Once you fix your mbox to point to correct location, they stop appearing.
Thanks for you help! Elise
#CSSis {beautiful};
Aki
Op 3-4-21 om 9:39 schreef Aki Tuomi:
The .imap folder will not contain duplicate of your mails. It contains indexes. These are not going to end up being same size as your mailbox.
Sorry, what I meant to say is that in every subfolder of the user/home folder Dovecot is creating a .imap folder, replicating the folder content the .imap is in.
In my case, having this www folder with my website in my home/user folder (where Dovecot is starting indexing), the folder structure is replicated serveral times with the .imap index folders that Dovecot creates.
I have solved the issue by moving the www folder out of the home/user folder so that it is not indexed by Dovecot anymore.
Thanks for your help! Elise
participants (2)
-
Aki Tuomi
-
Elise