• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

Lösung

Status
Für weitere Antworten geschlossen.

primeon

Member
Hallo.

Ein freundlicher Mensch aus der Cyrus Mailinggliste hat mir weitergeholfen.
Für alle die ein ähnliches Problem haben hier die Anleitung:

Dump your mailboxes-Database on the old system:
ctl_mboxlist -d > mailboxes.dump
Copy the resulting "mailboxes.dump" to the new server.

2. Copy the imap mail store 1:1 to the new server:
example (here on both machines, the store is in /var/spool/imap,
the target directory must exist and be writable by the cyrus user):

cd /var/spool/imap
tar cvpf - . | ssh cyrus@newserver "cd /var/spool/imap; tar xpf -"

3. Copy the following directories to the new system
(do it like you have done with your mail store):

- Sieve (e.g. /var/imap/sieve)
Databases:
- Quotas (e.g. /var/imap/quota)
- Seen/Subscribed (e.g. /var/imap/user)

Warning! This will work only if your new cyrus system uses the
same database backends as the old one!

Losing the databases results in the following:

- Quotas: The user will not have any quota restriction anymore.
- Seen/Sub: The user will not see which messages are marked
"read" nor it will now which mailboxes he was subscribed to.

4. Reconstruct a new mailboxes-Database on the new system:
ctl_mboxlist -u < mailboxes.dump

5. Run reconstruct on the new system.
reconstruct -f

6. When used quotas on the old system, run on the new one:
quota -f

7. Tricky part: SASL user database
When sasldb was used, then:
If your new sasl lib uses the same database backend as the old one, you
may simply copy
your old sasldb to the new server when these conditions are met:

- Your realm is the same as on the old server.
- The database backend is the same

You may still set the same realm/imap server name as the old one in your
imapd.conf.

If your IMAP realm is your hostname or your sasl database backend is
another one, you
must use a program to dump the contents of the old sasldb. As passwords
are stored in clear-
text it is not very difficult to accomplish that.
 

Grothesk

Ultimate Guru
Lösung zu welchem Problem? Evtl. ergänzt du das noch in der Überschrift, dann kann man damit auch was anfangen...
 
OP
P

primeon

Member
Hallo,

ja ich hatte ja schon vorher geschrieben welches Problem ich hatte,
darauf bezieht sich die Lösung.

Es ging darum Mailkonten vom Server 1 nach Server 2 zu verschieben.

Problem war, dass dann die anderen Mailkonten gelöscht wurden.

ich habe die Verzeichnisse /var/spool/imap und
/var/lib/imap gesichert und auf den neunen Server kopiert,
aber ich wollte die vorhandenen Mailkonten nicht überschreiben und das ist die Lösung für das Problem.Komme aber erst morgen dazu dieses zu testen.
 

Grothesk

Ultimate Guru
ja ich hatte ja schon vorher geschrieben welches Problem ich hatte, darauf bezieht sich die Lösung.
Ja, prima! Und wo ist der Bezug zu deinem Problem? Das kann doch kein Mensch nachvollziehen, wenn du das in einen separaten Thread ohne Verweis auf den alten Thread packst. :roll:

Dann verlinke die Threads, wenn du's getestet hast.
 
Status
Für weitere Antworten geschlossen.
Oben