Hello folks,
I have a problem with replication and mail_location with LAYOUT=fs set.
If I set "mail_location = maildir:~/mail" (leaving out the
:LAYOUT=fs),
create and populate some mailboxes and subfolders, they all get
replicated. If I start with a clean mail spool and LAYOUT=fs, I can
create some new mailboxes and subfolders but only the inbox is
replicated. Subfolders are ignored.
The users are all in LDAP, and virtual, hence the generic mail_home
format and mail_location being set. The userdb lookup has been told to
return no attributes ("user_attrs = "), but I have also tried it with
requesting 'home' and specifying a default of /mail/spool/%u in the
userdb config.
The service is perfectly functional as far as a mail client is
concerned: it can access all the folders and messages it expects on the
server that had them added. It's only the replication using LAYOUT=fs
that seems to be troublesome.
Here is `doveconf -n` for the first of the pair of servers (dcot1a and
dcot1b). The configuration on the other is identical except for the
hostname differences.
Simon
# 2.2.2: /mail/etc/dovecot/dovecot.conf
# OS: Linux 3.2.0-27-virtual x86_64 Ubuntu 12.04.2 LTS
disable_plaintext_auth = no
doveadm_password = secret
first_valid_uid = 100
mail_gid = dovecot
mail_home = /mail/spool/%u
mail_location = maildir:~/mail:LAYOUT=fs
mail_plugins = notify replication
mail_uid = dovecot
namespace inbox {
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 = /
}
passdb {
args = /mail/etc/dovecot/dovecot-ldap.conf.ext
driver = ldap
}
plugin {
mail_replica = tcp:dcot1b:12345
}
protocols = imap lmtp
service aggregator {
fifo_listener replication-notify-fifo {
mode = 0600
user = dovecot
}
unix_listener replication-notify {
mode = 0600
user = dovecot
}
}
service config {
unix_listener config {
user = dovecot
}
}
service doveadm {
inet_listener {
port = 12345
}
user = dovecot
}
service replicator {
process_min_avail = 1
}
shutdown_clients = no
ssl_cert = </etc/ssl/certs/dcot1a-cert.pem
ssl_key = </etc/ssl/private/dcot1a-key.pem
userdb {
args = /mail/etc/dovecot/dovecot-ldap.userdb.conf.ext
driver = ldap
}
--
The Wellcome Trust Sanger Institute is operated by Genome Research
Limited, a charity registered in England with number 1021457 and a
company registered in England with number 2742969, whose registered
office is 215 Euston Road, London, NW1 2BE.