Ich bin dabei meinen Mailserver aufzupimpen. Einerseits eine Mailserverseitige Suche, und andererseits einen virtuellen Folder, worin alle Emails gesammelt sind.
In diesem Howto (https://documentation.open-xchange.com/ ... _mail.html), welches sich eng an das Dovecot-Wiki hält findet man unter 1.2 Configuring the all-messages folder https://documentation.open-xchange.com/ ... ges-folder eine Anleitung für so einen virtuellen Folder.
Ich habe diese Konfiguration mit eigenem Namspace (abweichend zum Dovecot-Wiki und der Default-Config wo es einen eigene Mailbox unter INBOX gibt) übernommen.
Code: Alles auswählen
doveadm mailbox list -u scientific
Code: Alles auswählen
INBOX$Trash
INBOX$Wichtig
INBOX$INBOX$Sent
INBOX$INBOX$Papierkorb
INBOX$INBOX$Drafts
INBOX$INBOX$Junk
INBOX$Entwürfe
shared
Virtual
Virtual$All
Mailarchiv
Mailarchiv$incoming
Mailarchiv$outgoing
Thunderbird und Outlook Zeigen mir auch diese Mailboxen an, und ich kann sie auch abonnieren. Jedoch sind sie leer.
Code: Alles auswählen
# dovecot -n
# 2.2.27 (c0f36b0): /etc/dovecot/dovecot.conf
# Pigeonhole version 0.4.16 (fed8554)
# OS: Linux 4.12.0-0.bpo.1-amd64 x86_64 Debian 9.1 btrfs
auth_mechanisms = plain login
auth_socket_path = /var/run/dovecot/auth-userdb
first_valid_uid = 1000
imap_capability = +XDOVECOT
imap_client_workarounds = tb-extra-mailbox-sep
lda_mailbox_autocreate = yes
lda_mailbox_autosubscribe = yes
mail_debug = yes
mail_location = maildir:/var/mail/%u/Maildir:LAYOUT=fs:INDEX=/var/lib/dovecot/db/indexes/%u:CONTROL=/var/lib/dovecot/db/control/%u
mail_plugins = zlib quota acl listescape mail_log notify virtual
mail_privileged_group = vmail
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 index ihave duplicate mime foreverypart extracttext
namespace {
hidden = no
ignore_on_failure = no
inbox = no
list = children
location = maildir:%%h/Maildir:LAYOUT=fs:INDEX=/var/lib/dovecot/db/indexes/%u/shared/%%u:INDEXPVT=%h/shared:CONTROL=/var/lib/dovecot/db/control/%u/shared
prefix = shared$%%u$
separator = $
subscriptions = no
type = shared
}
namespace {
hidden = no
inbox = no
list = children
location = maildir:/var/mail/mailarchiv/%u/:LAYOUT=fs:INDEX=/var/lib/dovecot/db/indexes/mailarchiv/%u:INDEXPVT=%h/mailarchiv
mailbox incoming {
auto = create
}
mailbox outgoing {
auto = create
}
prefix = Mailarchiv$
separator = $
subscriptions = no
type = public
}
namespace {
list = children
location = maildir:/var/mail/public/:LAYOUT=fs:INDEXPVT=%h/public
prefix = Roseggergasse$
separator = $
subscriptions = no
type = public
}
namespace Virtual {
hidden = no
list = children
location = virtual:/var/mail/virtual:INDEX=MEMORY
mailbox All {
comment = All my messages
special_use = \All
}
prefix = Virtual$
separator = $
subscriptions = no
}
namespace inbox {
hidden = no
inbox = yes
location =
mailbox Archiv {
auto = no
special_use = \Archive
}
mailbox Archive {
auto = no
special_use = \Archive
}
mailbox Archives {
auto = create
special_use = \Archive
}
mailbox "Deleted Messages" {
auto = no
special_use = \Trash
}
mailbox Drafts {
auto = create
special_use = \Drafts
}
mailbox Entwürfe {
auto = no
special_use = \Drafts
}
mailbox "Gelöschte Elemente" {
auto = no
special_use = \Trash
}
mailbox "Gelöschte Objekte" {
auto = no
special_use = \Trash
}
mailbox Gesendet {
auto = no
special_use = \Sent
}
mailbox "Gesendete Elemente" {
auto = no
special_use = \Sent
}
mailbox "Gesendete Objekte" {
auto = no
special_use = \Sent
}
mailbox Important {
auto = no
}
mailbox Junk {
auto = subscribe
autoexpunge = 10 days
special_use = \Junk
}
mailbox Mistkübel {
auto = no
special_use = \Trash
}
mailbox Papierkorb {
auto = no
special_use = \Trash
}
mailbox Sent {
auto = create
special_use = \Sent
}
mailbox "Sent Messages" {
auto = no
special_use = \Sent
}
mailbox Spam {
auto = no
special_use = \Junk
}
mailbox Trash {
auto = subscribe
special_use = \Trash
}
mailbox Wichtig {
auto = create
}
mailbox virtual$Flagged {
comment = All my flagged messages
special_use = \Flagged
}
prefix = INBOX$
separator = $
subscriptions = no
}
namespace subscriptions {
hidden = yes
list = no
location =
prefix =
subscriptions = yes
}
passdb {
args = scheme=CRYPT username_format=%u /etc/dovecot/users
driver = passwd-file
}
plugin {
acl = vfile:/etc/dovecot/dovecot-acl
acl_anyone = allow
acl_shared_dict = file:/var/mail/shared-mailboxes
fts = lucene
fts_autoindex = yes
fts_autoindex_max_recent_msgs = 80
fts_decoder = decode2text.sh
fts_index_timeout = 90
fts_lucene = whitespace_chars=@. normalize no_snowball
setting_name = sieve, managedsieve
sieve = file:/var/spool/dovecot/sieve/%n;active=/var/spool/dovecot/sieve/%n/%n.sieve
}
postmaster_address = postmaster@localhost
protocols = " imap lmtp sieve sieve"
service auth {
unix_listener auth-client {
group = vmail
mode = 0660
user = dovecot
}
unix_listener auth-userdb {
group = vmail
mode = 0660
user = vmail
}
}
service lmtp {
user = Debian-exim
}
ssl = required
ssl_cert = </etc/dovecot/dovecot.crt
ssl_key = # hidden, use -P to show it
userdb {
args = username_format=%u /etc/dovecot/users
driver = passwd-file
}
verbose_proctitle = yes
protocol lmtp {
mail_plugins = zlib quota acl listescape mail_log notify virtual quota sieve acl
}
protocol lda {
mail_plugins = zlib quota acl listescape mail_log notify virtual quota sieve acl
}
protocol imap {
mail_max_userip_connections = 10
mail_plugins = zlib quota acl listescape mail_log notify virtual imap_quota imap_acl
}
Code: Alles auswählen
# cat /var/mail/virtual/All/dovecot-virtual
*
all
Code: Alles auswählen
# cat /etc/dovecot/dovecot-acl
Virtual$ authenticated lrws
Virtual$All authenticated lrws
Virtual$All$* authenticated lrws
Code: Alles auswählen
user=scientific lrws
Hat jemand eine Idee, was ich falsch mache?
lg scientific