<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><div><blockquote type="cite"><div>On 28 Feb 2023, at 5:53 pm, Aki Tuomi <aki.tuomi@open-xchange.com> wrote:</div><div><div><br><blockquote type="cite">On 28/02/2023 03:54 EET James Brown <jlbrown@bordo.com.au> wrote:<br><br>I’m moving from an old mail server to a new one.<br><br>On the new one, trying to transfer mailboxes from the old machine using doveadm. It fails saying it can’f find doveadm:<br><br>% sudo doveadm -Dv backup -R -u myuser@bordo.com.au remote:mail.bordo.com.au<br>Password:<br>Debug: Loading modules from directory: /usr/local/lib/dovecot/doveadm<br></blockquote></div></div></blockquote><blockquote type="cite"><blockquote type="cite">...<br></blockquote></blockquote><blockquote type="cite"><div><div><blockquote type="cite">(root@mail.bordo.com.au) Password:<br>sh: doveadm: command not found<br>Feb 28 12:42:06 dsync-local(myuser@bordo.com.au)<SJq/Iepb/WMOLAEAiJz6GQ>: Error: read(mail.bordo.com.au) failed: EOF (version not received)<br>Feb 28 12:42:06 dsync-local(myuser@bordo.com.au)<SJq/Iepb/WMOLAEAiJz6GQ>: Error: Remote command returned error 127: ssh mail.bordo.com.au doveadm dsync-server -umyuser@bordo.com.au -U<br>Feb 28 12:42:06 dsync-local(myuser@bordo.com.au)<SJq/Iepb/WMOLAEAiJz6GQ>: Debug: User session is finished<br>Feb 28 12:42:06 dsync-local(myuser@bordo.com.au)<SJq/Iepb/WMOLAEAiJz6GQ>: Debug: auth-master: conn unix:/usr/local/var/run/dovecot/auth-userdb (uid=0): Disconnected: Connection closed (fd=9)<br><br>Does this mean the remote machine can’t fine doveadm?<br><br>(Both machines are running macOS)<br><br>I could probably transfer the mailboxes using rsync, but I thought that doveadm was a better way.<br><br>Thanks,<br><br>James.<br></blockquote><br>Yeah, it means it can't find doveadm on the remote machine.<br><br>Please see https://doc.dovecot.org/admin_manual/migrating_mailboxes/<br><br>Aki<br></div></div></blockquote><br></div><div>Thanks Aki, those instructions are great. All working now. Added the <span style="font-family: Menlo; font-size: 11px;">service doveadm </span>and pw to old server and pw to new one and all works. And used tcp:oldmailserver:port instead of ‘remote:’ in command.</div><div><br></div><div>So <span style="font-family: Menlo; font-size: 11px;">sudo doveadm -Dv backup -R -u myuser@bordo.com.au tcp:mail.bordo.com.au:12354</span></div><br><div>Simple!</div><div><br></div><div>Thanks again,</div><div><br></div><div>James.</div></body></html>