home folder for virtual users with autoexpunge setting

Aki Tuomi aki.tuomi at dovecot.fi
Tue Nov 21 09:30:07 EET 2017



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!
>  Felix

You need to set mail_home to something, return userdb_home from passdb,
or home from userdb. Even for virtual users.

Aki


More information about the dovecot mailing list