<html><head></head><body><div>Hello!</div><div><br></div><div>I'm using 2 namespaces, "inbox" for INBOX and it's subfolders and "special" containing folders like Sent, Junk or Drafts. Though both use mdbox I decided to represent those namespaces in different locations "mdbox:~/mail" and "mdbox:~/mail_special_folders". The main reason to use 2 namespaces was to keep special_use folders out of INBOX by using the prefix attribute -- it's rather cosmetic. </div><div><br></div><div>├── INBOX</div><div>│ ├── SubFolder1</div><div>│ ├── SubFolder2</div><div>│ └── SubFolder3</div><div>├── Sent</div><div>├── Trash</div><div>├── Drafts</div><div>├── Junk</div><div>├── Templates</div><div>├── This is Ham</div><div>└── Report Spam</div><div><br></div><div>Now I want to export the emails of some former users to common known maildir or mbox format to be able to hand them over on CD. The problem is that a conversion with doveadm backup fails. I guess this is due to namespace special which is configured with a manual location attribute instead of utilising mail_location. But even telling doveadm to backup only one namespace leads to the identical error (extract of debug message at bottom). </div><div><br></div><div>As this is a RHEL7 server, the dovecot version is an old 2.2.10 and I don't expect software debugging -- I just ask if I did some misconfiguration or a failure in the command.</div><div>I already thought of merging the locations of both namespaces. Yet, I'm not sure how to achieve this. </div><div><br></div><div>From /etc/dovecot/conf.d/10-mail.conf</div><div><br></div><div>mail_location = mdbox:~/mail</div><div><br></div><div>namespace inbox {</div><div> type = private</div><div> hidden = no</div><div> ignore_on_failure = no</div><div> inbox = yes</div><div> list = yes</div><div> location =</div><div> prefix = INBOX/</div><div> separator = /</div><div> subscriptions = yes</div><div>}</div><div><br></div><div>namespace special {</div><div> type = private</div><div> hidden = no</div><div> ignore_on_failure = no</div><div> inbox = no</div><div> list = yes</div><div> location = mdbox:~/mail_special_folders</div><div> prefix = </div><div> separator = /</div><div> subscriptions = yes</div><div>}</div><div><br></div><div><br></div><div>HOME is set by LDAP</div><div>user_attrs = =home=/srv/mail/%Ld/%Ln,=uid=20000,=gid=20000,imapQuota=quota_rule=*:storage=%$G</div><div><br></div><div><br></div><div>Identical debug messages of following commands:</div><div><br></div><div># dsync -Dv backup -u <a href="mailto:bob@cs.sbg.ac.at">bob@cs.sbg.ac.at</a> maildir:/home/Mailexport/bob</div><div>or</div><div># doveadm -Dv backup -u <a href="mailto:bob@cs.sbg.ac.at">bob@cs.sbg.ac.at</a> maildir:/home/Mailexport/bob</div><div>or</div><div># doveadm -Dv backup -u <a href="mailto:bob@cs.sbg.ac.at">bob@cs.sbg.ac.at</a> -n inbox maildir:/home/Mailexport/bob</div><div>or </div><div># doveadm -Dv backup -u <a href="mailto:bob@cs.sbg.ac.at">bob@cs.sbg.ac.at</a> -n special maildir:/home/Mailexport/bob</div><div><br></div><div>...</div><div>doveadm(<a href="mailto:bob@cs.sbg.ac.at">bob@cs.sbg.ac.at</a>): Debug: Namespace inbox: type=private, prefix=INBOX/, sep=/, inbox=yes, hidden=no, list=yes, subscriptions=yes location=mdbox:~/mail</div><div>doveadm(<a href="mailto:bob@cs.sbg.ac.at">bob@cs.sbg.ac.at</a>): Debug: fs: root=/srv/mail/cs.sbg.ac.at/bob/mail, index=, indexpvt=, control=, inbox=, alt=</div><div>doveadm(<a href="mailto:bob@cs.sbg.ac.at">bob@cs.sbg.ac.at</a>): Debug: Namespace special: type=private, prefix=, sep=/, inbox=no, hidden=no, list=yes, subscriptions=yes location=mdbox:~/mail_special_folders</div><div>doveadm(<a href="mailto:bob@cs.sbg.ac.at">bob@cs.sbg.ac.at</a>): Debug: fs: root=/srv/mail/cs.sbg.ac.at/bob/mail_special_folders, index=, indexpvt=, control=, inbox=, alt=</div><div>doveadm(<a href="mailto:bob@cs.sbg.ac.at">bob@cs.sbg.ac.at</a>): Debug: Namespace INBOX/: Using permissions from /srv/mail/cs.sbg.ac.at/bob/mail: mode=0774 gid=default</div><div>dsync(<a href="mailto:bob@cs.sbg.ac.at">bob@cs.sbg.ac.at</a>): Debug: Effective uid=20000, gid=20000, home=/srv/mail/cs.sbg.ac.at/bob</div><div>dsync(<a href="mailto:bob@cs.sbg.ac.at">bob@cs.sbg.ac.at</a>): Debug: Quota root: name=User quota backend=dict args=:file:/srv/mail/cs.sbg.ac.at/bob/dovecot-quota</div><div>...</div><div>dsync(<a href="mailto:bob@cs.sbg.ac.at">bob@cs.sbg.ac.at</a>): Debug: Namespace inbox: type=private, prefix=INBOX/, sep=/, inbox=yes, hidden=no, list=yes, subscriptions=yes location=maildir:/home/Mailexport/bob</div><div>dsync(<a href="mailto:bob@cs.sbg.ac.at">bob@cs.sbg.ac.at</a>): Debug: maildir++: root=/home/Mailexport/bob, index=, indexpvt=, control=, inbox=/home/Mailexport/bob, alt=</div><div>dsync(<a href="mailto:bob@cs.sbg.ac.at">bob@cs.sbg.ac.at</a>): Debug: Namespace special: type=private, prefix=, sep=/, inbox=no, hidden=no, list=yes, subscriptions=yes location=mdbox:~/mail_special_folders</div><div>dsync(<a href="mailto:bob@cs.sbg.ac.at">bob@cs.sbg.ac.at</a>): Debug: fs: root=/srv/mail/cs.sbg.ac.at/bob/mail_special_folders, index=, indexpvt=, control=, inbox=, alt=</div><div>dsync(<a href="mailto:bob@cs.sbg.ac.at">bob@cs.sbg.ac.at</a>): Error: Both source and destination mail_location points to same directory: /srv/mail/cs.sbg.ac.at/bob/mail_special_folders/mailboxes</div><div><br></div><div>Many thanks for any hint</div><div>Martin</div><div></div></body></html>