> I think there are two independent errors. > First: > >doveadm([email protected]): Error: chdir(/root/) failed: Permission > >denied (euid=1001(theid) egid=1001(theid) missing +x perm: /root, dir owned > >by 0:0 mode=0700) > >doveadm([email protected]): Error: chdir(/root) failed: Permission > >denied > Here I think doveadm import tries to do a chdir to the users HOME Directory > and does it wrong. It uses the bash environment variable $HOME instead of > the users home information as shown by doveadm user. > > Why do I think so, because if I manually export the bash environment HOME to > the Home Directory of the user I want to import to I don't receive this > error anymore. > > Example: > export HOME="/mailhome/userA" > doveadm import -u userA maildir:/backup/userA Backup ALL; > -> No Error > export HOME="/root" > doveadm import -u userA maildir:/backup/userA Backup ALL; > -> Error as seen above.
Yes, this was my actual problem. So doveadm is really doing something wrong. > Second: That was not my original problem :) > If the first error is a bug or a feature I don't know, but doveadm import > works correct with or without this error shown. At least for the things I > have done. Yes, it works. But personally I think it shouldn't emit errors if everything works as expected... I'll just work around it. -- Ralf Hildebrandt Geschäftsbereich IT | Abteilung Netzwerk Charité - Universitätsmedizin Berlin Campus Benjamin Franklin Hindenburgdamm 30 | D-12203 Berlin Tel. +49 30 450 570 155 | Fax: +49 30 450 570 962 [email protected] | http://www.charite.de
