[Dovecot] Failed to create storage with data:

Chris Wakelin c.d.wakelin at reading.ac.uk
Wed Apr 13 19:09:12 EEST 2005


I'm wondering whether your "mail=" should have "maildir:" in it, i.e.
"mail=maildir:/var/mail/vhost/example.com/%n" or maybe it should not 
be there at all?

The error seems to come from src/imap/namespace.c (but I was tracing 
the wrong mail_storage_create_with_data() call before). The lines

mail = getenv("MAIL");
        if (mail == NULL) {
                /* support also maildir-specific environment */
                mail = getenv("MAILDIR");
                if (mail != NULL)
                        mail = t_strconcat("maildir:", mail, NULL);
        }

seem to suggest that MAIL should have "maildir:" in it for maildirs.

Best Wishes,
Chris

On Wed, 13 Apr 2005 17:16:37 +0200 Matthieu Imbert 
<matthieu.imbert at ens-lsh.fr> wrote:

> Chris Wakelin wrote:
>  > On Wed, 13 Apr 2005 16:44:43 +0200 Matthieu Imbert
>  > <matthieu.imbert at ens-lsh.fr> wrote:
>  >
>  >>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

--+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+--
Christopher Wakelin,                                c.d.wakelin at reading.ac.uk
IT Services Centre, The University of Reading,       Tel: +44 (0)118 378 8439
Whiteknights, Reading, RG6 2AF, UK                   Fax: +44 (0)118 975 3094




More information about the dovecot mailing list