[Dovecot-de] Namespace Missmatch

Silvio Siefke siefke_listen at web.de
Di Feb 4 16:32:11 CET 2014


Hallo.

On Tue, 04 Feb 2014 08:05:05 +0100 Werner Flamme <w.flamme at web.de>
wrote:

> wenn Du einen Namespace mit "prefix = Public/" definiert hast, dann
> nenne ihn doch auch so:
> namespace public {

> namespace {
>  hidden = no
>  inbox = yes
>  location =
>  prefix =
>  separator = /
>  type = private
> }

> namespace inbox {
>  location =
>  mailbox Drafts {
>    special_use = \Drafts
>  }
>  mailbox Junk {
>    special_use = \Junk
>  }
>  mailbox Sent {
>    special_use = \Sent
>  }
>  mailbox "Sent Messages" {
>    special_use = \Sent
>  }
>  mailbox Trash {
>    special_use = \Trash
>  }
>  prefix =
> }

Die beiden namespace müssen den gleichen Namen haben. Ich habe Inbox 
geschrieben und jetzt läuft der Dovecot. Nur der Abruf klappt nicht. 
Sylpheed vermeldet das er den Imap Baum nicht bauen kann.

ks3374456 log # cat dovecot-debug.log 
Feb 04 16:25:40 auth: Debug: Loading modules from directory: /usr/lib64/dovecot/auth
Feb 04 16:25:40 auth: Debug: Read auth token secret from /var/run/dovecot/auth-token-secret.dat
Feb 04 16:25:40 auth: Debug: auth client connected (pid=15214)

ks3374456 log # cat dovecot-info.log 
Feb 04 16:22:58 master: Info: Dovecot v2.2.9 starting up (core dumps disabled)
Feb 04 16:23:18 imap-login: Info: Aborted login (no auth attempts in 0 secs): user=<>, rip=176.3.32.140, lip=37.187.103.194, session=<MEpKOJbxAgCwAyCM>
Feb 04 16:25:28 master: Info: Dovecot v2.2.9 starting up (core dumps disabled)
Feb 04 16:25:41 imap-login: Info: Aborted login (no auth attempts in 1 secs): user=<>, rip=176.3.32.140, lip=37.187.103.194, session=<lBTMQJbxCQCwAyCM>

ks3374456 log # cat dovecot.log 
Feb 04 16:25:28 master: Warning: Killed with signal 15 (by pid=15178 uid=0 code=kill)

the config:
ks3374456 log # dovecot -n
# 2.2.9: /etc/dovecot/dovecot.conf
# OS: Linux 3.10.23-xxxx-std-ipv6-64 x86_64 Gentoo Base System release 2.2 
auth_debug = yes
debug_log_path = /var/log/dovecot-debug.log
info_log_path = /var/log/dovecot-info.log
log_path = /var/log/dovecot.log
mail_debug = yes
mail_location = maildir:~/maildir
mail_plugins = acl
managesieve_notify_capability = mailto
managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date ihave
namespace {
  list = yes
  location = maildir:/var/vmail/public:LAYOUT=fs:INDEX=~/public
  prefix = Public/
  separator = /
  subscriptions = no
  type = public
}
namespace inbox {
  hidden = no
  inbox = yes
  location = 
  mailbox Drafts {
    special_use = \Drafts
  }
  mailbox Junk {
    special_use = \Junk
  }
  mailbox Sent {
    special_use = \Sent
  }
  mailbox "Sent Messages" {
    special_use = \Sent
  }
  mailbox Trash {
    special_use = \Trash
  }
  prefix = 
  separator = /
  type = private
}
passdb {
  args = username_format=%u /var/vmail/auth.d/%d/passwd
  driver = passwd-file
}
plugin {
  acl = vfile:/var/vmail/conf.d/%d/acls:cache_secs=300
  sieve = ~/.dovecot.sieve
  sieve_dir = ~/sieve
  sieve_global_dir = /var/vmail/conf.d/%d/sieve
}
protocols = imap lmtp
service auth-worker {
  user = dovecot
}
service auth {
  unix_listener /var/spool/postfix/private/auth {
    group = postfix
    mode = 0660
    user = postfix
  }
  user = dovecot
}
service imap-login {
  inet_listener imap {
    address = 37.187.103.194
    port = 143
  }
  inet_listener imaps {
    port = 0
  }
}
service lmtp {
  unix_listener /var/spool/postfix/private/dovecot-lmtp {
    group = postfix
    mode = 0666
    user = postfix
  }
}
ssl_cert = </etc/ssl/dovecot/server.pem
ssl_key = </etc/ssl/dovecot/server.key
userdb {
  args = username_format=%u /var/vmail/auth.d/%d/passwd
  driver = passwd-file
}
verbose_proctitle = yes
protocol lmtp {
  mail_plugins = acl sieve
  postmaster_address = webmaster at silviosiefke.com
}
protocol lda {
  mail_plugins = sieve
}
protocol imap {
  mail_plugins = acl imap_acl mail_log notify
}

Muss ich eigentlich die Ordner manuell anlegen oder geschieht das
automatisch? 

Im Tutorial auf Dovecot steht es so:
User Home directory structure: /var/vmail/<domain>/<user>/
-rw------- 1 vmail vmail 1489 2010-03-03 19:30 .dovecot.sieve
-rw------- 1 vmail vmail 2897 2010-03-14 12:22 .dovecot.svbin
drwx--S--- 4 vmail vmail 4096 2010-03-17 20:15 maildir
drwx--S--- 4 vmail vmail 4096 2010-03-14 13:31 public

ks3374456 log # ls -la /var/vmail/silviosiefke.de/webmaster/
insgesamt 16
drwxr-xr-x 4 vmail vmail 4096  4. Feb 16:12 .
drwxr-xr-x 3 vmail vmail 4096 27. Jan 01:51 ..
drwx------ 5 vmail vmail 4096  4. Feb 16:31 maildir
drwx------ 2 vmail vmail 4096 27. Jan 01:51 public


Danke für die Hilfe & Schönen Tag
Silvio


Mehr Informationen über die Mailingliste Dovecot