[Dovecot] Failed to create storage with data:

Matthieu Imbert matthieu.imbert at ens-lsh.fr
Wed Apr 13 17:44:43 EEST 2005


Hi, i'm using dovecot-1.0-stable.

All my mail accounts are virtual accounts that come from pam with the 
following configuration in auth_default:
   passdb = pam
   userdb = static uid=5000 gid=5000 home=/var/mail/vhost/example.com/%n 
mail=/var/mail/vhost/example.com/%n

for a user foo, if the directory /var/mail/vhost/example.com/foo already 
exists, then all is ok, but if the directory doesn't exists, it seems 
dovecot is unable to create it "on the fly". I get the following error 
message:
   Failed to create storage with data: /var/mail/vhost/example.com/foo

i'm quite sure it is not a permission related problem (i made 
/var/mail/vhost/example.com world writable to be sure).

I'm currently trying to understand the maildir code... But could someone 
tell me if the maildir directory should exist for dovecot to work ?

In the case that the answer is yes, i would say in advance that it's a 
problem for sites hosting a lot of virtual users, since it means that 
these users must receive at least one mail for their mail account to 
work correctly (i use postfix as MTA, and if the user's maildir doesn't 
exist, postfix takes care of creating it). I'm not very fond of 
solutions with scripts taking care of creating users.

Thanks in advance for your answers :)

-- 

    \|||/
    (o o)                              Matthieu Imbert
ooO-(_)-Ooo------------------------------------------
              équipe administration réseau et systèmes
Ecole normale superieure lettres et sciences humaines
15, Parvis René Descartes BP 7000 69342 LYON cedex 07
tél 0437376127, secrétariat 0437376122 fax 0437376123
contact équipe réseau et systèmes <reseau at ens-lsh.fr>
        contact personnel <matthieu.imbert at ens-lsh.fr>
-----------------------------------------------------



More information about the dovecot mailing list