Escolar Documentos
Profissional Documentos
Cultura Documentos
4 Installation Guide
The Kolab Groupware Solution
Installation Guide
Draft
Kolab Groupware 2.4 Installation Guide The Kolab Groupware Solution Edition 1
Author Jeroen van Meeuwen vanmeeuwen@kolabsys.com
Copyright 2011 Kolab Systems AG This material may only be distributed subject to the terms and conditions set forth in the GNU Free Documentation License (GFDL), V1.2 or later (the latest version is presently available at http://www.gnu.org/licenses/fdl.txt).
A short overview and summary of the book's subject and purpose, traditionally no more than one paragraph long. Note: the abstract will appear in the front matter of your book and will also be placed in the description field of the book's RPM spec file.
Draft
Draft
Preface v 1. Document Conventions ................................................................................................... v 1.1. Typographic Conventions ...................................................................................... v 1.2. Pull-quote Conventions ........................................................................................ vi 1.3. Notes and Warnings ........................................................................................... vii 2. Feedback ...................................................................................................................... vii 2.1. Reporting Bugs in Kolab ..................................................................................... vii 2.2. Mailing Lists ....................................................................................................... viii 2.3. IRC ................................................................................................................... viii 3. About Kolab Groupware ................................................................................................ viii 3.1. Free Software Components ................................................................................ viii 3.2. Kolab Groupware Flavors ................................................................................... viii 3.3. Supported Platforms and System Requirements .................................................... ix 3.4. Kolab Product Series ........................................................................................... ix I. Kolab Groupware Server 1. Preparing the System 1.1. Prerequisites ........................................................................................................ 1.2. Recommendations ................................................................................................ 1.3. Enterprise Linux ................................................................................................... 2. Kolab Server 1 3 3 3 3 5
3. Installation 7 3.1. Kolab Server Installation ....................................................................................... 7 3.2. Repository Configuration ....................................................................................... 7 3.2.1. Installation with APT Packages .................................................................. 7 3.2.2. Installation with RPM Packages .................................................................. 9 3.3. Full default installation on a single server ............................................................. 14 3.4. Packagelist ........................................................................................................ 14 4. Configuration 4.1. Pykolab setup utility ............................................................................................ 4.2. Configuration through Puppet .............................................................................. 4.3. Manual Configuration .......................................................................................... 4.3.1. LDAP Configuration ................................................................................. 4.3.2. Kolab deamon Configuration .................................................................... 4.3.3. Cyrus-IMAP Configuration (default) ........................................................... 4.3.4. Dovecot-IMAP Configuration (Alternative) .................................................. 4.3.5. MTA Configuration ................................................................................... 4.3.6. Kolab-Webadmin Configuration ................................................................. 4.3.7. Webclient Configuration ........................................................................... 4.3.8. Webclient Database Configuration ............................................................ 5. Bootstrapping the Kolab Installation 5.1. Preparing the System for Bootstrapping ............................................................... 5.2. New Kolab Environment ..................................................................................... 5.3. Manual Bootstrap process .................................................................................. 17 17 17 17 17 18 18 19 20 21 22 22 23 23 24 24
6. Server Appendix 27 6.1. Certificate Authority (CA)-Certificates ................................................................... 27 II. Kolab Groupware Webclients 29
Installation Guide
Draft
7.2. Preparing the Database ...................................................................................... 31 7.3. Installation .......................................................................................................... 31 7.4. Configuration ...................................................................................................... 32 8. Horde 33 8.1. Installing the Database ....................................................................................... 33 8.2. Preparing the Database ...................................................................................... 33 9. Webclient-Appendix 35 9.1. Installation of the MySQL-Database ..................................................................... 35 III. Kolab Groupware Desktop-Clients 10. Kontact 10.1. Installation ........................................................................................................ 10.2. Configuration .................................................................................................... 10.2.1. Configuration through the KolabWizard ................................................... 10.2.2. Manual Configuration of Kontact ............................................................. 11. Thunderbird 12. Outlook IV. Cyrus IMAP 37 39 39 39 39 39 41 43 45
13. Installation of Cyrus IMAP 47 13.1. Installation ........................................................................................................ 47 14. Configuration of Cyrus IMAP 15. Configuring IMAP 16. Securing Cyrus IMAP Communications 17. IMAP Partitions 18. IMAP Option Reference 19. System Configuration Defaults 49 51 53 55 57 59
20. Creating a Cyrus Murder Setup 61 20.1. Setting up the master update server .................................................................. 61 20.1.1. Choosing the mupdate mode .................................................................. 61 21. Creating an IMAP Backend Server 63 21.1. Hooking in a new backend server into a murder setup ........................................ 63 22. Creating an IMAP Frontend Server 65 22.1. Hooking in a new frontend server into a murder setup ......................................... 65 A. Revision History Index 67 69
iv
Draft
Draft
Preface
1. Document Conventions
This manual uses several conventions to highlight certain words and phrases and draw attention to specific pieces of information. In PDF and paper editions, this manual uses typefaces drawn from the Liberation Fonts set. The Liberation Fonts set is also used in HTML editions if the set is installed on your system. If not, alternative but equivalent typefaces are displayed. Note: Red Hat Enterprise Linux 5 and later includes the Liberation Fonts set by default.
1
https://fedorahosted.org/liberation-fonts/
Preface Close to switch the primary mouse button from the left to the right (making the mouse suitable for use in the left hand). To insert a special character into a gedit file, choose Applications Accessories Character Map from the main menu bar. Next, choose Search Find from the Character Map menu bar, type the name of the character in the Search field and click Next. The character you sought will be highlighted in the Character Table. Double-click this highlighted character to place it in the Text to copy field and then click the Copy button. Now switch back to your document and choose Edit Paste from the gedit menu bar.
Draft
The above text includes application names; system-wide menu names and items; application-specific menu names; and buttons and text found within a GUI interface, all presented in proportional bold and all distinguishable by context. Mono-spaced Bold Italic or Proportional Bold Italic Whether mono-spaced bold or proportional bold, the addition of italics indicates replaceable or variable text. Italics denotes text you do not input literally or displayed text that changes depending on circumstance. For example: To connect to a remote machine using ssh, type ssh username@domain.name at a shell prompt. If the remote machine is example.com and your username on that machine is john, type ssh john@example.com. The mount -o remount file-system command remounts the named file system. For example, to remount the /home file system, the command is mount -o remount /home. To see the version of a currently installed package, use the rpm -q package command. It will return a result as follows: package-version-release. Note the words in bold italics above username, domain.name, file-system, package, version and release. Each word is a placeholder, either for text you enter when issuing a command or for text displayed by the system. Aside from standard usage for presenting the title of a work, italics denotes the first use of a new and important term. For example: Publican is a DocBook publishing system.
Source-code listings are also set in mono-spaced roman but add syntax highlighting as follows:
package org.jboss.book.jca.ex1; import javax.naming.InitialContext; public class ExClient {
vi
Draft
public static void main(String args[]) throws Exception { InitialContext iniCtx = new InitialContext(); Object ref = iniCtx.lookup("EchoBean"); EchoHome home = (EchoHome) ref; Echo echo = home.create(); System.out.println("Created Echo"); System.out.println("Echo.echo('Hello') = " + echo.echo("Hello")); } }
Note
Notes are tips, shortcuts or alternative approaches to the task at hand. Ignoring a note should have no negative consequences, but you might miss out on a trick that makes your life easier.
Important
Important boxes detail things that are easily missed: configuration changes that only apply to the current session, or services that need restarting before an update will apply. Ignoring a box labeled 'Important' will not cause data loss but may cause irritation and frustration.
Warning
Warnings should not be ignored. Ignoring warnings will most likely cause data loss.
2. Feedback
We value feedback on our software as well as our documentation. Please find ways to contact us in this section.
Bug reports can be logged in our Bugzilla issue tracker . Please bear in mind registration is required. When reporting a bug, please prepare to provide the following information;
https://bugzilla.kolabsys.com
vii
Preface Your platform, and if applicable, your distribution and the distribution version. The version(s) of the Kolab component(s) you are using. If a custom version is used, any options that may have specified during the build process.
Draft
provide some text on logging a new ticket in our bugzilla, information to provide, etc. Possibly mention the life cycle of a product version series.
2.2.1. Archives
The archives of both the user support and development discussion mailing list are available through web archives.
2.3. IRC
Refer to irc://irc.freenode.net/kolab here.
3 4
mailto:kolab-users-subscribe@kolab.org mailto:kolab-devel-subscribe@kolab.org
viii
Hosted Kolab is the flavor targeted specifically at hosting providers (ISP, ASP, Cloud) offering Kolab Groupware environments to multiple customers, possibly through multiple resellers. Furthermore, the Kolab software are divided in a community version, and an enterprise version. The community version naturally moves forward a little faster and is subject to change a lot more so then the enterprise version. The community version of a product series will only become available as an enterprise version after thorough Quality Assurance and Certification of partner products.
8 9
Should your Linux distribution not be listed here, please refer to Section 2, Feedback for ways of contacting the Kolab Development team. Obviously, the list is not complete
By reasonably recent versions of Linux, we intend to indicate the Kolab project can manage to keep up with the latest distribution release ear-marked stable. 6 http://centos.org 7 http://debian.org 8 http://fedoraproject.org 9 http://redhat.com 10 http://wiki.kolab.org/KEP:5
ix
Preface
Draft
Draft
Draft
Draft
Chapter 1.
Draft
1.1. Prerequisites
The installation of Kolab requires one of the following operating system versions: Red Hat Enterprise Linux 5, see also Section 1.3, Enterprise Linux. FIXME: Other supported Operating System versions
1.2. Recommendations
We recommend a x86_64 capable version of the Operating System
Draft
Chapter 2.
Draft
Kolab Server
The Kolab server is built out of the best available Free and Open Source software components, most if not all of which are available through the Linux distribution of your preference. However, such Linux distribution may not be as up-to-date as one might wish for the Kolab Groupware to provide the latest and greatest functionality, or may simply have a different update policy from what is typically acceptable for a Groupware environment. The Kolab server consist of the following 6 components, which can be distributed among several systems. Each of those components can be installed using the provided meta package. Kolab-IMAP The IMAP server component including a daemon which synchronizes user accounts from LDAP with IMAP mailboxes. default meta-package: kolab-imap default packages: cyrus-imap kolab-daemon optional-packages: dovecot-imap Kolab-LDAP The ldap directory component is used for the authentication of users. default meta-package: kolab-ldap default packages: openldap-server Kolab-MTA The MTA including spamfilter, virus-scanner and sasl authentication FIXME ? default meta-package: kolab-mta default packages: postfix clamav amavis TODO kolab-postfix-filters? 5
Chapter 2. Kolab Server Kolab-Webadmin An administrator webinterface. default meta-package: kolab-webadmin Kolab-Webclient An email webinterface. default meta-package: kolab-webclient default packages: kolab-webclient-roundcube optional-packages: kolab-webclient-horde
Draft
Kolab-Webclient-Database A database for the Kolab-Webclient which stores the settings of the webclient and caches data from the imap server. This database can, but does not have to be on the same server as the webclient. default meta-package: kolab-webclient-database default packages: kolab-webclient-database-roundcube optional-packages: kolab-webclient-database-horde
Draft
Chapter 3.
Draft
Installation
The Kolab community provides APT and RPM packages for most commonly used Linux distributions. Please see Section 3.2.1, Installation with APT Packages and Section 3.2.2, Installation with RPM Packages for more information.
3.2.1.1. Debian
1. For Kolab 2.4 software packages for Debian Squeeze, add the following two lines to /etc/apt/ sources.list:
deb http://mirror.kolabsys.com/pub/debian/kolab-2.4/ squeeze release updates deb-src http://mirror.kolabsys.com/pub/debian/kolab-2.4/ squeeze release updates
Chapter 3. Installation
Draft
2.
To ensure the Kolab packages have priority over the Debian packages, such as must be the case for PHP as well as Cyrus IMAP, please make sure the APT preferences pin the mirror.kolabsys.com origin as a preferred source. Put the following in /etc/apt/preferences:
Package: * Pin: origin mirror.kolabsys.com Pin-Priority: 501
3.
4.
5. 6.
When asked to confirm you want to install the package and its dependencies, press Enter. When asked to confirm you want to continue installing the packages of which the integrity nor source can be securely verified, press y then Enter.
3.2.1.2. Ubuntu
1. For Kolab 2.4 software packages for Ubuntu Lucid, add the following two lines to /etc/apt/ sources.list:
Draft
deb http://mirror.kolabsys.com/pub/ubuntu/kolab-2.4/ lucid release updates deb-src http://mirror.kolabsys.com/pub/ubuntu/kolab-2.4/ lucid release updates
For other versions of the Ubuntu distribution, please replace lucid with the corresponding distribution codename. 2. To ensure the Kolab packages have priority over the Ubuntu packages, such as must be the case for PHP as well as Cyrus IMAP, please make sure the APT preferences pin the mirror.kolabsys.com origin as a preferred source. Put the following in /etc/apt/preferences:
Package: * Pin: origin mirror.kolabsys.com Pin-Priority: 501
The error is not caused by broken packages, but a broken package manager that cannot install exim and postfix in parallel.
Solution
First remove any non-postfix MTA you may have installed, which in a default Debian installation is probably exim. To remove exim, execute the following with superuser privileges:
# apt-get remove exim4 exim4-base exim4-config exim4-daemon-light
Chapter 3. Installation Table 3.2. RPM Packages Distribution Support Distribution Information Name CentOS CentOS Fedora Fedora Red Hat Enterprise Linux Red Hat Enterprise Linux CodeName Laughlin Lovelock Tikanga Santiago Version 5 6 14 15 5 6 Architectures i386, amd64 i386, amd64 i386, amd64 i386, amd64 i386, amd64 i386, amd64 Approximately Q1, 2014 Approximately Q4, 2017 Q4, 2011 Q2, 2012 Approximately Q1, 2014 Approximately Q4, 2017
Draft
3.2.2.1. Prerequisites
Before the installation, it is necessary to install the configuration for the Kolab software repositories.
3.2.2.1.1. CentOS
For full instructions on installing Kolab Groupware on CentOS, please refer to the instructions in Section 3.2.2.1.3, Red Hat Enterprise Linux.
3.2.2.1.2. Fedora
To install Kolab Groupware on Fedora, additional Kolab Groupware software repositories are required. Procedure 3.1. Installing the Kolab Groupware repositories for Fedora Depending on the version of Fedora, install the following package: TODO
http://fedoraproject.org/wiki/EPEL
10
Draft
Procedure 3.2. Installing the epel-release Package 1. Depending on the version of Red Hat Enterprise Linux, install the package as it is listed on the following page: Enterprise Linux 5 (Tikanga) Enterprise Linux 6 (Santiago) 2. Install this package using the following command:
# wget http://url/to/rpm # yum localinstall --nogpgcheck /path/to/rpm
3 2
The Kolab software repositories for Red Hat Enterprise Linux ship two so-called -release packages: 1. kolab-2.4-community-release Depending on the version of Red Hat Enterprise Linux, find the -release package at: Red Hat Enterprise Linux 5 (Tikanga)
4 5
2. kolab-2.4-community-release-development You can install the kolab-2.4-community-release-development package using YUM, after having installed the kolab-2.4-community-release package;
# yum install kolab-2.4-community-release-development
Stable Software
Stable software, versions of packages deemed ready for general availability and production environments are distributed through two repositories, release and updates. These repositories are configured on the system, and enabled by default, by installing the kolab-2.4-communityrelease package;
2 3
11
Chapter 3. Installation
Draft
3.
Output Abbreviated
Note that the output is abbreviated for clarity. The output may actually include the description of the repository, and the number of packages available. Optionally, to see which repositories have been configured though not enabled, also execute:
# yum repolist all (...snip...) kolab-2.4 kolab-2.4-debuginfo kolab-2.4-source kolab-2.4-updates kolab-2.4-updates-debuginfo kolab-2.4-updates-source kolab-2.4-updates-testing kolab-2.4-updates-testing-debuginfo kolab-2.4-updates-testing-source
6 7
12
Draft
(...snip...)
Output Abbreviated
Note that the output is abbreviated for clarity. The output may actually include the description of the repository, whether the repository is enabled by default or not, and the number of packages available in each repository as well as the total number of packages.
4.
At this stage of the Kolab Groupware 2.4 development and release cycle, you may require to install the development repository as well. To do so, execute the following command:
# yum -y install kolab-2.4-community-release-development
Please consider using yum-priorities as described in Section 3.2.2.1.4, Using yum-priorities to Avoid Package Conflicts. This is necessary for Enterprise Linux releases prior to Enterprise Linux 6 only.
Note
This is necessary only for Enterprise Linux 5. Procedure 3.4. Installing and Configuring YUM priorities 9 1. The yum-priorities is available from the package repository . Please install it:
http://fedoraproject.org/wiki/EPEL
13
Chapter 3. Installation
Draft
2.
The repositories that have been installed using the kolab-2.4-community-release package(s) have a pre-configured priority of 50. The default repository priority is 99. This will set the correct priorities, unless you have repositories configured other than the base operating system repositories (not including 'addons' and 'extras' on CentOS platforms), EPEL and the Kolab Groupware repositories. Should the system happen to already make use of YUM priorities, please make sure the Kolab repositories have the appropriate priority.
This meta-package will install all needed components. Once the installation is complete, you can continue with the configuration in the next chapter. Alternatively you can install each component individually, which will give you the same result.
3.4. Packagelist
The following packages are available to install the individual components. Please use your distributions package management system to install them. The default meta-package will install the default component. The alternative package is an alternative to the default component. Optional packages provide extra functionality which is not needed for a standard installation. Table 3.3. Packages Package List Package Complete Server default metapackage kolab-groupwareserver alternative package optional packages Package Description A meta package to install all default components. The LDAP component (openldap by default). The IMAP component (cyrus by default). The MTA component (postfix by default). -
LDAP
kolab-ldap
IMAP
kolab-imap
kolab-imapdovecot -
MTA
kolab-mta
Webadmin 14
kolab-webadmin
Draft Package List Package WebclientDatabase Webclient default metapackage kolab-webclientdatabase kolab-webclient alternative package optional packages -
15
16
Draft
Chapter 4.
Draft
Configuration
4.1. Pykolab setup utility
To setup each component the pykolab utilty can be used. Once the installation is complete, you can configure all components using:
# /opt/kolab/bin/kolab-setup
If you ran the script successfully the installation and configuration of the server is complete and you can move on to the next chapter.
certificates
TLSCertificateFile /etc/pki/tls/certs/host.example.org.crt
TLSCertificateKeyFile /etc/pki/tls/certs/host.example.org.key
rootDSE
rootDSE /path/to/rootDSE.ldif
17
Chapter 4. Configuration Specify the name of an LDIF(5) file containing user defined attributes for the root DSE. These attributes are returned in addition to the attributes normally produced by slapd. TODO: this is normally shipped as a default config file For detailed instructions for the manual setup please see: OpenLDAP
Draft
servername
servername: example.org
This is the hostname visible in the greeting messages of the POP, IMAP and LMTP daemons. If it is unset, then the result returned from gethostname(2) is used.
admin
admin: user1 user2
The list of userids with administrative rights. Separate each userid with a space. Sites using Kerberos authentication may use separate "admin" instances. Note that accounts used by users should not be administrators. Administrative accounts should not receive mail. That is, if user "jbRo" is a user reading mail, he should not also be in the admins line. Some problems may occur otherwise, most notably the ability of administrators to create top-level mailboxes visible to users, but not writable by users.
ldap_base
ldap_base: dc=example,dc=org
ldap_bind_dn
ldap_bind_dn: cn=nobody,cn=internal,dc=example,dc=org
Bind DN for the connection to the LDAP server (simple bind). Do not use for anonymous simple binds
ldap_password
ldap_password: LDAPpassword
Draft
ldap_group_base
ldap_group_base: ou=Groups,dc=example,dc=org
ldap_member_base
ldap_member_base: ou=People,dc=example,dc=org
tls-cert
tls_cert_file: /etc/pki/tls/certs/host.example.org.cert
File containing the certificate presented for server authentication during STARTTLS. A value of "disabled" will disable SSL/TLS.
tls_key_file: /etc/pki/tls/private/host.example.org.key
File containing the private key belonging to the server certificate. A value of "disabled" will disable SSL/TLS.
tls_ca_file: /etc/pki/tls/certs/host.example.org_ca.crt
TLS Certificates
TODO: note on generating a ca and intermediate ca and server certificates, add to that note the multi-valued cn attribute for web servers that are tcp/ip load-balanced For detailed instructions for the manual setup please see: Part IV, Cyrus IMAP
TODO placeholder
placeholder replacable
Comment.
19
Chapter 4. Configuration
Draft
Detailed Instructions
For detailed instructions for the manual setup please see: Dovecot-IMAP
tls-cert
smtpd_tls_cert_file = /etc/pki/tls/certs/host.example.org.cert
File with the Postfix SMTP server RSA certificate in PEM format. This file may also contain the Postfix SMTP server private RSA key.
smtpd_tls_key_file = /etc/pki/tls/private/host.example.org.key
File with the Postfix SMTP server RSA private key in PEM format. This file may be combined with the Postfix SMTP server RSA certificate file specified with $smtpd_tls_cert_file. The private key must be accessible without a pass-phrase, i.e. it must not be encrypted. File permissions should grant read-only access to the system superuser account ("root"), and no access to anyone else.
smtpd_sasl_path =
smtpd
smtpd_sasl_type =
cyrus
http://www.postfix.org/SASL_README.html#server_sasl
20
Draft
Kolab-Webadmin Configuration
smtpd_sasl_path =
private/auth
smtpd_sasl_type =
dovecot
Manpage
For further info see man 5 postconf /etc/postfix/master.cf The master.cf configuration file defines how a client program connects to a service, and what daemon program runs when a service is requested. TODO: configure kolabfilter first? Adjust the path to the config file of /etc/kolab/kolabfilter.conf
Manpage
man 5 master /etc/postfix/ldap/mydestination.cf Used for an ldap lookup of the mydestination parameter in main.cf. /etc/postfix/ldap/local_recipient_maps.cf Used for an ldap lookup of the local_recipient_maps parameter in main.cf /etc/postfix/ldap/virtual_alias_maps.cf /etc/postfix/ldap/virtual_alias_maps_mailenabled_distgroups.cf /etc/postfix/ldap/virtual_alias_maps_mailenabled_dynamic_distgroups.cf Used for an ldap lookup of the virtual_alias_maps parameter in main.cf
21
Chapter 4. Configuration
Draft
title
var = value
blabla For detailed instructions for the manual setup please see: Webadmin
22
Draft
Chapter 5.
Draft
Infrastructure Matters
The infrastructure around the Kolab environment matters. The system's hostname, Fully Qualified Domain Name (FQDN) and other infrastructural aspects impact the installation procedure as well as the resulting runtime environment. The Deployment Guide has more details.
23
Draft
should give you the same info. Stop all services running on one of the aforementioned ports:
# /etc/rc.d/init.d/service stop
This will start all needed services and you kolab environemt is usable now. Congratulations! You have finished the installation of you kolab groupware server.
24
SASL
# /etc/init.d/saslauthd start
Amavis
# /etc/rc.d/init.d/amavisd start
Clamav
# /etc/rc.d/init.d/clamd.amavisd start
cyrus-IMAP
# /etc/rc.d/init.d/cyrus-imapd start
Postfix
# /etc/rc.d/init.d/postfix start
Kolabd
# /etc/init.d/kolabd start
HTTP Server
# /etc/init.d/httpd start
25
26
Draft
Chapter 6.
Draft
Server Appendix
6.1. Certificate Authority (CA)-Certificates
Kolab stores the CA-Certificates under the following locations: Certificate: /etc/pki/tls/certs/host.example.org.cert Private Key: /etc/pki/tls/private/host.example.org.key Certificate Authority (CA) certificates: /etc/pki/tls/certs/host.example.org_ca.crt The keys are all in the pem format. If you already have certificates for the Kolab server, you can copy them to the above locations. If you don't have certificates, you can generate them using: Todo: -use pykolab to generate the certificates? -install package with the /usr/share/kolab/scripts/ kolab_ca.sh scripts -generate and install cert use /etc/pki/tls/certs/Makefile from package openssl to generate certificates?
27
28
Draft
Draft
Draft
Chapter 7.
Draft
Roundcube
Roundcube is the official Kolab-Webclient. Roundcube is provided trough the Kolab repositories. See sect-Installation_Guide-Installation-Repository_Configuration
2.
3.
7.3. Installation
To install the complete Roundcubemail including kolab plugins:
# yum install roundcubemail-kolab
The following packages must be installed first: php-pear-MDB2-Driver-mysql.noarch when this error occurs in /var/log/roundcubemail/errors: 06-Sep-2011 20:32:56 +0200]: DB Error: unable to find package 'MDB2_Driver_mysql' file 'MDB2/Driver/mysql.php' in /usr/share/ roundcubemail/program/include/rcube_mdb2.php on line 102 (GET /roundcubemail/) [06-Sep-2011 20:32:56] MDB2 Error: not found (-4): unable to find package 'MDB2_Driver_mysql' file 'MDB2/Driver/ mysql.php' 31
Chapter 7. Roundcube also missing: yum install php-pear-Mail-Mime.noarch configure drafts folder, otherwise saved drafts are lost
Draft
7.4. Configuration
adjust /etc/roundcubemail/db.inc.php to match the password set above (MYSQLRoundcubePassword). Adjust /etc/httpd/conf.d/roundcubemail.conf to allow access from all desired hosts. /etc/httpd/conf.d/roundcubemail.conf /etc/logrotate.d/roundcubemail /etc/roundcubemail/ acl.inc.php /etc/roundcubemail/db.inc.php /etc/roundcubemail/main.inc.php /etc/roundcubemail/ managesieve.inc.php /etc/roundcubemail/password.inc.php /etc/roundcubemail/calendar.inc.php /etc/ roundcubemail/kolab.inc.php /etc/roundcubemail/ldap_authentication.inc.php Configuring roundcube plugins: $rcmail_config['plugins'] = array( 'acl', 'calendar', 'redundant_attachments', 'kolab_core', 'kolab_addressbook', 'kolab_folders', 'managesieve', 'newmail_notifier', ); Calendar plugin: $rcmail_config['calendar_driver'] = "kolab";
32
Draft
Chapter 8.
Draft
Horde
8.1. Installing the Database
Horde needs a database which is provided by the kolab-webclient-database package
# yum install kolab-webclient-database
3.
Create the horde user and grant all privileges to the horde database to that horde user:
# mysql -p -e 'GRANT ALL PRIVILEGES on `horde`.* TO `horde`@`localhost` IDENTIFIED BY "YourPassword";'
33
34
Draft
Chapter 9.
Draft
Webclient-Appendix
9.1. Installation of the MySQL-Database
# yum install mysql mysql-sever
If you already had mysql installed you will need to update it to the version provided in the kolab repositories.
# service mysqld start
If the install script failed to create the mysql user you can create it using
# /usr/sbin/useradd -g mysql -M -o -r -d /var/lib/mysql -s /bin/bash -c "MySQL Server" -u 27 mysql > /dev/null
in the end there should be a mysql user in a mysql group (check with 'id mysql' if the service fails to start with an error like:
[ERROR] /usr/libexec/mysqld: Can't create/write to file '/var/run/mysqld/ mysqld.pid' (Errcode: 13)
Procedure 9.1. Configuring the Horde Database 1. Configure the mysqld service to start on boot (runlevels 2 through 5): chkconfig mysqld on 2. Edit /etc/my.cnf, and execute the following edits: 1. Set old_passwords to 0. 2. Make sure the InnoDB storage engine is enabled, by providing the MySQL server with the binary log settings:
# Make sure all logs are flushed on shutdown innodb_fast_shutdown=0 innodb_file_per_table innodb_data_file_path = ibdata1:128M:autoextend
35
Chapter 9. Webclient-Appendix
Draft
3.
To start mysqld at boot time you have to copy support-files/mysql.server to the right place for your system PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER ! To do so, start the server, then issue the following commands: /usr/bin/mysqladmin -u root password 'new-password' /usr/bin/mysqladmin -u root -h test90-2.test90.kolabsys.com password 'new-password' Alternatively you can run: /usr/bin/mysql_secure_installation which will also give you the option of removing the test databases and anonymous user created by default. This is strongly recommended for production servers. See the manual for more instructions. You can start the MySQL daemon with: cd /usr ; /usr/bin/mysqld_safe & You can test the MySQL daemon with mysql-test-run.pl cd mysql-test ; perl mysql-test-run.pl Please report any problems with the /usr/bin/mysqlbug script! The latest information about MySQL is available on the web at http://www.mysql.com Support MySQL by buying support/licenses at http://shop.mysql.com [ OK ] Starting MySQL: [ OK ]
4.
Run the initial configuration and securing, and follow the instructions:
# /usr/bin/mysql_secure_installation
36
Draft
Draft
Draft
Chapter 10.
Draft
Kontact
Kontact is the offical KDE PIM client, consisting of an email client (KMail) , an address book (KAddressbook) and an Organizer (KOrganizer). Kontact is part of the KDE Software Compilation.
10.1. Installation
Kontact is available on all major linux distributions, and can be installed trough the native package management system. While the standard version provides all features, Kolab maintains enterprise versions for improved stability. To install the complete Kontact suite:
# yum install kontact
10.2. Configuration
The synchronisation with the Kolab Groupware server can either be configured manually or with the Kolabwizard.
39
40
Draft
Chapter 11.
Draft
Thunderbird
para
41
42
Draft
Chapter 12.
Draft
Outlook
para
43
44
Draft
Draft
Draft
Chapter 13.
Draft
13.1. Installation
The package name for Cyrus IMAP is kolab-cyrus-imapd.
kolab-cyrus-imapd will be installed on the system, including any software Cyrus IMAP depends on. The service cyrus-imapd will not yet be started, as you require configuration first. TODO: We can't automatically configure the software; we don't know where the configuration should come from and any hit is a lucky hit. We also don't know what the system is intended for. Nor can we figure such out. Maybe develop and contruct in the Kolab Systems packaging a means for Cyrus IMAP to in fact be automatically configured using a slipstream command, so that the next step is to verify, not configure.
47
48
Draft
Chapter 14.
Draft
APT-based Systems
On APT-based Systems, please use /etc/default/cyrus-imapd as the system configuration defaults file.
RPM-based Systems
On RPM-based Systems, please use /etc/sysconfig/cyrus-imapd as the system configuration defaults file.
In addition to these configuration files, the following directories are used for Cyrus IMAP by default: /var/lib/imap Cyrus IMAP stores it's databases and transactional data here, such as Sieve scripts. /var/spool/imap The primary (default) IMAP partition. Please refer to Chapter 17, IMAP Partitions for TODO: Quick To Go: Small deployments
49
50
Draft
Chapter 15.
Draft
Configuring IMAP
TODO: While the defaults shipped in the Kolab Systems software packages are good to go for most common Cyrus IMAP deployments, ...
51
52
Draft
Chapter 16.
Draft
53
54
Draft
Chapter 17.
Draft
IMAP Partitions
TODO
55
56
Draft
Chapter 18.
Draft
57
58
Draft
Chapter 19.
Draft
59
60
Draft
Chapter 20.
Draft
61
62
Draft
Chapter 21.
Draft
63
64
Draft
Chapter 22.
Draft
65
66
Draft
Draft
67
68
Draft
Draft
Index
F
feedback contact information for this manual, vii
69
70