Dovecot autocreates the mail directory, but apparently it doesn't currently 
autocreate the home directory if it's located elsewhere. I'm not sure if it's 
really worth the trouble to change the code to do that. Ideally the mail 
directory would be under the home directory and this wouldn't be a problem. You 
could also change your new user creation to trigger mkdiring the user's home.

On 15.5.2013, at 15.57, Joan <aseq...@gmail.com> wrote:

> Sorry for this bump, but isn't there a better solution to have those
> folders than to be watching the logs for warnings and recreate them?
> 
> Regards,
> 
> Joan
> 
> 
> 2013/5/14 Joan <aseq...@gmail.com>
> 
>> Yes, all folder tree has vmail:vmail as the owner, and dovecot can create
>> the folders without issues.
>> I verified that when manually creating those folders, the warnings
>> disappear, the main issue still remains though.
>> When I send the first mail to a user he has this layout:
>>  cur
>>  dovecot.index.cache
>>  dovecot.index.log
>>  dovecot-uidlist
>>  dovecot-uidvalidity
>>  dovecot-uidvalidity.5191f7ad
>>  maildirsize
>>  new
>>  tmp
>> 
>> Sadly ,there's no home folder, so I've no other option than to create the
>> folder by hand?
>> 
>> 
>> 
>> 2013/5/14 Angel L. Mateo <ama...@um.es>
>> 
>> El 13/05/13 17:50, Steffen Kaiser escribió:
>>> 
>>> -----BEGIN PGP SIGNED MESSAGE-----
>>>> Hash: SHA1
>>>> 
>>>> On Mon, 13 May 2013, Joan wrote:
>>>> 
>>>> Hi Steffen, that was an error I hadn't spotted (copypasting error).
>>>>> Still
>>>>> after changing mail_home to the proper value (/home/vmail/%d/%n/home)
>>>>> the
>>>>> errors in the logs are the same
>>>>> 
>>>> 
>>>> Am I supposed to create the folders via an external script? Or is
>>>>>> there any option to make this automatic.
>>>>>> 
>>>>> 
>>>> As far as I know, the home directory is not created automatically. You
>>>> will need to use an external script.
>>>> 
>>>>         I have this config:
>>> 
>>> mail_home = /mail/users/mailboxes/%2Ln/%Ln
>>> mail_location = mdbox:%h/mdbox:INDEX=/mail/**indexes/%2Ln/%Ln
>>> 
>>>        In my config, mail_home is also auto created (I have dovecot
>>> 2.1.16)
>>> 
>>>        Do you have any error? Has dovecot user permissions to create
>>> direcotories/files under your /var/mail?
>>> 
>>> --
>>> Angel L. Mateo Martínez
>>> Sección de Telemática
>>> Área de Tecnologías de la Información
>>> y las Comunicaciones Aplicadas (ATICA)
>>> http://www.um.es/atica
>>> Tfo: 868887590
>>> Fax: 868888337
>>> 
>> 
>> 

Reply via email to