Dovecot keeps creating info files in mail directory instead of home
I've been trying to troubleshoot this for a while now, and I'm really at a loss.
My userdb is set up correctly to return home, and mail, and a test with 'doveadm user' verifies this:
# doveadm user user@domain field value uid 1000 gid 1000 home /var/domain/user mail maildir:/var/mail/user@domain
I've reloaded, restarted, stopped and started dovecot again - and even deleted the info files in the mail directory just to be sure - but each and every time I log in with imap, dovecot recreates the files again (dovecot.index.log, dovecot-uidlist, etc.) in the mail directory instead of home.
I've even made sure just in case that the home directory is accessible to all, and chmod 777, but nothing gets created there. And I dont get any errors at all in the logs.
I'm on the latest version (2.2.16).
-jf
-- He who settles on the idea of the intelligent man as a static entity only shows himself to be a fool.
Mensan / Full-Stack Technical Polymath / System Administrator 12 years over the entire web stack: Performance, Sysadmin, Ruby and Frontend
On 04/ 1/15 10:12 AM, Jeffrey 'jf' Lim wrote:
My userdb is set up correctly to return home, and mail, and a test with 'doveadm user' verifies this:
# doveadm user user@domain field value uid 1000 gid 1000 home /var/domain/user mail maildir:/var/mail/user@domain
I've reloaded, restarted, stopped and started dovecot again - and even deleted the info files in the mail directory just to be sure - but each and every time I log in with imap, dovecot recreates the files again (dovecot.index.log, dovecot-uidlist, etc.) in the mail directory instead of home.
You forgot to post your config. But the following might help:
http://wiki2.dovecot.org/MailLocation/Maildir http://wiki2.dovecot.org/MailLocation#indexfiles
On Wed, Apr 1, 2015 at 10:25 PM, Oscar del Rio delrio@mie.utoronto.ca wrote:
On 04/ 1/15 10:12 AM, Jeffrey 'jf' Lim wrote:
My userdb is set up correctly to return home, and mail, and a test with 'doveadm user' verifies this:
# doveadm user user@domain field value uid 1000 gid 1000 home /var/domain/user mail maildir:/var/mail/user@domain
I've reloaded, restarted, stopped and started dovecot again - and even deleted the info files in the mail directory just to be sure - but each and every time I log in with imap, dovecot recreates the files again (dovecot.index.log, dovecot-uidlist, etc.) in the mail directory instead of home.
You forgot to post your config. But the following might help:
http://wiki2.dovecot.org/MailLocation/Maildir http://wiki2.dovecot.org/MailLocation#indexfiles
Thanks. So I guess I had read http://wiki2.dovecot.org/VirtualUsers/Home wrongly (specifically, the statement about the home directory being the "mail user's private state directory"). I thought that state would include all of these files that I see in the maildir as well.
Thanks for the link to http://wiki2.dovecot.org/MailLocation#indexfiles. So that points out that the index files are stored by default in the maildir.
I'm having a hard time finding a similar statement for the control files, though (includes dovecot-uidvalidity* ?). http://wiki2.dovecot.org/MailLocation/Maildir#Control_files makes no mention of this. I assume this is also the case?
Back to the home directory: so what sort of "state" is stored in the home directory exactly? Are all of the files that I see here in the maildir either control files or index files?
-jf
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Wed, 1 Apr 2015, Jeffrey 'jf' Lim wrote:
On Wed, Apr 1, 2015 at 10:25 PM, Oscar del Rio delrio@mie.utoronto.ca wrote:
On 04/ 1/15 10:12 AM, Jeffrey 'jf' Lim wrote:
Back to the home directory: so what sort of "state" is stored in the home directory exactly? Are all of the files that I see here in the maildir either control files or index files?
http://wiki2.dovecot.org/VirtualUsers/Home
Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1
iQEVAwUBVSTz4Xz1H7kL/d9rAQJwWAgAmtzYCxZ8nZGpWnTx0UnSDY8jneHBkjW+ cxon6uQ43Htb8Z5q6BEmourWs9hicGkI2U95h0ntktsJd3ZbxDAu+YRfYCJMF3E0 yxppgjIOGV6JTiz4G+GwsxSDb9GuuojB7CffW8rXgbEIXvKMiqMVCSC677GEadzN uJuFZJwjsJk2DPJbBt6FWQDvqbuhTXbp+lfHZszQVeXYDdABfDN3EP6VfPdCeA6X z5GFVwdlEm84atw5z4wjtXu+I5RP67iBBVT8rxCXRlR6bsitHbQ8UTivQ1DX0Zjt pn5INHuPoOO70bDQ3DOqCtwolRecNoU+ia435elVYaEPfo5wNFNX5g== =q0u8 -----END PGP SIGNATURE-----
participants (3)
-
Jeffrey 'jf' Lim
-
Oscar del Rio
-
Steffen Kaiser