Zarafa - Collaboration - Platform 7.1.0 Archiver - Manual de DE
Zarafa - Collaboration - Platform 7.1.0 Archiver - Manual de DE
1 (build 48315)
Zarafa Archiver
Handbuch des Zarafa Archiver
Zarafa Archiver
The text of and illustrations in this document are licensed by Zarafa BV under a Creative Commons
Attribution–Share Alike 3.0 Unported license ("CC-BY-SA"). An explanation of CC-BY-SA is available
4
at the creativecommons.org website . In accordance with CC-BY-SA, if you distribute this document or
an adaptation of it, you must provide the URL for the original version.
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
MySQL® is a registered trademark of MySQL AB in the United States, the European Union and other
countries.
Red Hat®, Red Hat Enterprise Linux®, Fedora® and RHCE® are trademarks of Red Hat, Inc.,
registered in the United States and other countries.
Microsoft® Windows®, Microsoft Office Outlook®, Microsoft Exchange® and Microsoft Active
Directory® are registered trademarks of Microsoft Corporation in the United States and/or other
countries.
The Trademark BlackBerry® is owned by BlackBerry and is registered in the United States and may
be pending or registered in other countries. Zarafa BV is not endorsed, sponsored, affiliated with or
otherwise authorized by BlackBerry.
Disclaimer: Although all documentation is written and compiled with care, Zarafa is not responsible for
direct actions or consequences derived from using this documentation, including unclear instructions
or missing information not contained in these documents.
The Zarafa Collaboration Platform (ZCP) combines the usability of Outlook with the stability and
flexibility of a Linux server. It features a rich web-interface, the Zarafa WebAccess, and provides
brilliant integration options with all sorts of clients including all most popular mobile platforms.
1
Die meisten ZCP Komponenten sind Open Source, lizensiert unter der AGPLv3 , und kann als ZCP's
2
Community Edition frei heruntergeladen werden
4
http://creativecommons.org/licenses/by-sa/3.0/
1
http://www.gnu.org/licenses/agpl-3.0.html
2
http://www.zarafa.com/content/community
• der Zarafa Windows Client für die Outlookintegration
• der Zarafa BES Connector für die Verbindung zu einem Blackberry Enterprise Server,
• das Zarafa ADS Plugin für die Active Directory Integration, und
Diese Komponenten, zusammen mit erweiterten Funktionen für große Installationen und für Hoster,
3
sind nur in Kombination mit einem Supportvertrag als Teil der ZCP's Commercial Editions erhältlich.
Dieses Dokument, das Zarafa Archiver Handbuch, beschreibt wie Sie den Zarafa Archiver auf Ihrem
Linux Server installieren, updaten, konfigurieren und unterhalten können.
3
http://www.zarafa.com/content/editions
1. Introduction 1
2. Conventions 3
3. Installation 5
3.1. Requirements ............................................................................................................... 5
3.1.1. Software Requirements ...................................................................................... 5
3.1.2. Required Packages ........................................................................................... 5
3.2. Installation ................................................................................................................... 6
3.2.1. Default installation location ................................................................................. 6
3.2.2. Activate Archiver subscription ............................................................................. 6
3.3. Basic Configuration ...................................................................................................... 7
3.3.1. Connection Parameters ..................................................................................... 7
3.3.2. MySQL Settings ................................................................................................ 7
4. Archive configuration 9
4.1. Basic Archiver configuration .......................................................................................... 9
4.2. Archive-only setup ...................................................................................................... 10
4.3. Advanced setups ........................................................................................................ 11
5. Archive Management 13
5.1. Automatic archive management .................................................................................. 13
5.1.1. Using OpenLDAP ............................................................................................ 13
5.1.2. Using Active Directory ...................................................................................... 14
5.1.3. Listing attached archives .................................................................................. 14
5.1.4. Detaching an archive ....................................................................................... 14
5.1.5. Listing users that have an archive attached ....................................................... 15
5.1.6. See details of an archive store ......................................................................... 15
5.1.7. Unhooking an archive store .............................................................................. 16
5.1.8. Hooking an archive store ................................................................................. 16
5.1.9. Removing an archive store ............................................................................... 16
6. Running the Archiver 19
6.1. Performing archiving task ............................................................................................ 19
6.1.1. From the command line ................................................................................... 19
6.2. Cleanup ..................................................................................................................... 19
6.2.1. From the command-line ................................................................................... 20
7. Client features 21
8. Zarafa Archiver Extras 23
8.1. Installation .................................................................................................................. 23
8.2. The tools ................................................................................................................... 23
8.2.1. Zarafa Archiver ACL Sync ................................................................................ 23
8.2.2. Zarafa Archiver ACL Set .................................................................................. 23
8.2.3. Zarafa Archiver Restore ................................................................................... 24
9. Archiver command line 27
10. Archiver configuration settings 29
v
vi
Introduction
Zarafa Archiver provides a way to minimise mailbox sizes by moving old messages to slower and
presumably cheaper storage. Archive storage consists of one or more additional Zarafa servers
dedicated to store archived messages.
Zarafa archive servers have exactly the same storage architecture as a normal Zarafa server. All
MAPI properties are stored in a MySQL database and all attachments are stored compressed on
disk. Archive mailboxes can be enabled per user and users automatically get access to their archive
mailbox from email clients.
Once a message is archived, it may be deleted from the original store. Zarafa Archiver can create a
stub to the archived message, allowing a user to view the archived message and open it as if it were a
normal message.
Zarafa Archiver uses Zarafa’s multi-server technology to seamlessly access archive stores.
Zarafa Archiver is an additional product and is not a standard component of Zarafa Collaboration
Platform. Subscriptions of Zarafa Archiver can only be used with Zarafa Professional or Enterprise
edition; both editions provide 20 archive users for free.
1
2
Conventions
Please read this chapter before installing and deploying Zarafa Archiver, in order to understand its
terminology.
• Primary Server
The primary server is the server that contains the stores on which users normally work. Although the
term primary server suggests that there’s only one primary server, multiple primary servers may
exist in a multi-server environment. In this document no distinction is made between a single-server
or multi-server environment unless explicitly stated.
• Archive Server
An archive server is the server that contains the archives for stores that reside on the primary
server. An archive server is a Zarafa server with the sole purpose of providing storage for one
or more archive stores. In a multi-server environment this server will be just another node in the
cluster.
Unlike primary servers, there’s no need for a multi-server environment to have a multi-archive server
setup.
• Primary Store
The primary store is the store that resides on a primary server and on which a user normally works.
Also known as main store
• Archive Store
The archive store is the store that resides on an archive server and which is used for storing
archived messages from the primary store.
• Zarafa-archiver
Zarafa-archiver is the application that performs the actual archiving job. Zarafa-archiver is typically
started from a daily or weekly cronjob. It can be installed on any Zarafa server that connects to the
primary or archive server using SSL authentication. Running zarafa-archiver can be done on any
node in a multi-server zarafa environment.
• Stubbed Message
A stubbed message is a message in the primary store that acts as a placeholder for the archived
message. These messages occupy virtually no space in the primary store, but show a user that a
message was once there. It also acts as an entry point to the archived copy of that message.
• Single Instances
Zarafa Collaboration Platform uses single instance storage whenever possible in order to minimise
storage requirements when data is stored more than once. Zarafa Archiver makes use of this
technology by remembering which instances it copied to an archive server and referencing that
instance whenever possible.
• Attached/detached stores
An archive store is attached, when a data link is made with a primary store. Making such a link is
called attaching a store, removing such a link detaching it. Detached stores are still available for
reading.
3
Kapitel 2. Conventions
• Hooked/unhooked stores
A hooked store is available for use as a primary or archive store. Unhooked stores are not available.
From the perspective of a mail client or the Archiver they don’t exist. Such unhooked stores are
also know as orphaned stores. Unhooked stores cannot be read from or written to. The process
of making a store available for a user is called hooking, the reverse unhooking. An unhooked store
may be removed.
4
Installation
3.1. Requirements
To deploy the Zarafa Archiver at least two servers are required: one primary Zarafa server and one
Zarafa Archive server. Multi-server technology is used to connect archives to users automatically.
Anmerkung
A multi-server setup requires a central LDAP or Active Directory. It’s not possible to use multi-
server with the DB or unix user plugin.
• zarafa-client
• zarafa-multiserver
• zarafa-search or zarafa-indexer
• zarafa-server
• zarafa-spooler
• zarafa-utils
• python-zcp-license
• python-mapi
• zarafa-client
• zarafa-common
• zarafa-libarchiver
• zarafa-libs
5
Kapitel 3. Installation
• zarafa-multiserver
• zarafa-server
• zarafa-utils
3.2. Installation
The Zarafa Archiver software can be found on the Zarafa Portal as an additional download. The Zarafa
Archiver download will include the following two packages:
Replace <version> with the correct version and <platform> with the required target platform
(i386, i586, x86_64).
Replace <version> with the correct version and <platform> with the required target platform
(i386, x86_64).
Additional Archiver CALs can be added in the /etc/zarafa/license directory, like normal ZCP
CALs.
6
Basic Configuration
Wichtig
The Archiver subscription must be placed on all server nodes, otherwise de-stubbing will not
work.
An alternative configuration file may be specified by using command line option --config. When
such a configuration file is specified and cannot be found, Archiver will emit an error message like:
"Unable to open configuration file /tmp/test.cfg" and close.
For instance:
server_socket = file:///var/run/zarafa
sslkey_file = /etc/zarafa/ssl/client.pem
sslkey_pass = secret
For more information about creating and configuring SSL certificates, see http://doc.zarafa.com/7.1/
Administrator_Manual/en-US/html-single/index.html#_creating_ssl_certificates.
mysql_host = localhost
mysql_port = 3306
mysql_user = zarafa
mysql_password = password
mysql_socket =
mysql_database = archiver
This database should not be the same one that zarafa-server is using and needs to be accessible
over the network from each server running the zarafa-archiver command.
7
8
Archive configuration
zarafa-archiver is configured in a configuration file, that can be specified on the command
line using command line option --config or -c. When no configuration file is specified from the
command line, Archiver tries to find a default configuration file named archiver.cfg located in /
etc/zarafa/. Please note that when no configuration file can be found, information required to
proceed is missing. In such a case Archiver will emit an error message and exit.
Depending on user requirements, Archiver can be configured in many different ways. Five different
stages in Archiving can be distinguished, of which any subset can be used. This chapter describes a
basic setup. Later more advanced configurations using more complex combinations of stages will be
presented.
For a stubbing only setup settings like the following must be configured in /etc/zarafa/
archiver.cfg:
archive_enable = yes
archive_after = 90
stub_enable = yes
stub_after = 90
stub_unread = no
delete_enable = no
delete_after = 0
purge_enable = no
9
Kapitel 4. Archive configuration
purge_after = 0
cleanup_action = store
cleanup_follow_purge_after = no
enable_auto_attach = yes
auto_attach_writable = no
Setting archive_enable = yes enables archive operation, i.e. copying emails from the primary
node to the archive node. Setting archive_after = 90 indicates that messages older than 90 days
are to be archived.
Setting stub_enable = yes enables stubbing. Body and attachments messages in the primary
store are removed and a reference to the archive store is created. Setting stub_after = 90 means
that messages older than 90 days will be stubbed.
Unread emails are not stubbed by default. Setting stub_unread = yes means that even unread
messages are stubbed.
Settings delete_enable and purge_enable must be set to no, since a user will not access his
archive mailbox directly in this mode.
Setting cleanup_action = store means that, in a cleanup run, archived messages of which
stubs have been deleted from the archive mailbox will be moved to an archive folder named Zarafa
Archive\Deleted. See chapter Abschnitt 6.2, „Cleanup“ for an explanation of this cleanup process.
Setting enable_auto_attach = yes means that a user automatically gets an archive mailbox
when the archive server option is enabled in Active Directory or OpenLDAP. The user will always get
read-only permissions, so users can delete messages from the primary mailbox only. This is required
to make sure the stubs in the primary mailbox will always point to a existing message.
archive_enable = yes
archive_after = 365
stub_enable = no
delete_enable = yes
delete_after = 365
purge_enable = yes
purge_after = 3650
enable_auto_attach = yes
auto_attach_writable = yes
To move items to the archive mailbox setting delete_enable is set to yes and the number of days
is configured in delete_after. In this example, items older than 1 year are deleted from the primary
mailbox and after that can only be accessed from the archive mailbox.
Setting stub_enable = no makes sure there will be no stubs. Since there are no stubs, there is no
sense in doing cleanup runs, so settings for cleanup need not be given.
10
Advanced setups
To clean up the archive mailbox, items will be completely removed after 10 years.
As stubbing is not used in this mode, the archives can be set writable so users can clean up their
archive mailbox themselves.
archive_enable = yes
archive_after = 2
stub_enable = yes
stub_after = 60
stub_unread = no
delete_enable = yes
delete_after = 365
stub_unread = yes
purge_enable = yes
purge_after = 3650
cleanup_action = store
cleanup_follow_purge_after = yes
enable_auto_attach = yes
auto_attach_writable = no
In this example mode emails will be archived after two days as an archived copy, while the original
remains in main store. After 60 days the copy from main store will be removed and replaced by a stub
to the archived copy. After a year, the stub will be removed, while the copy in the archive remains.
To prevent the archive from growing forever, items will be removed after 10 years.
11
12
Archive Management
5.1. Automatic archive management
Zarafa-archiver can attach archive stores automatically, based on user attributes stored in LDAP
or in Active Directory. When using this way of attaching stores, zarafa-archiver will create archive
stores on the archive server and attach the user stores to these archive stores based on information
found in LDAP or in Active Directory. When using this method of attaching and detaching, Outlook and
Webaccess will load archive stores automatically.
enable_auto_attach = yes
zarafa-archiver --auto-attach
dn: uid=user,ou=users,dc=example,dc=com
objectClass: inetOrgPerson
objectClass: organizationalPerson
objectClass: person
objectClass: top
objectClass: zarafa-user
objectClass: posixAccount
cn: User
gidNumber: 0
homeDirectory: /bin/false
sn: User
uid: user
uidNumber: 1000
givenName: User
mail: [email protected]
userPassword:: e1NTSEF9VzlXV0U3N1NEcW54UkJ3SFJkQUYvVkhrUj
zarafaAccount: 1
zarafaUserServer: userServer
zarafaUserArchiveServers: archiveServer
Anmerkung
The archive store won’t be created or attached until the next run of zarafa-archiver -A with
enable_auto_attach = yes or zarafa-archiver --auto-attach.
13
Kapitel 5. Archive Management
Next, select the Archiver feature and click Properties. This will pop up the dialog in which the
server names of the servers on which an archive store should exist for the selected user or users.
When a user has an automatic archive and the archiver feature in Active Directory is removed, the
automatic archive will be automatically detached the first time an archive run is performed with auto-
attach enabled. See also chapter 5.14.
Anmerkung
Archive stores won’t be created or attached until the next run of zarafa-archiver -A with
enable_auto_attach = yes in its configuration file or by running zarafa-archiver --
auto-attach.
This will output a list of attached archives. Each line contains the name of the archive store, the name
of the folder that acts as root for the archive and the access rights the owner has for the archive store.
The store name will equal the name that was passed when the archive was attached. The archive
folder name will be one of three things: 1. it will be the full name of the user if no name was specified
when the archive was attached; 2. if a name was specified, the archive folder will be that name; 3. if
the archive was attached in a one-to-one configuration, it will be Root Folder.
The access rights will be Read Only when the archive was attached without write permissions. If it was
attached with write access it will be Read/write. If the permissions were manually changed after the
archive was attached, the rights field will display the configured role for the rights or all the rights if no
matching role exists.
Anmerkung
When detaching an archive that already contained archived and stubbed messages, the stubbed
messages can still be opened.
14
Listing users that have an archive attached
zarafa-archiver --list-archiveusers
Wichtig
The node on which the archive is stored must be specified in order to find the archive.
These methods only apply to genuine archive stores. Details of regular stores that are manually
attached as archives can be obtained by obtaining the details of the user owning that store:
15
Kapitel 5. Archive Management
-----------------------------------------------------------------------------------------------
F1A6BFCD67604B0FB733F746F1D00A91 user1 <unknown> 0
archive
> zarafa-admin --hook-store F1A6BFCD67604B0FB733F746F1D00A91 -u user1 --type archive --node
cnode-2
Store hooked.
-----------------------------------------------------------------------------------------------
16
Removing an archive store
17
18
Running the Archiver
6.1. Performing archiving task
Archiving can be done for all users, all users on one primary server or on a per-user basis.
zarafa-archiver -A
Passing option --local-only to zarafa-archiver tells it to archive only the primary stores
that live on the server to which zarafa-archiver is connected. Unless configured otherwise in the
configuration file, this is the server on which zarafa-archiver is run:
zarafa-archiver -A --local-only
It’s recommended to perform an Archiver run every night. This can be done by adding the following
line to /etc/crontab :
6.2. Cleanup
To keep the archive synchonised with primary stores after items are deleted from the primary store,
start the archiver in cleanup mode. This is a separate operation from archiving. Since cleanup may be
a long process, it is recommended to run it less often than archive operations.
When zarafa-archiver performs a cleanup run in which it encounters messages that exist in
an archive and for which in main store a stub used to present which has now been deleted, it will
remove the message from the archive. This is useful to avoid the situation that archived messages
exist which have properties set that indicate that they are stubbed, while no corresponding stub exists
in main(store.)
1. cleanup_action is set to delete. In this case messages for which no stubs exist will be removed
from the archive.
2. cleanup_action is set to store. In this case messages for which no stubs exist will be moved to a
folder named Zarafa Archive\Deleted.
19
Kapitel 6. Running the Archiver
Anmerkung
Archiver can remove soft deleted items from the main store (or stores) for which a cleanup
run is performed. This avoids the situation in which soft deleted stubs may be restored
for which the archived versions no longer exist. To enable this feature, configuration item
purge_soft_deleted must be set to yes. See chapter 10.1. Softdelete restore in the The
Administrator Manual for more information on soft deleted items.
zarafa-archiver -C
zarafa-archiver -C --local-only
It’s recommended to perform the cleanup run once a week. This can be done by adding the following
line to /etc/crontab.
20
Client features
To allow a user to browse and search in his archive or in the archives of shared stores, the archives
are automatically added in Outlook and in WebAccess.
Wichtig
Please note that it’s currently (7.1.9 with zarafa-search 2.0) not possible to search in the body of
stubbed messages from the users primary store. Instead the search has to be performed from
within the archive store.
21
22
Zarafa Archiver Extras
The Zarafa Archiver Extras package contains additional tools to enhance basic Zarafa Archiver
functionality.
8.1. Installation
Zarafa Archiver Extras can be found in the zarafa-archiver-extra package.
8.2.1.1. Description
za-aclsync synchronises archive ACL settings with those of the primary store.
When a user has set permissions for other users or groups on his or her store or folders, those other
users will need at least read-permissions on this persons archive as well, so that they can read
stubbed messages or access the archive directly. These permissions cannot be set by the owner of
the archive when the archive was attached without write privileges. Even when another user has write
permissions, it’s a nuisance to set all the permissions twice, or possibly more often when multiple
archives are attached.
Note that no user will ever get more rights on a store or folder than the owner of the archive. When
the archive was attached without write permissions, no user will get write permissions on the archive
stores. For every archived folder in an archived store za-aclsync will first determine the rights of the
owner of the archive. After that it will get all the entries from the ACL of the current folder except those
of the owner. Each right will be masked with the rights of the owner before being added to the ACL of
the archive folder.
8.2.1.2. Usage
options:
-h serverpath : Host to connect to.
-s sslkey_file : SSL key file for authentication.
-p sslkey_pass : Password for the SSL key file.
users is a space separated list of users for which to synchronize the ACL settings. If no user is
specified all users will be processed.
8.2.2.1. Description
za-aclset sets or updates permissions on an archive store for the owner of that store.
When an archive is attached to a store, the owner of the store gets read-only or read/write permissions
on the archive, depending on the configuration file or command line options used at the time of
23
Kapitel 8. Zarafa Archiver Extras
attaching. Also when an archive is attached to a store of a non-active user it’s impossible to set
permissions for that non-active user.
In the first case it may be desirable to change the permissions at a later time because of company
policy changes or because the original setting was wrong. In the second case, when the user
is converted to an active user, permissions need to be reset because the owner won’t have any
permissions on his archive.
8.2.2.2. Usage
options:
-h | --host Host to connect to. Default: file:///var/run/zarafa
Three formats are allowed for this option:
users is a space separated list of users for which to synchronize the ACL settings. If no user is
specified all users will be processed.
Za-aclset should be executed on a regular basis from a cronjob to synchronise the rights between the
primary store and the archive store .
8.2.3.1. Description
za-restore is a utility that restores archived messages from an archive. Use za-restore to destub
all stubbed messages and restore all messages that were deleted after archiving. Do not drag and
drop messages back from an archive to a main store in Outlook or Webaccess. Using za-restore
ensures that restored messages are sanitised, so that they can be re-archived properly later.
8.2.3.2. Usage
24
Zarafa Archiver Restore
8.2.3.3. Example
The following example will completely restore the store of john_doe and detaches and unhooks all
archive stores while logging to /tmp/john_doe_restore.log
25
26
Archiver command line
The following table describes command line arguments and options that apply to Zarafa Archiver.
Please note that if no command line arguments are supplied the same help information is displayed as
that from --help.
27
Kapitel 9. Archiver command line
28
Archiver configuration settings
The following table describes configuration settings that apply to Zarafa Archiver. When settings
marked yes in column Required aren’t specified Archiver prints an error message and quits execution.
29
Kapitel 10. Archiver configuration settings
30
Setting Type Default Required
Meaning and usage
mysql_user string root No Name of the user with which to
connect to MySQL.
mysql_password string No The password for mysql_user
(leave empty for no password).
mysql_socket string No Override the default MySQL
socket to access mysql locally.
Works only if the mysql_host
value is empty or localhost.
mysql_database string zarafa- No Database to connect to.
archiver
31
32