Paul Hoffman
2015-Aug-09 18:20 UTC
How to import an mbox to an existing user as a new mailbox
On 9 Aug 2015, at 8:46, Benny Pedersen wrote:> Paul Hoffman skrev den 2015-08-09 17:40: > >> Initializing mail storage from mail_location parameter failed: mbox: >> mbox root directory can't be a file >> >> Which bit am I missing here? > > sudo doveadm import -u Foo mbox:/home/phoffman/project1/ "Project 1" > all > > untestedWhen I try this: Fatal: Import namespace initialization failed: Initializing mail storage from mail_location parameter failed: mkdir(/home/phoffman/project1) failed: Permission denied (euid=1013(phoffprop) egid=1013(phoffprop) missing +w perm: /home/phoffman, dir owned by 1001:1001 mode=0755) Does this error indicate that it is trying to write to the mbox file instead of reading it? If so, why? --Paul Hoffman
Benny Pedersen
2015-Aug-09 18:36 UTC
How to import an mbox to an existing user as a new mailbox
Paul Hoffman skrev den 2015-08-09 20:20:> Fatal: Import namespace initialization failed: Initializing mail > storage from mail_location parameter failed: > mkdir(/home/phoffman/project1) failed: Permission denied > (euid=1013(phoffprop) egid=1013(phoffprop) missing +w perm: > /home/phoffman, dir owned by 1001:1001 mode=0755) > > Does this error indicate that it is trying to write to the mbox file > instead of reading it? If so, why?nope, you have to tell dovecot auth backend more how to write to homedir of 'id proffprop' uid and gid does not match as i read it, proffprop have uid 1001 and dovecot tryed to write to 1013 search that error and solve it
Edgar Pettijohn
2015-Aug-09 18:58 UTC
How to import an mbox to an existing user as a new mailbox
On 08/09/15 13:36, Benny Pedersen wrote:> Paul Hoffman skrev den 2015-08-09 20:20: > >> Fatal: Import namespace initialization failed: Initializing mail >> storage from mail_location parameter failed: >> mkdir(/home/phoffman/project1) failed: Permission denied >> (euid=1013(phoffprop) egid=1013(phoffprop) missing +w perm: >> /home/phoffman, dir owned by 1001:1001 mode=0755) >> >> Does this error indicate that it is trying to write to the mbox file >> instead of reading it? If so, why? > > nope, you have to tell dovecot auth backend more how to write to > homedir of 'id proffprop' > > uid and gid does not match > > as i read it, proffprop have uid 1001 and dovecot tryed to write to 1013 > > search that error and solve itThere are prob. a lot of ways around this, but the easiest would most likely be something like: # chmod o+w /home/phoffman
Maybe Matching Threads
- How to import an mbox to an existing user as a new mailbox
- How to import an mbox to an existing user as a new mailbox
- How to import an mbox to an existing user as a new mailbox
- How to import an mbox to an existing user as a new mailbox
- How to import an mbox to an existing user as a new mailbox