doveadm migration to server with no root access
Hi
I am trying to do mailbox migrations using doveadm to a server that I do not have root access on without success. Is this possible?
What I have done and results:
ssh to server with mailboxes to copy and then su cp /etc/dovecot/dovecot.conf /root/tmp/dovecot_new.conf append text below** to end of dovecot_new.conf try to copy mail 3 different ways (all fail see error messages)
doveadm -D -v -c /root/tmp/dovecot_new.conf -o mail_fsync=never sync -1 -u test@propertyzone.co.za pop3c: fail with: Error: Mailbox INBOX.Archive sync: mailbox_set_subscribed failed: Subscriptions not supported
doveadm -D -v -c /root/tmp/dovecot_new.conf -o mail_fsync=never sync -u test@propertyzone.co.za pop3c: fail with: Error: Can't create mailbox INBOX.Archive: POP3 mailbox creation isn't supported
doveadm -D -v -c /root/tmp/dovecot_new.conf -o mail_fsync=never backup -u test@propertyzone.co.za pop3c: fail with: dsync(test@propertyzone.co.za): Panic: file mailbox-list-delete.c: line 473 (mailbox_list_delete_symlink_default): assertion failed: (ret > 0)
** append at end of dovecot_new.conf
pop3c_host = dedi225.jnb3.host-h.net
pop3c_user = test@propertyzone.co.za
pop3c_password = *****
namespace inbox {
inbox = yes
}
namespace {
prefix = POP3-MIGRATION-NS/
location = pop3c:
list = no
hidden = yes
}
protocol doveadm {
mail_plugins = $mail_plugins pop3_migration
}
plugin {
pop3_migration_mailbox = POP3-MIGRATION-NS/INBOX
-- Sent from: http://dovecot.2317879.n4.nabble.com/
Hi,
you can't migrate by pushing to imapc: or pop3c: host. It's not supported and in fact is not even possible without losing data.
you need to pull the mails by running doveadm on the new server.
Sami
On 26 Jul 2019, at 16.13, jon rose via dovecot dovecot@dovecot.org wrote:
Hi
I am trying to do mailbox migrations using doveadm to a server that I do not have root access on without success. Is this possible?
What I have done and results:
ssh to server with mailboxes to copy and then su cp /etc/dovecot/dovecot.conf /root/tmp/dovecot_new.conf append text below** to end of dovecot_new.conf try to copy mail 3 different ways (all fail see error messages)
doveadm -D -v -c /root/tmp/dovecot_new.conf -o mail_fsync=never sync -1 -u test@propertyzone.co.za pop3c: fail with: Error: Mailbox INBOX.Archive sync: mailbox_set_subscribed failed: Subscriptions not supported
doveadm -D -v -c /root/tmp/dovecot_new.conf -o mail_fsync=never sync -u test@propertyzone.co.za pop3c: fail with: Error: Can't create mailbox INBOX.Archive: POP3 mailbox creation isn't supported
doveadm -D -v -c /root/tmp/dovecot_new.conf -o mail_fsync=never backup -u test@propertyzone.co.za pop3c: fail with: dsync(test@propertyzone.co.za): Panic: file mailbox-list-delete.c: line 473 (mailbox_list_delete_symlink_default): assertion failed: (ret > 0)
** append at end of dovecot_new.conf
pop3c_host = dedi225.jnb3.host-h.net pop3c_user = test@propertyzone.co.za pop3c_password = ***** namespace inbox { inbox = yes } namespace { prefix = POP3-MIGRATION-NS/ location = pop3c: list = no hidden = yes } protocol doveadm { mail_plugins = $mail_plugins pop3_migration } plugin { pop3_migration_mailbox = POP3-MIGRATION-NS/INBOX-- Sent from: http://dovecot.2317879.n4.nabble.com/
Hi Sami
Thanks for your response.
Is it then possible to run doveadm without root permission? I've tried, but get the following errors (using the same kind of setup as my initial post).
command: doveadm -D -v -c /root/tmp/dovecot_hetz.conf -o mail_fsync=never backup -u test@propertyzone.co.za pop3c: response: doveadm(test@propertyzone.co.za): Error: userdb lookup: connect(/var/run/dovecot/auth-userdb) failed: Permission denied (euid=1264(propenmnvk) egid=1264(propenmnvk) missing +r perm: /var/run/dovecot/auth-userdb, we're not in group 8(mail), dir owned by 0:0 mode=0755) doveadm(test@propertyzone.co.za): Error: User lookup failed: Internal error occurred. Refer to server log for more information.
-- Sent from: http://dovecot.2317879.n4.nabble.com/
Hi,
most likely no. You need to ask the admin of the server to do the migration.
Sami
On 26 Jul 2019, at 17.11, jon rose via dovecot dovecot@dovecot.org wrote:
Hi Sami
Thanks for your response.
Is it then possible to run doveadm without root permission? I've tried, but get the following errors (using the same kind of setup as my initial post).
command: doveadm -D -v -c /root/tmp/dovecot_hetz.conf -o mail_fsync=never backup -u test@propertyzone.co.za pop3c: response: doveadm(test@propertyzone.co.za): Error: userdb lookup: connect(/var/run/dovecot/auth-userdb) failed: Permission denied (euid=1264(propenmnvk) egid=1264(propenmnvk) missing +r perm: /var/run/dovecot/auth-userdb, we're not in group 8(mail), dir owned by 0:0 mode=0755) doveadm(test@propertyzone.co.za): Error: User lookup failed: Internal error occurred. Refer to server log for more information.
-- Sent from: http://dovecot.2317879.n4.nabble.com/
participants (2)
-
jon rose
-
Sami Ketola