Comparaison des versions

Légende

  • Ces lignes ont été ajoutées. Ce mot a été ajouté.
  • Ces lignes ont été supprimées. Ce mot a été supprimé.
  • La mise en forme a été modifiée.

...

Sv translation
languageen
Remarque

This page is no longer being updated. From BlueMind 4.8, please refer to the new BlueMind documentation

Introduction

From BlueMind 4.4, the trash folder has a "double bottom": there is a delay on the server side during which deleted emails are kept. During that time, users are able to recover messages in Outlook (MAPI-based) or the administrator can recover them in command line.

Volet

On this page:

Sommaire

Related:

Client CLI pour l'administration

Procedure

When a user deletes an email, the Cyrus email server doesn't delete it immediately – the message is marked as deleted and is no longer available but the file is kept.

IMAP clients can run the "expunge" command to delete messages immediately (e.g. through "Empty trash folder"), but Cyrus can also add a delay between the user's expunge request and the actual final deletion of the message on the server.

This means that during that time, the new bm-cli command can be used to retrieve the messages:

Bloc de code
bm-cli mail unexpunge
Astuce
titleWhy not use Cyrux's unexpunge command?

The bm-cli command is required because the Cyrus "unexpunge" command that seemingly does the same thing does not return enough information for the replication protocol and breaks the link between Cyrus and BlueMind.

Restoring a user's messages

The user John Doe (ID: jdoe@bluemind.loc) wants to recover the emails deleted in the past two days. You can use the following command:

Bloc de code
#> bm-cli mail unexpunge --days 2 jdoe@bluemind.loc
Folder has 1 deleted message(s)
Recovering messages less than 2 day(s)) old
+-----+---------+---------+------------------------------+
| id  | subject | preview | last-modification            |
+-----+---------+---------+------------------------------+
| 406 | Contact |   Boss  | Mon Jan 18 11:36:54 GMT 2021 |
+-----+---------+---------+------------------------------+
Checked 1 deleted item(s), will restore 1 item(s)

Restoring messages from a shared mailbox

To restore messages from a shared mailbox, you must log in as a user with writing privileges on that mailbox. Then add the authn parameter to the command.

Example: you want to restore the messages deleted since yesterday in the Contact mailbox (contact@bluemind.loc) which John Doe has management privileges on:

Bloc de code
#> bm-cli mail unexpunge --days 1 --authn jdoe@bluemind.loc contact@bluemind.loc

Folder has 1 deleted message(s)
Recovering messages less than 1 day(s)) old
+-----+---------+---------+------------------------------+
| id  | subject | preview | last-modification            |
+-----+---------+---------+------------------------------+
| 203 |  Coucou |    XMen | Tue Jan 19 15:22:34 GMT 2021 |
+-----+---------+---------+------------------------------+
Checked 1 deleted item(s), will restore 1 item(s)

More on recovering messages

Configuration

The maximum delay between an expunge command and an unexpunge recovery is configured in Cyrus /etc/cyrus.conf under the delprune command, -X parameter.

The default delay is 7 days.

Use

You can use several parameters to make a more specific recovery:

  • days: the number of days to restore
  • dry: tests the command without actually carrying out the recovery
  • folder: specifies a folder
  • id: the id of a specific message

For more details on available options and how to use them, use the bm-cli command line help:

Bloc de code
# bm-cli mail help unexpunge
Sv translation
languagede
Remarque

Diese Seite ist nicht mehr aktuell. Ab der Version BlueMind 4.8 finden Sie alle Infos in der neuen Dokumentation

Präsentation

Ab BlueMind 4.4 wird ein Papierkorb mit einem sogenannten „doppelten Boden“ verwendet: Er bietet eine serverseitige Verzögerung, während der gelöschte E-Mails gespeichert werden. Während dieses Zeitraums kann eine Wiederherstellung durch den Benutzer direkt von seinem Oulook-Client (verbunden in mapi) oder durch den Administrator per Kommandozeile vom Server erfolgen.

Volet

Auf dieser Seite:

Sommaire

Verwandt:

Client CLI pour l'administration

Verfahren

Wenn eine E-Mail vom Benutzer gelöscht wird, löscht der cyrus Mailserver die Nachricht nicht sofort: Die Nachricht wird als gelöscht markiert und ist nicht mehr verfügbar, aber die Datei bleibt erhalten.

IMAP-Clients können den „expunge“-Befehl ausführen, um das sofortige Löschen von Nachrichten zu veranlassen (z.B. über die Option „Papierkorb leeren“). Aber auch hier kann cyrus eine Verzögerung zwischen dem Zeitpunkt, an dem der Benutzer das "expunge" anfordert, und dem tatsächlichen endgültigen Löschen der Nachricht auf dem Server hinzufügen.

Der neue bm-cli-Befehl ermöglicht während dieser Verzögerung das Abrufen der Nachrichten:

Bloc de code
bm-cli mail unexpunge
Astuce
titleWarum nicht den Befehl cyrux unexpunge verwenden?

Der bm-cli-Befehl ist notwendig, weil der cyrus-Befehl „unexpunge“, der scheinbar dasselbe tut, nicht genügend Informationen an das Replikationsprotokoll zurückgibt und die Verbindung zwischen Cyrus und BlueMind unterbricht.

Wiederherstellen der Nachrichten eines Benutzers

Der Benutzer John Doe (Benutzername jdoe@bluemind.loc) fordert die Wiederherstellung von E-Mails an, die in den letzten 2 Tagen gelöscht wurden. Dafür verwenden wir den folgenden Befehl:

Bloc de code
#> bm-cli mail unexpunge --days 2 jdoe@bluemind.loc
Folder has 1 deleted message(s)
Recovering messages less than 2 day(s)) old
+-----+---------+---------+------------------------------+
| id  | subject | preview | last-modification            |
+-----+---------+---------+------------------------------+
| 406 | Contact |   Boss  | Mon Jan 18 11:36:54 GMT 2021 |
+-----+---------+---------+------------------------------+
Checked 1 deleted item(s), will restore 1 item(s)

Wiederherstellen der Nachtrichten eines freigegebenen Postfachs

Um Nachrichten aus einem freigegebenen Postfach wiederherzustellen, muss man sich als Benutzer mit Leserechten für diese Nachrichten anmelden. Der Parameter authn muss dem Befehl hinzugefügt werden.

Beispiel: Wir möchten die seit gestern gelöschten Nachrichten im Postfach „Contact“ (contact@bluemind.loc) wiederherstellen, für die John Doe Verwaltungsrechte hat

Bloc de code
#> bm-cli mail unexpunge --days 1 --authn jdoe@bluemind.loc contact@bluemind.loc

Folder has 1 deleted message(s)
Recovering messages less than 1 day(s)) old
+-----+---------+---------+------------------------------+
| id  | subject | preview | last-modification            |
+-----+---------+---------+------------------------------+
| 203 |  Coucou |    XMen | Tue Jan 19 15:22:34 GMT 2021 |
+-----+---------+---------+------------------------------+
Checked 1 deleted item(s), will restore 1 item(s)

Wenn Sie mehr erfahren möchten

Konfiguration

Die maximale Verzögerung zwischen einem expunge-Befehl und einer unexpunge-Wiederherstellung wird in Cyrus /etc/cyrus.conf mit dem Befehl delprune, Parameter -X, konfiguriert.

Die Standardverzögerung beträgt 7 Tage.

Verwendung

Zur Verfeinerung der Wiederherstellung können verschiedene Parameter verwendet werden:

  • Days: die Anzahl der wiederherzustellenden Tage
  • Dry: den Befehl testen, ohne die Wiederherstellung tatsächlich auszuführen
  • Folder: einen bestimmten Ordner angeben
  • id: die ID einer bestimmten Nachricht

Weitere Einzelheiten zu den verfügbaren Optionen und ihrer Verwendung finden Sie in der Online-Hilfe für den Befehl:

Bloc de code
# bm-cli mail help unexpunge