[Dovecot] Maildir autocreation

Pascal Volk user+dovecot at localhost.localdomain.org
Wed Oct 21 17:41:04 EEST 2009


On 10/21/2009 01:08 PM Proskurin Kirill wrote:
> Hello.
> 
> Today i found what maildir autocreation stop work.
> May be after upgrade to 1.2. Here logs:
>> Oct 21 11:01:25 deliver(shershov-oa at fxclub.org): Info: maildir autodetect: stat(/var/spool/dovecot/domains/fxclub.org/shershov-oa//cur) failed: No such file or directory
> Oct 21 11:01:25 deliver(shershov-oa at fxclub.org): Info: mbox autodetect: data=/var/spool/dovecot/domains/fxclub.org/shershov-oa/
> Oct 21 11:01:25 deliver(shershov-oa at fxclub.org): Info: mbox autodetect: INBOX file: stat(/var/spool/dovecot/domains/fxclub.org/shershov-oa/) failed: No such file or directory
> Oct 21 11:01:25 deliver(shershov-oa at fxclub.org): Info: mbox autodetect: has .imap/: stat(/var/spool/dovecot/domains/fxclub.org/shershov-oa//.imap) failed: No such file or directory
> Oct 21 11:01:25 deliver(shershov-oa at fxclub.org): Info: mbox autodetect: has inbox: stat(/var/spool/dovecot/domains/fxclub.org/shershov-oa//inbox) failed: No such file or directory
> Oct 21 11:01:25 deliver(shershov-oa at fxclub.org): Info: mbox autodetect: has mbox: stat(/var/spool/dovecot/domains/fxclub.org/shershov-oa//mbox) failed: No such file or directory
> Oct 21 11:01:25 deliver(shershov-oa at fxclub.org): Error: mail_location: Ambiguous mail location setting, don't know what to do with it: /var/spool/dovecot/domains/fxclub.org/shershov-oa/ (try prefixing it with mbox: or maildir:)
> Oct 21 11:01:25 deliver(shershov-oa at fxclub.org): Fatal: Namespace initialization failed
> 
> dovecot -n
> # 1.2.4: /usr/local/etc/dovecot.conf
> # OS: FreeBSD 7.1-RELEASE-p7 i386  ufs
> base_dir: /var/run/dovecot/
>> login_process_size: 128
> login_processes_count: 20
> login_max_processes_count: 512
  mail_location: ???
> mail_max_userip_connections(default): 256
> mail_max_userip_connections(imap): 256
> mail_max_userip_connections(pop3): 20
> mail_max_userip_connections(managesieve): 10
>> mail_plugins(default): quota imap_quota autocreate mail_log
> mail_plugins(imap): quota imap_quota autocreate mail_log
>> plugin:
>>    autocreate: Trash
>    autocreate2: Sent
>    autocreate3: Spam
>    autosubscribe: Trash
>    autosubscribe2: Sent
>    autosubscribe3: Spam

Your log excerpt shows excellently how hard Dovecot tries the figure out
the mail_location. But that's not all. There is a very useful
suggestion: try prefixing it with mbox: or maildir:

It looks like your ldap userdb is returning a home field. So set
for example mail_location = mailldir:~/Maildir in your dovecot.conf


Regards,
Pascal
-- 
The trapper recommends today: deadbeef.0929416 at localdomain.org


More information about the dovecot mailing list