<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hey all.</p>
<p>We've got some users that live on our primary email server (which
lives in our internal network) that we need to migrate to a second
email server (which lives in our DMZ). Both servers serve our
domain, example.com, but our first email server runs UW-IMAP,
while our newer second server is running dovecot.</p>
<p>We need to get these users cleanly migrated over, with all of
their emails, and we're trying to do so with the doveadm backup
tool - figuring that it will probably "do" Dovecot better than a
generic IMAP to IMAP tool. So far, no dice - we get the following
error message:</p>
<blockquote>
<p>Jul 13 16:00:00 doveadm(<a class="moz-txt-link-abbreviated" href="mailto:user@example.com">user@example.com</a>): Fatal: All your
namespaces have a location setting. Only namespaces with empty
location settings are converted. (One namespace should default
to mail_location setting)</p>
</blockquote>
<p>Here is the command I'm trying to run:</p>
<blockquote>
<p>doveadm -c /etc/dovecot/dovecot-migration.conf -D -o
imapc_user=user -o imapc_password=password backup -Ru
<a class="moz-txt-link-abbreviated" href="mailto:user@example.com">user@example.com</a> imapc:<br>
</p>
</blockquote>
<p>Here is the output of doveconf -n:<br>
</p>
<blockquote>
<p># 2.3.16 (7e2e900c1a): /etc/dovecot/dovecot.conf<br>
# OS: Linux 4.18.0-372.16.1.el8_6.x86_64 x86_64 AlmaLinux
release 8.6 (Sky Tiger) <br>
# Hostname: example.com<br>
auth_mechanisms = plain login<br>
auth_verbose = yes<br>
disable_plaintext_auth = no<br>
info_log_path = /var/log/dovecot-info.log<br>
log_path = /var/log/dovecot.log<br>
mail_debug = yes<br>
mail_location = maildir:~/Maildir<br>
passdb {<br>
args = /etc/dovecot/passwd<br>
driver = passwd-file<br>
}<br>
postmaster_address = <a class="moz-txt-link-abbreviated" href="mailto:postmaster@example.com">postmaster@example.com</a><br>
protocols = imap lmtp<br>
service auth {<br>
unix_listener /var/spool/postfix/private/auth {<br>
group = postfix<br>
mode = 0660<br>
user = postfix<br>
}<br>
}<br>
service lmtp {<br>
executable = lmtp -L<br>
inet_listener lmtp {<br>
address = 1.2.3.4 127.0.0.1 ::1<br>
port = 24<br>
}<br>
unix_listener /var/spool/postfix/private/dovecot-lmtp {<br>
group = postfix<br>
mode = 0666<br>
user = postfix<br>
}<br>
user = vmail<br>
}<br>
ssl_cert = </etc/letsencrypt/live/example.com/fullchain.pem<br>
ssl_dh = # hidden, use -P to show it<br>
ssl_key = # hidden, use -P to show it<br>
ssl_prefer_server_ciphers = yes<br>
userdb {<br>
args = username_format=%u /etc/dovecot/passwd<br>
auth_verbose = yes<br>
default_fields = uid=vmail gid=vmail home=/var/vmail/%u<br>
driver = passwd-file<br>
}<br>
protocol lmtp {<br>
lmtp_rawlog_dir = /tmp/dovecot/%u<br>
log_path = /var/log/dovecot-lmtp-debug.log<br>
}<br>
</p>
</blockquote>
<pre class="moz-signature" cols="72">--
Tom Spettigue
Staff Engineer
(720) 406-5269
Zonit Structured Solutions
<a class="moz-txt-link-abbreviated" href="http://www.zonit.com">www.zonit.com</a></pre>
</body>
</html>