Hi! I'm trying to migrate a mailbox from an old IMAP server (not Dovecot) to a new Dovecot server with 'doveadm backup'. The command fails because of an unexpected character in a mailbox name: doveadm -o imapc_user=ag at example.org \ -o imapc_password=XXX \ -o imapc_host=old-mailserver.webflow.de \ -o imapc_port=993 \ -o imapc_ssl=imaps \ -o imapc_ssl_verify=no \ -o imapc_features=rfc822.size,fetch-headers \ -o ssl_client_ca_dir=/etc/ssl \ backup -R -f -x ~* -u migration-ag at example.org imapc: dsync(migration-ag at example.org): Info: imapc(old-mailserver.webflow.de:993): Connected to 1.1.1.1:993 (local 2.2.2.2:46154) dsync(migration-ag at example.org): Error: Failed to access mailbox Entw?rfe: mailbox does not exist The problem is with "Entw?rfe" here. It's actually Entw<0xfc>rfe, which translates to "Entw?rfe" in ISO-8859-1. Why can't doveadm find that mailbox? Is the old mailserver misbehaving (I hope not because I have no idea how to change that...), or does this happen on the new server? Can I tell doveadm something that makes this work? Thank you Michael -- Michael Goth .webflow GmbH Gesch?ftsf?hrer: Andreas Schrei Wasserburger Stra?e 4 D - 83352 Altenmarkt a. d. Alz Amtsgericht Traunstein HRB 18537 E-Mail: mg at webflow.de Tel: +49 (0) 8621 - 99989 - 26 Fax: +49 (0) 8621 - 99989 - 28 Web: www.webflow.de
> On 3 Apr 2019, at 13.40, Michael Goth via dovecot <dovecot at dovecot.org> wrote: > > Hi! > > I'm trying to migrate a mailbox from an old IMAP server (not Dovecot) to a new Dovecot server with 'doveadm backup'. The command fails because of an unexpected character in a mailbox name: > > > doveadm -o imapc_user=ag at example.org \ > -o imapc_password=XXX \ > -o imapc_host=old-mailserver.webflow.de \ > -o imapc_port=993 \ > -o imapc_ssl=imaps \ > -o imapc_ssl_verify=no \ > -o imapc_features=rfc822.size,fetch-headers \ > -o ssl_client_ca_dir=/etc/ssl \ > backup -R -f -x ~* -u migration-ag at example.org imapc: > > dsync(migration-ag at example.org): Info: imapc(old-mailserver.webflow.de:993): Connected to 1.1.1.1:993 (local 2.2.2.2:46154) > dsync(migration-ag at example.org): Error: Failed to access mailbox Entw?rfe: mailbox does not exist > > > The problem is with "Entw?rfe" here. It's actually Entw<0xfc>rfe, which translates to "Entw?rfe" in ISO-8859-1. > > Why can't doveadm find that mailbox? Is the old mailserver misbehaving (I hope not because I have no idea how to change that...), or does this happen on the new server? Can I tell doveadm something that makes this work? >Can you log on the remote imap server with telnet or nc and ask for: A LIST "" "*" I think your legacy server does not encode the folder names correctly. Sami
On 4/3/19 2:23 PM, Sami Ketola via dovecot wrote:> > >> On 3 Apr 2019, at 13.40, Michael Goth via dovecot <dovecot at dovecot.org> wrote: >> >> Hi! >> >> I'm trying to migrate a mailbox from an old IMAP server (not Dovecot) to a new Dovecot server with 'doveadm backup'. The command fails because of an unexpected character in a mailbox name: >> >> >> doveadm -o imapc_user=ag at example.org \ >> -o imapc_password=XXX \ >> -o imapc_host=old-mailserver.webflow.de \ >> -o imapc_port=993 \ >> -o imapc_ssl=imaps \ >> -o imapc_ssl_verify=no \ >> -o imapc_features=rfc822.size,fetch-headers \ >> -o ssl_client_ca_dir=/etc/ssl \ >> backup -R -f -x ~* -u migration-ag at example.org imapc: >> >> dsync(migration-ag at example.org): Info: imapc(old-mailserver.webflow.de:993): Connected to 1.1.1.1:993 (local 2.2.2.2:46154) >> dsync(migration-ag at example.org): Error: Failed to access mailbox Entw?rfe: mailbox does not exist >> >> >> The problem is with "Entw?rfe" here. It's actually Entw<0xfc>rfe, which translates to "Entw?rfe" in ISO-8859-1. >> >> Why can't doveadm find that mailbox? Is the old mailserver misbehaving (I hope not because I have no idea how to change that...), or does this happen on the new server? Can I tell doveadm something that makes this work? >> > > Can you log on the remote imap server with telnet or nc and ask for: A LIST "" "*" > > I think your legacy server does not encode the folder names correctly.That too includes the <FC> byte in its output. But I've found that only a couple of mailboxes are affected, so i just renamed the folders. Thanks for your help! Michael
Apparently Analagous Threads
- doveadm backup + ISO 8859-1 mailbox name
- doveadm backup + ISO 8859-1 mailbox name
- sync re-copies emails assigning new UIDs
- Dsync fails to connect to remote IMAP server
- dsync migration from maildir layout=fs to maildir seperator / - folders or inbox but not both