[Dovecot] question mailbox format

sc2 at gmx.at sc2 at gmx.at
Sat May 26 19:50:48 EEST 2007


hello marcus
>> Typically with mbox it would be set to:
>>
>> mail_location = mbox:~/mail:INBOX=/var/mail/%u
i know, i try it too so but then i get a error to.

On this system (Redhat 9), the mails are only saved in /var/spool/mail/%u
the problem is when i try it with :

a.) mbox:~/mail:INBOX=/var/spool/mail/%u
> mkdir_parents(/home/bernhard/mail) failed: Permission denied

b.) when i try it with mbox:/var/spool/mail/%u, INBOX same, and index 
/var/indexes all works fine except this,when somebody logs in, and  the 
mailbox exist he gets the email (from mbox file), but when the mbox does
not exist he makes a directory, instead of a file like /var/spool/mail/%u.
Example:
- mbox exist = all is ok
-mbox does not exist >he creates a directory with %u
but then new mails for this user not gone to %user mbox file, they are gone 
to %u directory (in directory) and then dovecot cant get it.

i hope i now didnt top -post, ( set the text after quote)
With Version 0.99, on nother dist. all works fine with same settings
thx
regards
----- Original Message ----- 
From: "Charles Marcus" <CMarcus at Media-Brokers.com>
To: "Dovecot Mailing List" <dovecot at dovecot.org>
Sent: Saturday, May 26, 2007 4:27 PM
Subject: Re: [Dovecot] question mailbox format


> On 5/26/2007 sc2 at gmx.at wrote:
>> ok after playing a while now it works , but i have one problem open..
>> a.) now he makes for pop3 index files in /var/indexes/%u/imap/index 
>> etc...
>> you said that is correct too if i only use pop3 ?
>>
>> b.) i have as INBOX file /var/spool/mail/%u set, when somebody logs in, 
>> and the mailbox exist he gets the email (from mbox file), but when the 
>> mbox does not exist he makes a directory, instead of a file like 
>> /var/spool/mail/%u.
>> The problem is when a new mail comes and the mbox file does not exist, 
>> the mail is saved to the directory as msg and not as mbox file
>> any ideas?
>
> Looks like you didn't set the mail_location properly:
>
> From the wiki page:
>
>> You can use several variables in the mail_location setting. See Variables 
>> for a full list, but the most commonly used ones are:
>>
>>     * %u: Full username.
>>     * %n: User part in user at domain, same as %u if there's no domain.
>>     * %d: Domain part in user at domain, empty if there's no domain.
>>     * %h: Home directory. ~/ works also. Typically with mbox it would be 
>> set to:
>>
>> mail_location = mbox:~/mail:INBOX=/var/mail/%u
>
> From your dovecot -n:
>
>> mail_location: mbox:/var/spool/mail/%u
>
>> Btw im using version 1.0.0
>
> Better late than never... ;)
> 



More information about the dovecot mailing list