felix at kngnt.org
2017-Nov-19 08:57 UTC
home folder for virtual users with autoexpunge setting
Hi all, I have enabled today the autoexpunge setting for Trash folders, and I am getting the following error when Dovecot starts: imap(<USER>): Error: autoexpunge: Couldn't create dovecot.autoexpunge.lock lock: User has no home directory I understand this is correct: as <USER> is a virtual user, it does not have home folder. Is there any way I can set the autoexpunge plugin to store the lock file in the virtual user email home folder? Thank you! Felix
On 19.11.2017 10:57, felix at kngnt.org wrote:> Hi all, > > I have enabled today the autoexpunge setting for Trash folders, and I am getting the following error when Dovecot starts: > > imap(<USER>): Error: autoexpunge: Couldn't create dovecot.autoexpunge.lock lock: User has no home directory > > I understand this is correct: as <USER> is a virtual user, it does not have home folder. Is there any way I can set the autoexpunge plugin to store the lock file in the virtual user email home folder? > > Thank you! > FelixYou need to set mail_home to something, return userdb_home from passdb, or home from userdb. Even for virtual users. Aki
Steffen Kaiser
2017-Nov-21 07:35 UTC
home folder for virtual users with autoexpunge setting
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sun, 19 Nov 2017, felix at kngnt.org wrote:> I understand this is correct: as <USER> is a virtual user, it does not > have home folder. Is there any way I can set the autoexpunge plugin to > store the lock file in the virtual user email home folder?well, home folder in Dovecot != $HOME (or ~user), but user-specific besides the mail storage root folder: https://wiki2.dovecot.org/VirtualUsers/Home Dovecot however uses ~ as abbrevation for "home directory". - -- Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEVAwUBWhPXQ3z1H7kL/d9rAQJBHwf+PjLMPpRPLuNC9NztmJ9G+1xo+vwQBWDM TZZ2+LHg453ojhR/vdZhuhwl/UnMPq+PTyCINwtSzcvHjeRY9GCtUlnPWSH4nHN8 1x7YlsZm6kLa9K0d2e7MJ52s9yUEHlxtvIUxuRMrFfQyc6sHm7Q8WTGNDCH12N8q Ob8sikXdh7+IFJvRP2sjXAb4MldPFudio5CtSfQ0MbrgLEp/pl8BCbrlcycpHCPX s6+cis0GXaKu4ntCyUZAbsckPJ30JFAxhRNltUo+nmCCF4BY1Md87geyUnDr8ehE 4mJP4M4KfZne9i/+XTPuPfw4H3cCNMq3svBJtpLcvqWmnjnLzOhhyQ==YVgN -----END PGP SIGNATURE-----
felix at kngnt.org
2017-Nov-21 11:12 UTC
home folder for virtual users with autoexpunge setting
Hi Steffen, Thank you very much for your answer, I did not know I was supposed to have that home folder. I have moved everything on the folder <user home folder>/* to <user home folder>/mail. I have restarted dovecot and nothing seems to be broken. However, I see I have the following files inside <user home folder>/mail : dovecot-acl-list dovecot.list.index.log dovecot.mailbox.log.2 dovecot.sieve.log dovecot.svbin dovecot-uidvalidity.51e5857f sieve storage dovecot.list.index dovecot.mailbox.log dovecot.sieve dovecot.sieve.log.0 dovecot-uidvalidity mailboxes spamassassin subscriptions Which ones should I move to <user home folder>/ ? Thank you! Felix November 21, 2017 9:08 AM, "Steffen Kaiser" <skdovecot at smail.inf.fh-brs.de> wrote:> -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On Sun, 19 Nov 2017, felix at kngnt.org wrote: > >> I understand this is correct: as <USER> is a virtual user, it does not > have home folder. Is there >> any way I can set the autoexpunge plugin to > store the lock file in the virtual user email home >> folder? > > well, home folder in Dovecot != $HOME (or ~user), but user-specific besides the mail storage root > folder: > > https://wiki2.dovecot.org/VirtualUsers/Home > > Dovecot however uses ~ as abbrevation for "home directory". > > - -- Steffen Kaiser > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1 > > iQEVAwUBWhPXQ3z1H7kL/d9rAQJBHwf+PjLMPpRPLuNC9NztmJ9G+1xo+vwQBWDM > TZZ2+LHg453ojhR/vdZhuhwl/UnMPq+PTyCINwtSzcvHjeRY9GCtUlnPWSH4nHN8 > 1x7YlsZm6kLa9K0d2e7MJ52s9yUEHlxtvIUxuRMrFfQyc6sHm7Q8WTGNDCH12N8q > Ob8sikXdh7+IFJvRP2sjXAb4MldPFudio5CtSfQ0MbrgLEp/pl8BCbrlcycpHCPX > s6+cis0GXaKu4ntCyUZAbsckPJ30JFAxhRNltUo+nmCCF4BY1Md87geyUnDr8ehE > 4mJP4M4KfZne9i/+XTPuPfw4H3cCNMq3svBJtpLcvqWmnjnLzOhhyQ=> =YVgN > -----END PGP SIGNATURE-----
Steffen Kaiser
2017-Nov-21 11:33 UTC
home folder for virtual users with autoexpunge setting
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tue, 21 Nov 2017, felix at kngnt.org wrote:> dovecot-acl-list > dovecot.list.index.log > dovecot.mailbox.log.2 > dovecot-uidvalidity.51e5857f > storage > dovecot.list.index > dovecot-uidvalidity > dovecot.mailbox.log > mailboxes > subscriptions > > Which ones should I move to <user home folder>/ ?these:> dovecot.sieve.log > dovecot.svbin > sieve > dovecot.sieve > dovecot.sieve.log.0I'm not sure about this one:> spamassassinThis is probably used by an plugin or something like that, so it should go into home as well.> > Thank you! > Felix > > November 21, 2017 9:08 AM, "Steffen Kaiser" <skdovecot at smail.inf.fh-brs.de> wrote: > >> -----BEGIN PGP SIGNED MESSAGE----- >> Hash: SHA1 >> >> On Sun, 19 Nov 2017, felix at kngnt.org wrote: >> >>> I understand this is correct: as <USER> is a virtual user, it does not > have home folder. Is there >>> any way I can set the autoexpunge plugin to > store the lock file in the virtual user email home >>> folder? >> >> well, home folder in Dovecot != $HOME (or ~user), but user-specific besides the mail storage root >> folder: >> >> https://wiki2.dovecot.org/VirtualUsers/Home >> >> Dovecot however uses ~ as abbrevation for "home directory". >> >> - -- Steffen Kaiser >> -----BEGIN PGP SIGNATURE----- >> Version: GnuPG v1 >> >> iQEVAwUBWhPXQ3z1H7kL/d9rAQJBHwf+PjLMPpRPLuNC9NztmJ9G+1xo+vwQBWDM >> TZZ2+LHg453ojhR/vdZhuhwl/UnMPq+PTyCINwtSzcvHjeRY9GCtUlnPWSH4nHN8 >> 1x7YlsZm6kLa9K0d2e7MJ52s9yUEHlxtvIUxuRMrFfQyc6sHm7Q8WTGNDCH12N8q >> Ob8sikXdh7+IFJvRP2sjXAb4MldPFudio5CtSfQ0MbrgLEp/pl8BCbrlcycpHCPX >> s6+cis0GXaKu4ntCyUZAbsckPJ30JFAxhRNltUo+nmCCF4BY1Md87geyUnDr8ehE >> 4mJP4M4KfZne9i/+XTPuPfw4H3cCNMq3svBJtpLcvqWmnjnLzOhhyQ=>> =YVgN >> -----END PGP SIGNATURE----- > >- -- Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEVAwUBWhQPH8QnQQNheMxiAQJDEQgAv7jPTkGDZSC3iuYWutWcflJE+FbRoC6a T3E932MHUHU0b3kXmzubFyXgKdLIWcWmZD6R+e1x0ys1Hc/4SzcdSPlpyNYCKzUf beQeMQZFa7vvXuLlUaFBMnV5LCl2VlnT5sxm9hcu3mQAP2fj6A2fmJ1d5Mv5eepP id3ILPTs+eO/ms03GJAwTtgqm8XVUhK+idXJEibvGKCuNDZKbq9XGyiHac74tpvX q8EjBwy7VJ1l4B9XTr8GLuqRKApKtu6s9MC5GFeiVU9Qzt5Q4XseUf0ucDfbJ6XP 6MGvLWPLrsanoeDbHrz8P1kNf8luzr6wnu8KwkbFBEKE7QjaE9YhiQ==b/+T -----END PGP SIGNATURE-----