Thomas,
Patrick is correct about the hash settings. You would be well advised,
however, to please review the Cyrus documentation more completely before
migrating from 2.4.19 to 3.4.3. This is a very big shift, and one
cannot expect to succeed by following the copy (or rsync) and
reconstruct scheme.
To understand hashing, you should review the link Patrick sent. To
understand the locations of the state and spool files, you should read
the whole chapter, File & Directory Locations
<https://www.cyrusimap.org/imap/reference/admin/locations.html#file-directory-locations>.
The imapd.conf(5) which comes with the Ubuntu packaging, based on your
description, sets different defaults than the factory settings. This
should be explained in the documentation which accompanies your packages.
Lastly, I would strongly recommend reviewing the sections on Upgrading
to 3.4
<https://www.cyrusimap.org/imap/download/upgrade.html#upgrading-to-3-4>.
And make sure to review release notes, as there are often breaking
changes which you'll want to know about. In almost all cases solutions
are provided to work around breaking changes. Also, while you may be
focusing on the mail spool, you must pay as much, or more, attention to
the state directories, which hold the databases which glue together all
of the data. If you're coming from 2.4 there's a good chance those are
Berkeley DB, which is no longer supported, so you'll need to convert
them. Fear not, the tools are all provided.
You may find it easier to try using a tool like imapsync
<https://imapsync.lamiral.info/>, which uses IMAP protocol to sync your
old server to the new, and lets one work around any incompatibilities
introduced along the way. But everything you need to successfully
upgrade from 2.4.9 to 3.4.3 can be found on the cyrusimap.org site.
Cheers,
-nic
On 11/13/22 15:23, Patrick Boutilier wrote:
On 2022-11-13 11:11, [email protected] wrote:
Hello,
I got the task, to migrate a cyrus imapd installation from an old
SLES 12 with cyrus imapd 2.4.19
to an ubuntu-machine with ubuntu 22.04 LTS with cyrus imapd 3.4.3.
I'm not very familar with that stuff.
My first problem: The path to the mailboxes on the old system is
/var/spool/imap/user/. In this directory there are all the user
mailboxes.
But on the ubuntu-Server the mailbox-path-structure is as follows:
/var/spool/cyrus/mail/[a-z]/user.
I can't find any setting, where I can manipulate this. Does this path
depend on the OS ? Or on the cyrus imapd version ?
My plan was to copy the mailboxes to the new server and start a
reconstruct.
But how will I do that ? Do I have to sort the users into the
alphabetical ordered directory structure "manually" ?
Or can I keep my old structure ?
The Ubuntu server has "hashimapspool" set to true it seems. And
possibly "fulldirhash" as well. You can set these to false if the
Ubuntu server doesn't have any live data as changing that setting will
break things.
https://www.cyrusimap.org/imap/reference/admin/locations/hashing.html
thanks
Thomas
*Cyrus <https://cyrus.topicbox.com/latest>* / Info / see discussions
<https://cyrus.topicbox.com/groups/info> + participants
<https://cyrus.topicbox.com/groups/info/members> + delivery options
<https://cyrus.topicbox.com/groups/info/subscription> Permalink
<https://cyrus.topicbox.com/groups/info/T99ebac3f0e6d6f36-M081875de05046424ec1541c9>
------------------------------------------
Cyrus: Info
Permalink:
https://cyrus.topicbox.com/groups/info/T99ebac3f0e6d6f36-M7bfe78dd429316a696648d7c
Delivery options: https://cyrus.topicbox.com/groups/info/subscription
--
Nic [email protected]
https://www.nicbernstein.com
------------------------------------------
Cyrus: Info
Permalink:
https://cyrus.topicbox.com/groups/info/T99ebac3f0e6d6f36-M9b572c2f83de930ed2802535
Delivery options: https://cyrus.topicbox.com/groups/info/subscription