Hi everyone,
I'm hoping I am just missing something obvious - but I cannot seem to
get a one-way migration dsync working between two Dovecot servers
because the Prefix configuration is different.
I am doing a migration from our old Dovecot servers to some new cPanel
based ones.
Source: 2.2.15
Dest: 2.2.21
Here is the debug output for the sync:
doveadm(root): Debug: Loading modules from directory:
/usr/lib/dovecot/modules/doveadm
doveadm(root): Debug: Module loaded:
/usr/lib/dovecot/modules/doveadm/lib10_doveadm_sieve_plugin.so
doveadm(testuser at example.ca): Debug: Effective uid=1322, gid=1322,
home=/khstor3/khmail-mailboxes/l/li/example.ca/testuser
doveadm(testuser at example.ca): Debug: Namespace inbox: type=private,
prefix=, sep=, inbox=yes, hidden=no, list=yes, subscriptions=yes
location=maildir:~/Maildir
doveadm(testuser at example.ca): Debug: maildir++:
root=/khstor3/khmail-mailboxes/l/li/example.ca/testuser/Maildir, index=,
indexpvt=, control=,
inbox=/khstor3/khmail-mailboxes/l/li/example.ca/testuser/Maildir,
altdoveadm(testuser at example.ca): Debug: Namespace : Using permissions from
/khstor3/khmail-mailboxes/l/li/example.ca/testuser/Maildir: mode=0777
gid=default
stdin: is not a tty
dsync-local(testuser at example.ca): Debug: brain M: Local mailbox tree:
INBOX guid=f055ac07d79cad508a7a000075e38adc uid_validity=1353555159
uid_next=2085 subs=no last_change=0 last_subs=0
dsync-local(testuser at example.ca): Debug: brain M: Local mailbox tree:
Junk guid=703a8b1d51ceab56f91e0000667eee40 uid_validity=1391566942
uid_next=1 subs=yes last_change=0 last_subs=1454100049
dsync-local(testuser at example.ca): Debug: brain M: Local mailbox tree:
Trash guid=9bee9f0f2aacb65039260000b171e44d uid_validity=1353555163
uid_next=25 subs=no last_change=0 last_subs=0
dsync-local(testuser at example.ca): Debug: brain M: Local mailbox tree:
Drafts guid=4d03661058a0f1524f240000e9d81ad0 uid_validity=1391566936
uid_next=1 subs=no last_change=0 last_subs=0
dsync-local(testuser at example.ca): Debug: brain M: Local mailbox tree:
Sent guid=99ee9f0f2aacb65039260000b171e44d uid_validity=1353555161
uid_next=4 subs=no last_change=0 last_subs=0
dsync-local(testuser at example.ca): Debug: brain M: Remote mailbox tree:
INBOX guid=6460141741cfab5643470000afb0d608 uid_validity=1454100291
uid_next=2064 subs=no last_change=0 last_subs=0
dsync-local(testuser at example.ca): Debug: brain M: Remote mailbox tree:
INBOX.Trash guid=6360141741cfab5643470000afb0d608
uid_validity=1454100290 uid_next=12 subs=yes last_change=0
last_subs=1454100289
dsync-local(testuser at example.ca): Debug: brain M: Remote mailbox tree:
INBOX.Sent guid=6260141741cfab5643470000afb0d608 uid_validity=1454100289
uid_next=2 subs=yes last_change=0 last_subs=1454100289
dsync-remote(testuser at example.ca): Error: Couldn't find namespace for
mailbox Junk
I believe the problem is because on the source we have no prefix set,
but on the destination it has INBOX as the prefix. I need to use dsync
because we have many POP3 clients so I need to ensure the UIDL's are
copied correctly.
Here is the output from 'doveconf namespace':
Source:
namespace inbox {
disabled = no
hidden = no
ignore_on_failure = no
inbox = yes
list = yes
location mailbox Drafts {
auto = subscribe
driver special_use = \Drafts
}
mailbox Junk {
auto = subscribe
driver special_use = \Junk
}
mailbox Sent {
auto = subscribe
driver special_use = \Sent
}
mailbox "Sent Messages" {
auto = no
driver special_use = \Sent
}
mailbox Trash {
auto = subscribe
driver special_use = \Trash
}
order = 0
prefix separator subscriptions = yes
type = private
}
Destination:
namespace {
disabled = no
hidden = no
ignore_on_failure = no
inbox = yes
list = yes
location mailbox Archive {
auto = create
autoexpunge = 0
comment driver special_use = \Archive
}
mailbox Archives {
auto = no
autoexpunge = 0
comment driver special_use = \Archive
}
mailbox Drafts {
auto = subscribe
autoexpunge = 0
comment driver special_use = \Drafts
}
mailbox Junk {
auto = create
autoexpunge = 0
comment driver special_use = \Junk
}
mailbox Sent {
auto = subscribe
autoexpunge = 0
comment driver special_use = \Sent
}
mailbox "Sent Messages" {
auto = no
autoexpunge = 0
comment driver special_use = \Sent
}
mailbox Trash {
auto = subscribe
autoexpunge = 0
comment driver special_use = \Trash
}
order = 0
prefix = INBOX.
separator subscriptions = yes
type = private
}
If anyone could provide some assistance it would be greatly appreciated!
Thanks,
Mark