Score:0

Troubles with Exporting Dovecot Post Boxes

sh flag

My postfix/dovecot mailserver runs well, but I want to migrate to another server and my problem: I'm not able to export post boxes from my dovecot:

My command (I replaced the email address):

dsync -f -u [email protected] backup maildir:/root/migr_in/data/mailaccounts

Then I get this error:

dsync([email protected]): Error: user [email protected]: Initialization failed: Initializing mail storage from mail_location setting failed: stat(/root/migr_in/data/mailaccounts) failed: Permission denied (euid=8(mail) egid=8(mail) missing +x perm: /root, dir owned by 0:0 mode=0700)

The perms of the target folder "/root/migr_in/data/mailaccounts" is 777.

What do I oversee?

Score:0
sh flag

Meanwhile, I tried it by overriding the setting, but it anyway doesn't work:

dsync -o mail_location=/var/mail/testbox/52 -f -u [email protected] backup maildir:/root/migr_out/data/tmp/tmpexport

Same error:

dsync([email protected]): Error: user [email protected]: Initialization failed: Initializing mail storage from mail_location setting failed: stat(/root/migr_out/data/tmp/tmpexport) failed: Permission denied (euid=8(mail) egid=8(mail) missing +x perm: /root, dir owned by 0:0 mode=0700)

The perms for /root/migr_out/data/tmp/tmpexport are 777 and it belongs the same user as the postbox itself (user "mail").

Has anyone an idea?

Score:0
sh flag

I found a solution: The problem was really just that I tried to export to a subdir below /root/. And this is where dsync isn't allowed to write :) I changed that to a folder outside /root and it worked :)

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.