Discussion:
Where to find Kolab File storage
Anders
2018-01-27 14:00:54 UTC
Permalink
I have an old Kolab installation that is to be shut-down and replaced.
Emails have been exported some time ago while documents stored under
"Files" are pending migration.

The challenge is that I am no longer able to login to this Kolab
installation neither as cn = Directory Manager nor as a user (the
passwords are strictly maintained and did all work before the migration,
DNS redirect, etc.).

Rather than doing an analysis and recovery of the old Kolab installation
I wonder if it is posible to identify the Kolab File structure content
on the server (CentOS 7) where I have server admin rights and simply
download the content from the given catalogue (to my understanding Kolab
file storage is located in the file system and not in the Kolab
repository)? If so, where can I find the Kolab File storage in the file
system on the CentOS server?

Many thanks for any insight shared into this matter,

Anders
Tobias Brunner
2018-01-27 15:23:28 UTC
Permalink
Post by Anders
If so, where can I find the Kolab File storage in the file
system on the CentOS server?
As far as I remember, files are stored in IMAP in the default
configuration, just like calendar and contacts.
hede
2018-01-27 17:19:37 UTC
Permalink
Post by Tobias Brunner
Post by Anders
If so, where can I find the Kolab File storage in the file
system on the CentOS server?
As far as I remember, files are stored in IMAP in the default
configuration, just like calendar and contacts.
Correct. It's the files folder within the users directories.

You can read those files with any imap client connected to kolab (like mail applications) which lists them as emails with file attachments. Those emails are comprised of multiple parts:

- a standard text part readable by the user which says something like:

"This is a Kolab Groupware object. To view ..."

- a kolab xml spec with metadata related to the file

- the stored file itself

One thing to remember: Newer Kolab servers do include guam, an imap proxy which is listening on the imap/imaps port. It hides those kolab specific directories like contacts, calendars and files from mail clients which are not kolab aware. You have to directly connect to the imap servers ports (probably cyrus imapd).

If you do not have any login credentials, you can use the imap server's files directly. The path for a single user would look like:

/var/spool/imap/domain/[a-z]/[domain]/[a-z]/user/[username]/Files

The cyrus file format is a simple wire format; any converter which is able to convert emails should be able to import them to extract the file attachments - file by file.

regards
hede
Anders Ekman
2018-01-28 11:20:26 UTC
Permalink
Thanks a lot hede and Tobias!

Your advice solved my issue (I was able to locate the files by following
hede's instructions and have now downloaded the files to a local machine
for email conversion).

Best regards,

Anders


am currently downloading the content of the "
Post by hede
Post by Tobias Brunner
Post by Anders
If so, where can I find the Kolab File storage in the file
system on the CentOS server?
As far as I remember, files are stored in IMAP in the default
configuration, just like calendar and contacts.
Correct. It's the files folder within the users directories.
"This is a Kolab Groupware object. To view ..."
- a kolab xml spec with metadata related to the file
- the stored file itself
One thing to remember: Newer Kolab servers do include guam, an imap proxy which is listening on the imap/imaps port. It hides those kolab specific directories like contacts, calendars and files from mail clients which are not kolab aware. You have to directly connect to the imap servers ports (probably cyrus imapd).
/var/spool/imap/domain/[a-z]/[domain]/[a-z]/user/[username]/Files
The cyrus file format is a simple wire format; any converter which is able to convert emails should be able to import them to extract the file attachments - file by file.
regards
hede
_______________________________________________
users mailing list
https://lists.kolab.org/mailman/listinfo/users
Loading...