"sh: doveadm: command not found" with doveadm -Dv backup -R
I’m moving from an old mail server to a new one.
On the new one, trying to transfer mailboxes from the old machine using doveadm. It fails saying it can’f find doveadm:
% sudo doveadm -Dv backup -R -u myuser@bordo.com.au remote:mail.bordo.com.au
Password:
Debug: Loading modules from directory: /usr/local/lib/dovecot/doveadm
Debug: Skipping module doveadm_acl_plugin, because dlopen() failed: dlopen(/usr/local/lib/dovecot/doveadm/lib10_doveadm_acl_plugin.so, 0x000A): symbol not found in flat namespace '_acl_backend_nonowner_lookups_iter_deinit' (this is usually intentional, so just ignore this message)
Debug: Skipping module doveadm_quota_plugin, because dlopen() failed: dlopen(/usr/local/lib/dovecot/doveadm/lib10_doveadm_quota_plugin.so, 0x000A): symbol not found in flat namespace '_quota_get_resource' (this is usually intentional, so just ignore this message)
Debug: Skipping module doveadm_fts_plugin, because dlopen() failed: dlopen(/usr/local/lib/dovecot/doveadm/lib20_doveadm_fts_plugin.so, 0x000A): symbol not found in flat namespace '_fts_backend_lookup' (this is usually intentional, so just ignore this message)
Debug: Skipping module doveadm_mail_crypt_plugin, because dlopen() failed: dlopen(/usr/local/lib/dovecot/doveadm/libdoveadm_mail_crypt_plugin.so, 0x000A): symbol not found in flat namespace '_mail_crypt_acl_secure_sharing_enabled' (this is usually intentional, so just ignore this message)
Feb 28 12:42:02 Debug: Loading modules from directory: /usr/local/lib/dovecot/doveadm
Feb 28 12:42:02 Debug: Skipping module doveadm_acl_plugin, because dlopen() failed: dlopen(/usr/local/lib/dovecot/doveadm/lib10_doveadm_acl_plugin.so, 0x000A): symbol not found in flat namespace '_acl_backend_nonowner_lookups_iter_deinit' (this is usually intentional, so just ignore this message)
Feb 28 12:42:02 Debug: Skipping module doveadm_quota_plugin, because dlopen() failed: dlopen(/usr/local/lib/dovecot/doveadm/lib10_doveadm_quota_plugin.so, 0x000A): symbol not found in flat namespace '_quota_get_resource' (this is usually intentional, so just ignore this message)
Feb 28 12:42:02 Debug: Skipping module doveadm_fts_plugin, because dlopen() failed: dlopen(/usr/local/lib/dovecot/doveadm/lib20_doveadm_fts_plugin.so, 0x000A): symbol not found in flat namespace '_fts_backend_lookup' (this is usually intentional, so just ignore this message)
Feb 28 12:42:02 Debug: Skipping module doveadm_mail_crypt_plugin, because dlopen() failed: dlopen(/usr/local/lib/dovecot/doveadm/libdoveadm_mail_crypt_plugin.so, 0x000A): symbol not found in flat namespace '_mail_crypt_acl_secure_sharing_enabled' (this is usually intentional, so just ignore this message)
Feb 28 12:42:02 doveadm(myuser@bordo.com.au)<76814><>: Debug: auth-master: userdb lookup(myuser@bordo.com.au): Started userdb lookup
Feb 28 12:42:02 doveadm(myuser@bordo.com.au)<76814><>: Debug: auth-master: conn unix:/usr/local/var/run/dovecot/auth-userdb: Connecting
Feb 28 12:42:02 doveadm(myuser@bordo.com.au)<76814><>: Debug: auth-master: conn unix:/usr/local/var/run/dovecot/auth-userdb (uid=0): Client connected (fd=9)
Feb 28 12:42:02 doveadm(myuser@bordo.com.au)<76814><>: Debug: auth-master: userdb lookup(myuser@bordo.com.au): auth USER input: myuser@bordo.com.au home=/usr/local/virtual/bordo.com.au/myuser mail=maildir:/usr/local/virtual/bordo.com.au/myuser uid=102 gid=102 quota=*:storage=0
Feb 28 12:42:02 doveadm(myuser@bordo.com.au)<76814><>: Debug: auth-master: userdb lookup(myuser@bordo.com.au): Finished userdb lookup (username=myuser@bordo.com.au home=/usr/local/virtual/bordo.com.au/myuser mail=maildir:/usr/local/virtual/bordo.com.au/myuser uid=102 gid=102 quota=*:storage=0)
Feb 28 12:42:02 doveadm(myuser@bordo.com.au)<76814><>: Debug: Added userdb setting: mail=maildir:/usr/local/virtual/bordo.com.au/myuser
Feb 28 12:42:02 doveadm(myuser@bordo.com.au)<76814><>: Debug: Added userdb setting: plugin/quota=*:storage=0
Feb 28 12:42:02 doveadm(myuser@bordo.com.au): Debug: Effective uid=102, gid=102, home=/usr/local/virtual/bordo.com.au/myuser
Feb 28 12:42:02 doveadm(myuser@bordo.com.au): Debug: open(/proc/self/stat) failed: No such file or directory
Feb 28 12:42:02 doveadm(myuser@bordo.com.au): Debug: open(/proc/self/io) failed: No such file or directory
Feb 28 12:42:02 doveadm(myuser@bordo.com.au): Debug: Namespace inbox: type=private, prefix=, sep=, inbox=yes, hidden=no, list=yes, subscriptions=yes location=maildir:/usr/local/virtual/bordo.com.au/myuser
Feb 28 12:42:02 doveadm(myuser@bordo.com.au): Debug: maildir++: root=/usr/local/virtual/bordo.com.au/myuser, index=, indexpvt=, control=, inbox=/usr/local/virtual/bordo.com.au/myuser, alt=
Feb 28 12:42:02 doveadm(myuser@bordo.com.au): Debug: brain M: Namespace has location maildir:/usr/local/virtual/bordo.com.au/myuser
Feb 28 12:42:02 doveadm(myuser@bordo.com.au): Debug: Mailbox INBOX: Couldn't open mailbox in list index: Mailbox not found
Feb 28 12:42:02 doveadm(myuser@bordo.com.au): Debug: Namespace : Using permissions from /usr/local/virtual/bordo.com.au/myuser: mode=0700 gid=default
(root@mail.bordo.com.au) Password:
sh: doveadm: command not found
Feb 28 12:42:06 dsync-local(myuser@bordo.com.au)
Does this mean the remote machine can’t fine doveadm?
(Both machines are running macOS)
I could probably transfer the mailboxes using rsync, but I thought that doveadm was a better way.
Thanks,
James.
On 28/02/2023 03:54 EET James Brown jlbrown@bordo.com.au wrote:
I’m moving from an old mail server to a new one.
On the new one, trying to transfer mailboxes from the old machine using doveadm. It fails saying it can’f find doveadm:
% sudo doveadm -Dv backup -R -u myuser@bordo.com.au remote:mail.bordo.com.au Password: Debug: Loading modules from directory: /usr/local/lib/dovecot/doveadm Debug: Skipping module doveadm_acl_plugin, because dlopen() failed: dlopen(/usr/local/lib/dovecot/doveadm/lib10_doveadm_acl_plugin.so, 0x000A): symbol not found in flat namespace '_acl_backend_nonowner_lookups_iter_deinit' (this is usually intentional, so just ignore this message) Debug: Skipping module doveadm_quota_plugin, because dlopen() failed: dlopen(/usr/local/lib/dovecot/doveadm/lib10_doveadm_quota_plugin.so, 0x000A): symbol not found in flat namespace '_quota_get_resource' (this is usually intentional, so just ignore this message) Debug: Skipping module doveadm_fts_plugin, because dlopen() failed: dlopen(/usr/local/lib/dovecot/doveadm/lib20_doveadm_fts_plugin.so, 0x000A): symbol not found in flat namespace '_fts_backend_lookup' (this is usually intentional, so just ignore this message) Debug: Skipping module doveadm_mail_crypt_plugin, because dlopen() failed: dlopen(/usr/local/lib/dovecot/doveadm/libdoveadm_mail_crypt_plugin.so, 0x000A): symbol not found in flat namespace '_mail_crypt_acl_secure_sharing_enabled' (this is usually intentional, so just ignore this message) Feb 28 12:42:02 Debug: Loading modules from directory: /usr/local/lib/dovecot/doveadm Feb 28 12:42:02 Debug: Skipping module doveadm_acl_plugin, because dlopen() failed: dlopen(/usr/local/lib/dovecot/doveadm/lib10_doveadm_acl_plugin.so, 0x000A): symbol not found in flat namespace '_acl_backend_nonowner_lookups_iter_deinit' (this is usually intentional, so just ignore this message) Feb 28 12:42:02 Debug: Skipping module doveadm_quota_plugin, because dlopen() failed: dlopen(/usr/local/lib/dovecot/doveadm/lib10_doveadm_quota_plugin.so, 0x000A): symbol not found in flat namespace '_quota_get_resource' (this is usually intentional, so just ignore this message) Feb 28 12:42:02 Debug: Skipping module doveadm_fts_plugin, because dlopen() failed: dlopen(/usr/local/lib/dovecot/doveadm/lib20_doveadm_fts_plugin.so, 0x000A): symbol not found in flat namespace '_fts_backend_lookup' (this is usually intentional, so just ignore this message) Feb 28 12:42:02 Debug: Skipping module doveadm_mail_crypt_plugin, because dlopen() failed: dlopen(/usr/local/lib/dovecot/doveadm/libdoveadm_mail_crypt_plugin.so, 0x000A): symbol not found in flat namespace '_mail_crypt_acl_secure_sharing_enabled' (this is usually intentional, so just ignore this message) Feb 28 12:42:02 doveadm(myuser@bordo.com.au)<76814><>: Debug: auth-master: userdb lookup(myuser@bordo.com.au): Started userdb lookup Feb 28 12:42:02 doveadm(myuser@bordo.com.au)<76814><>: Debug: auth-master: conn unix:/usr/local/var/run/dovecot/auth-userdb: Connecting Feb 28 12:42:02 doveadm(myuser@bordo.com.au)<76814><>: Debug: auth-master: conn unix:/usr/local/var/run/dovecot/auth-userdb (uid=0): Client connected (fd=9) Feb 28 12:42:02 doveadm(myuser@bordo.com.au)<76814><>: Debug: auth-master: userdb lookup(myuser@bordo.com.au): auth USER input: myuser@bordo.com.au home=/usr/local/virtual/bordo.com.au/myuser mail=maildir:/usr/local/virtual/bordo.com.au/myuser uid=102 gid=102 quota=*:storage=0 Feb 28 12:42:02 doveadm(myuser@bordo.com.au)<76814><>: Debug: auth-master: userdb lookup(myuser@bordo.com.au): Finished userdb lookup (username=myuser@bordo.com.au home=/usr/local/virtual/bordo.com.au/myuser mail=maildir:/usr/local/virtual/bordo.com.au/myuser uid=102 gid=102 quota=*:storage=0) Feb 28 12:42:02 doveadm(myuser@bordo.com.au)<76814><>: Debug: Added userdb setting: mail=maildir:/usr/local/virtual/bordo.com.au/myuser Feb 28 12:42:02 doveadm(myuser@bordo.com.au)<76814><>: Debug: Added userdb setting: plugin/quota=*:storage=0 Feb 28 12:42:02 doveadm(myuser@bordo.com.au): Debug: Effective uid=102, gid=102, home=/usr/local/virtual/bordo.com.au/myuser Feb 28 12:42:02 doveadm(myuser@bordo.com.au): Debug: open(/proc/self/stat) failed: No such file or directory Feb 28 12:42:02 doveadm(myuser@bordo.com.au): Debug: open(/proc/self/io) failed: No such file or directory Feb 28 12:42:02 doveadm(myuser@bordo.com.au): Debug: Namespace inbox: type=private, prefix=, sep=, inbox=yes, hidden=no, list=yes, subscriptions=yes location=maildir:/usr/local/virtual/bordo.com.au/myuser Feb 28 12:42:02 doveadm(myuser@bordo.com.au): Debug: maildir++: root=/usr/local/virtual/bordo.com.au/myuser, index=, indexpvt=, control=, inbox=/usr/local/virtual/bordo.com.au/myuser, alt= Feb 28 12:42:02 doveadm(myuser@bordo.com.au): Debug: brain M: Namespace has location maildir:/usr/local/virtual/bordo.com.au/myuser Feb 28 12:42:02 doveadm(myuser@bordo.com.au): Debug: Mailbox INBOX: Couldn't open mailbox in list index: Mailbox not found Feb 28 12:42:02 doveadm(myuser@bordo.com.au): Debug: Namespace : Using permissions from /usr/local/virtual/bordo.com.au/myuser: mode=0700 gid=default (root@mail.bordo.com.au) Password: sh: doveadm: command not found Feb 28 12:42:06 dsync-local(myuser@bordo.com.au)
: Error: read(mail.bordo.com.au) failed: EOF (version not received) Feb 28 12:42:06 dsync-local(myuser@bordo.com.au) : Error: Remote command returned error 127: ssh mail.bordo.com.au doveadm dsync-server -umyuser@bordo.com.au -U Feb 28 12:42:06 dsync-local(myuser@bordo.com.au) : Debug: User session is finished Feb 28 12:42:06 dsync-local(myuser@bordo.com.au) : Debug: auth-master: conn unix:/usr/local/var/run/dovecot/auth-userdb (uid=0): Disconnected: Connection closed (fd=9) Does this mean the remote machine can’t fine doveadm?
(Both machines are running macOS)
I could probably transfer the mailboxes using rsync, but I thought that doveadm was a better way.
Thanks,
James.
Yeah, it means it can't find doveadm on the remote machine.
Please see https://doc.dovecot.org/admin_manual/migrating_mailboxes/
Aki
On 28 Feb 2023, at 5:53 pm, Aki Tuomi aki.tuomi@open-xchange.com wrote:
On 28/02/2023 03:54 EET James Brown jlbrown@bordo.com.au wrote:
I’m moving from an old mail server to a new one.
On the new one, trying to transfer mailboxes from the old machine using doveadm. It fails saying it can’f find doveadm:
% sudo doveadm -Dv backup -R -u myuser@bordo.com.au remote:mail.bordo.com.au Password: Debug: Loading modules from directory: /usr/local/lib/dovecot/doveadm ... (root@mail.bordo.com.au) Password: sh: doveadm: command not found Feb 28 12:42:06 dsync-local(myuser@bordo.com.au)
: Error: read(mail.bordo.com.au) failed: EOF (version not received) Feb 28 12:42:06 dsync-local(myuser@bordo.com.au) : Error: Remote command returned error 127: ssh mail.bordo.com.au doveadm dsync-server -umyuser@bordo.com.au -U Feb 28 12:42:06 dsync-local(myuser@bordo.com.au) : Debug: User session is finished Feb 28 12:42:06 dsync-local(myuser@bordo.com.au) : Debug: auth-master: conn unix:/usr/local/var/run/dovecot/auth-userdb (uid=0): Disconnected: Connection closed (fd=9) Does this mean the remote machine can’t fine doveadm?
(Both machines are running macOS)
I could probably transfer the mailboxes using rsync, but I thought that doveadm was a better way.
Thanks,
James.
Yeah, it means it can't find doveadm on the remote machine.
Please see https://doc.dovecot.org/admin_manual/migrating_mailboxes/
Aki
Thanks Aki, those instructions are great. All working now. Added the service doveadm and pw to old server and pw to new one and all works. And used tcp:oldmailserver:port instead of ‘remote:’ in command.
So sudo doveadm -Dv backup -R -u myuser@bordo.com.au tcp:mail.bordo.com.au:12354
Simple!
Thanks again,
James.
participants (2)
-
Aki Tuomi
-
James Brown