Migrating from qmail server, invalid option "o" in dsync
Hi folks, I have an old server running qmail with several years of mails in maildir format I want to migrate to a new server, without requiring fresh client download of everything.
Old server is debian 6(?). Local IP is 192.168.0.1. New server is Debian 10, local IP is 192.168.0.25.
I have dovecot 2.3.4.1 (latest from apt stable) installed and apparently working - if I manually copy the home directory for my account, I can connect (using thunderbird) and I get all the emails appearing as new, forcing redownload. Seems like the new config is at least functional.
I'm trying to follow the migration guide at
https://wiki2.dovecot.org/Migration/Dsync, but I am getting an error
message:
root@newserver:~# doveadm backup -R -u _user_ -o pop3c_user=_user_ -o
pop3c_password=_password_
backup: invalid option -- 'o'
doveadm backup [-u <user>|-A] [-S
Have tried this a couple different ways and according to everything i can find -o should be valid. Can anyone tell me what I'm doing wrong here?
Thanks!
# 2.3.4.1 (f79e8e7e4): /etc/dovecot/dovecot.conf # Pigeonhole version 0.5.4 () # OS: Linux 4.19.0-9-amd64 x86_64 Debian 10.4 # Hostname: newserver.domain.com disable_plaintext_auth = no mail_location = maildir:~/Maildir mail_privileged_group = mail namespace { hidden = yes list = no location = pop3c: prefix = POP3-MIGRATION-NS/ } 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 = } passdb { driver = pam } plugin { pop3_migration_mailbox = POP3-MIGRATION-NS/INBOX } pop3_uidl_format = %f pop3c_host = 192.168.0.1 protocols = " imap pop3" ssl = no ssl_cert =
On 30/07/2020 19:29 Justin Coleman jmcoleman@gmail.com wrote:
Hi folks, I have an old server running qmail with several years of mails in maildir format I want to migrate to a new server, without requiring fresh client download of everything.
Old server is debian 6(?). Local IP is 192.168.0.1. New server is Debian 10, local IP is 192.168.0.25.
I have dovecot 2.3.4.1 (latest from apt stable) installed and apparently working - if I manually copy the home directory for my account, I can connect (using thunderbird) and I get all the emails appearing as new, forcing redownload. Seems like the new config is at least functional.
I'm trying to follow the migration guide at https://wiki2.dovecot.org/Migration/Dsync, but I am getting an error message: root@newserver:~# doveadm backup -R -u _user_ -o pop3c_user=_user_ -o pop3c_password=_password_ backup: invalid option -- 'o' doveadm backup [-u <user>|-A] [-S
] [-fPRU] [-l <secs>] [-r <rawlog path>] [-m <mailbox>] [-g ] [-n <namespace> | -N] [-x <exclude>] [-s <state>] [-t <start date>] -d|<dest>
doveadm -o pop3c_user=_user_ -o pop3c_password=_password_ backup -R -u _user_ pop3c:
Aki
On 30. Jul 2020, at 19.33, Aki Tuomi aki.tuomi@open-xchange.com wrote:
On 30/07/2020 19:29 Justin Coleman jmcoleman@gmail.com wrote:
Hi folks, I have an old server running qmail with several years of mails in maildir format I want to migrate to a new server, without requiring fresh client download of everything.
Old server is debian 6(?). Local IP is 192.168.0.1. New server is Debian 10, local IP is 192.168.0.25.
I have dovecot 2.3.4.1 (latest from apt stable) installed and apparently working - if I manually copy the home directory for my account, I can connect (using thunderbird) and I get all the emails appearing as new, forcing redownload. Seems like the new config is at least functional.
I'm trying to follow the migration guide at https://wiki2.dovecot.org/Migration/Dsync, but I am getting an error message: root@newserver:~# doveadm backup -R -u _user_ -o pop3c_user=_user_ -o pop3c_password=_password_ backup: invalid option -- 'o' doveadm backup [-u <user>|-A] [-S
] [-fPRU] [-l <secs>] [-r <rawlog path>] [-m <mailbox>] [-g ] [-n <namespace> | -N] [-x <exclude>] [-s <state>] [-t <start date>] -d|<dest> doveadm -o pop3c_user=_user_ -o pop3c_password=_password_ backup -R -u _user_ pop3c:
Also I suggest to migrate over imap, not pop3. With pop3 migration you can't save the imap uid:s and all clients will see the mails as new.
Sami
Maybe I'm misunderstanding - all of our clients use pop3 (thunderbird and eudora). Do pop3 and imap overlap somehow, or does the server use IMAP internally regardless of the client protocol settings?
Thanks!
On Thu, Jul 30, 2020 at 12:52 PM Sami Ketola sami.ketola@dovecot.fi wrote:
On 30. Jul 2020, at 19.33, Aki Tuomi aki.tuomi@open-xchange.com wrote:
On 30/07/2020 19:29 Justin Coleman jmcoleman@gmail.com wrote:
Hi folks, I have an old server running qmail with several years of mails in maildir format I want to migrate to a new server, without requiring fresh client download of everything.
Old server is debian 6(?). Local IP is 192.168.0.1. New server is Debian 10, local IP is 192.168.0.25.
I have dovecot 2.3.4.1 (latest from apt stable) installed and apparently working - if I manually copy the home directory for my account, I can connect (using thunderbird) and I get all the emails appearing as new, forcing redownload. Seems like the new config is at least functional.
I'm trying to follow the migration guide at https://wiki2.dovecot.org/Migration/Dsync, but I am getting an error message: root@newserver:~# doveadm backup -R -u _user_ -o pop3c_user=_user_ -o pop3c_password=_password_ backup: invalid option -- 'o' doveadm backup [-u <user>|-A] [-S
] [-fPRU] [-l <secs>] [-r <rawlog path>] [-m <mailbox>] [-g ] [-n <namespace> | -N] [-x <exclude>] [-s <state>] [-t <start date>] -d|<dest> doveadm -o pop3c_user=_user_ -o pop3c_password=_password_ backup -R -u _user_ pop3c:
Also I suggest to migrate over imap, not pop3. With pop3 migration you can't save the imap uid:s and all clients will see the mails as new.
Sami
Justin> Maybe I'm misunderstanding - all of our clients use pop3 Justin> (thunderbird and eudora). Do pop3 and imap overlap somehow, or Justin> does the server use IMAP internally regardless of the client Justin> protocol settings?
No, IMAP and POP are just the transport mechanisms. But POP is old and doesn't keep state well. If you can, upgrade all your clients to IMAP, thunderbird will be easy to do so, and I suspect Eudora will be as well, but I haven't touched it in years.
why don't you just setup a test IMAP account and try a client?
I'll give this a shot. Any solution that doesn't maintain at least the current client-side status of emails (ie, requires redownload, or new account on client) is a complete nonstarter, though.
On Thu, Jul 30, 2020 at 3:51 PM John Stoffel john@stoffel.org wrote:
Justin> Maybe I'm misunderstanding - all of our clients use pop3 Justin> (thunderbird and eudora). Do pop3 and imap overlap somehow, or Justin> does the server use IMAP internally regardless of the client Justin> protocol settings?
No, IMAP and POP are just the transport mechanisms. But POP is old and doesn't keep state well. If you can, upgrade all your clients to IMAP, thunderbird will be easy to do so, and I suspect Eudora will be as well, but I haven't touched it in years.
why don't you just setup a test IMAP account and try a client?
Justin> I'll give this a shot. Any solution that doesn't maintain at Justin> least the current client-side status of emails (ie, requires Justin> redownload, or new account on client) is a complete Justin> nonstarter, though.
Hmm... I'm weak on POP, but I suspect you're out of luck unless you move your clients to IMAP. It will involve an initial download of messages, but once that's done, you should be able to clone between dovecot instances without the clients noticing.
But I think you're coming from another POP server? I don't have the original email any more.
Justin> On Thu, Jul 30, 2020 at 3:51 PM John Stoffel john@stoffel.org wrote:
Justin> Maybe I'm misunderstanding - all of our clients use pop3 Justin> (thunderbird and eudora). Do pop3 and imap overlap somehow, or Justin> does the server use IMAP internally regardless of the client Justin> protocol settings?
Justin> No, IMAP and POP are just the transport mechanisms. But POP is old Justin> and doesn't keep state well. If you can, upgrade all your clients to Justin> IMAP, thunderbird will be easy to do so, and I suspect Eudora will be Justin> as well, but I haven't touched it in years.
Justin> why don't you just setup a test IMAP account and try a client?
participants (4)
-
Aki Tuomi
-
John Stoffel
-
Justin Coleman
-
Sami Ketola