[Dovecot] doveadm import : Error creating new mailbox

Administrator BCS adje at bezoekerscentrumsonsbeek.nl
Tue Apr 29 08:49:18 UTC 2014


Hello,

I'm new to dovecot. I managed to set up a system running  
dovecot/mysql/postfix/postfixadmin with a virtual maildir setup on  
Ubuntu 12.04 I can add and remove users, send and receive mail, create  
folders, move mail between them etc so all ok.

Now trying to manually import some mbox files from the old server into  
dovecot. Copied a mbox file to the new system, converted it to Maildir  
with mb2md resulting in a directory containing the new, cur en tmp.  
Looks ok, old email messages are all there.

When importing this folder using doveadm import it fails with the message:
Error: Couldn't create mailbox  
maildir:/home/vmail/bezoekerscentrumsonsbeek.nl/techniek/.INBOX:  
Invalid mailbox name

What am I doing wrong?

Martin


output from doveadm -D import:

>
┌─(adje at BCS:pts/0)──────────────────────────────────────────────────────────────────────────────────────────────────────(~)─┐
> └─(89:10:33:%)── sudo doveadm -D import -u
> techniek at bezoekerscentrumsonsbeek.nl
> maildir:/mnt/multimedia/mailoudeserver/testmap/techniek
> maildir:/home/vmail/bezoekerscentrumsonsbeek.nl/techniek/ all
> doveadm(root): Debug: Loading modules from directory:
> /usr/lib/dovecot/modules/doveadm
> doveadm(root): Debug: Skipping module doveadm_acl_plugin, because
> dlopen() failed:
> /usr/lib/dovecot/modules/doveadm/lib10_doveadm_acl_plugin.so: undefined
> symbol: acl_user_module (this is usually intentional, so just ignore
> this message)
> doveadm(root): Debug: Skipping module doveadm_expire_plugin, because
> dlopen() failed:
> /usr/lib/dovecot/modules/doveadm/lib10_doveadm_expire_plugin.so:
> undefined symbol: expire_set_deinit (this is usually intentional, so
> just ignore this message)
> doveadm(root): Debug: Skipping module doveadm_quota_plugin, because
> dlopen() failed:
> /usr/lib/dovecot/modules/doveadm/lib10_doveadm_quota_plugin.so:
> undefined symbol: quota_user_module (this is usually intentional, so
> just ignore this message)
> doveadm(root): Debug: Skipping module doveadm_zlib_plugin, because
> dlopen() failed:
> /usr/lib/dovecot/modules/doveadm/lib10_doveadm_zlib_plugin.so: undefined
> symbol: i_stream_create_deflate (this is usually intentional, so just
> ignore this message)
> doveadm(root): Debug: Effective uid=0, gid=0, home=/home/adje
> doveadm(root): Debug: maildir++:
> root=/mnt/multimedia/mailoudeserver/testmap/techniek, index=, control=,
> inbox=/mnt/multimedia/mailoudeserver/testmap/techniek, alt=
> doveadm(techniek at bezoekerscentrumsonsbeek.nl): Debug: Added userdb
> setting: mail=maildir:/home/vmail/bezoekerscentrumsonsbeek.nl/techniek
> doveadm(techniek at bezoekerscentrumsonsbeek.nl): Debug: Added userdb
> setting: plugin/quota=dirsize:storage=0
> doveadm(techniek at bezoekerscentrumsonsbeek.nl): Debug: Effective uid=150,
> gid=8, home=/home/vmail/bezoekerscentrumsonsbeek.nl/techniek
> doveadm(techniek at bezoekerscentrumsonsbeek.nl): Debug: maildir++:
> root=/home/vmail/bezoekerscentrumsonsbeek.nl/techniek, index=, control=,
> inbox=/home/vmail/bezoekerscentrumsonsbeek.nl/techniek, alt=
> doveadm(techniek at bezoekerscentrumsonsbeek.nl): Debug: Namespace :
>
/home/vmail/bezoekerscentrumsonsbeek.nl/techniek/.maildir:/home/vmail/bezoekerscentrumsonsbeek.nl/techniek/.INBOX
doesn't exist yet, using default
> permissions
> doveadm(techniek at bezoekerscentrumsonsbeek.nl): Debug: Namespace : Using
> permissions from /home/vmail/bezoekerscentrumsonsbeek.nl/techniek:
> mode=0700 gid=-1
> doveadm(techniek at bezoekerscentrumsonsbeek.nl): Debug: Namespace :
>
/home/vmail/bezoekerscentrumsonsbeek.nl/techniek/.maildir:/home/vmail/bezoekerscentrumsonsbeek.nl/techniek/.INBOX
doesn't exist yet, using default
> permissions
> doveadm(techniek at bezoekerscentrumsonsbeek.nl): Debug: Namespace : Using
> permissions from /home/vmail/bezoekerscentrumsonsbeek.nl/techniek:
> mode=0700 gid=-1
> doveadm(techniek at bezoekerscentrumsonsbeek.nl): Error: Couldn't create
> mailbox maildir:/home/vmail/bezoekerscentrumsonsbeek.nl/techniek/.INBOX:
> Invalid mailbox name



Output of dovecot -n

> # 2.0.19: /etc/dovecot/dovecot.conf
> # OS: Linux 3.11.0-20-generic x86_64 Ubuntu 12.04.4 LTS ext4
> auth_mechanisms = plain login
> first_valid_uid = 150
> last_valid_uid = 150
> mail_gid = mail
> mail_location = maildir:/home/vmail/%d/%n
> mail_uid = vmail
> passdb {
>   args = /etc/dovecot/dovecot-sql.conf.ext
>   driver = sql
> }
> postmaster_address = adje at bezoekerscentrumsonsbeek.nl
> protocols = " imap pop3"
> service auth {
>   unix_listener /var/spool/postfix/private/auth {
>     group = postfix
>     mode = 0660
>     user = postfix
>   }
>   unix_listener auth-userdb {
>     group = mail
>     mode = 0600
>     user = vmail
>   }
> }
> ssl_cert = </etc/ssl/certs/dovecot.pem
> ssl_key = </etc/ssl/private/dovecot.pem
> userdb {
>   args = /etc/dovecot/dovecot-sql.conf.ext
>   driver = sql
> }
-- 
Systeembeheer Bezoekerscentrum Sonsbeek



More information about the dovecot mailing list