This is my DRAFT (please correct if needed) :
SME8b7 uses PHP5.3
1. Search on the EPEL-repositories the latest php5.3-mapi-package.
https://admin.fedoraproject.org/updates/search/php53-mapi?2. Set the epel-repository :
/sbin/e-smith/db yum_repositories set epel repository \
Name 'Epel - EL5' \
BaseUrl 'http://download.fedoraproject.org/pub/epel/5/$basearch' \
MirrorList 'http://mirrors.fedoraproject.org/mirrorlist?repo=epel-5&arch=$basearch' \
EnableGroups no \
GPGCheck yes \
GPGKey http://download.fedora.redhat.com/pub/epel/RPM-GPG-KEY-EPEL \
Visible no \
status disabled
signal-event yum-modify
3. Download via the Zarafawebsite the corresponding package for ZCP
Unpack the corresponding package :
tar -zxvf zcp-*
4. Remove the devel packages and install all rpm's in the unpacked package of ZCP :
yum localinstall *.rpm
All packages have dependencies that cannot be resolved if you install only part of the rpm's.
5. The mailboxes are by default created in the language of the Linux server. When another language is required the following configuration file has to be changed:
/etc/sysconfig/zarafa
Change the option ZARAFA_USERSCRIPT_LOCALE to the correct language, for example nl_NL.UTF-8 or fr_FR.UTF-8. In order to use this language setting make sure the language packs are installed.
The option ZARAFA_LOCALE in the /etc/sysconfig/zarafa file can be used to start the Zarafa Server component in the correct language. This language setting is used to set the default options, like the Public Folder name to the correct language.
6. Check the language of your server
config getprop sysconfig Language
INSERT this language in /etc/zarafa/userscripts/users_common.sh :
Under
ZARAFA_LANG="${ZARAFA_USERSCRIPT_LOCALE:-${LC_MESSAGES:-en_US}}"
Insert
ZARAFA_LANG="nl_NL.UTF-8"
Repeat this for the files groups_common.sh and companies_common.sh located in the same directory as the users_common.sh file.
The WebAccess GUI language can be set at the login screen. This can be configured per user login.
7. We have to remove the installation of the default php-mapi.
rpm -e php-mapi --nodeps
8. Install the php53-mapi.rpm of the EPEL-repository :
-If you downloaded the rpm :
rpm -Uvh --force php53-mapi
-If you did set de EPEL-repository :
yum install php53-mapi --enablerepo=epel
9. Then install smeserver-zarafa. To get it manually :
wget http://ftp.nluug.nl/os/Linux/distr/smeserver/releases/7/smedev/i386/RPMS/smeserver-zarafa-0.9.0-53.el4.sme.noarch.rpm
yum localinstall smeserver-zarafa-0.9.0-53.el4.sme.noarch.rpm
/etc/e-smith/events/actions/zarafa-install
You will be prompted to select the user plugin you want to use. We suggest the unix method. The unix plugin has been updated in zarafa 6.4 and now includes an option to exclude uid's and gid's. This fixes the major drawback that steered us earlier away from this plugin, but now it is your best choice. We can now use the user and group db's to exclude certain users and groups and clean up the address book and include the admin account. This unix-plugin also automatically syncs users, groups and passwords on the fly with very little effort. Note the ldap plugin is currently not supported in the rpm. The db plugin is pristine however you need to enter all the user details. In both cases the user must exist in SME first as a standard user.
10. Make the unix.cfg-template also to expand upon ibay or machine-account creation...
/etc/e-smith/events/ibay-create/templates2expand/etc/zarafa/unix.cfg
/etc/e-smith/events/machine-account-create/templates2expand/etc/zarafa/unix.cfg
Reload unix.cfg into zarafa so it sees newly excluded uids and gids...
/etc/e-smith/events/ibay-create/services2adjust/zarafa-server -> reload
/etc/e-smith/events/machine-account-create/services2adjust/zarafa-server -> reload
11. Enable mail delivery to zarafa for users:
-for all users
config setprop zarafa-server GlobalForward enabled
-or for individual users
db accounts setprop $USERNAME zarafa enabled
-apply
/etc/e-smith/events/actions/qmail-update-user
12. Make symbolic links.
ln -s /lib/libcrypto.so.0.9.8e /usr/lib/libcrypto.so.0.9.8
ln -s /lib/libssl.so.0.9.8e /usr/lib/libssl.so.0.9.8
13. We also need to think about the index_services_enabled parameter in the /etc/e-smith/templates/etc/zarafa/server.cfg/server.cfg Use Indexing service for faster searching. Enabling this option requires the zarafa-indexer service to be running.
index_services_enabled = yes
Make changes in /etc/e-smith/events/actions/zarafa-services for zarafa-indexer
#!/bin/sh
FILE=/etc/rc.d/init.d/zarafa-licensed
if [ "$1" == start ]; then
/etc/rc.d/init.d/zarafa-gateway start
/etc/rc.d/init.d/zarafa-ical start
if [ -a $FILE ]; then $FILE start; fi
/etc/rc.d/init.d/zarafa-monitor start
/etc/rc.d/init.d/zarafa-server start
/etc/rc.d/init.d/zarafa-spooler start
/etc/rc.d/init.d/zarafa-indexer start
exit 0
fi
if [ "$1" == stop ]; then
/etc/rc.d/init.d/zarafa-gateway stop
/etc/rc.d/init.d/zarafa-ical stop
if [ -a $FILE ]; then $FILE stop; fi
/etc/rc.d/init.d/zarafa-monitor stop
/etc/rc.d/init.d/zarafa-indexer stop
/etc/rc.d/init.d/zarafa-spooler stop
/etc/rc.d/init.d/zarafa-server stop
exit 0
fi
if [ "$1" == restart ]; then
/etc/rc.d/init.d/zarafa-gateway stop
/etc/rc.d/init.d/zarafa-ical stop
if [ -a $FILE ]; then $FILE stop; fi
/etc/rc.d/init.d/zarafa-monitor stop
/etc/rc.d/init.d/zarafa-indexer stop
/etc/rc.d/init.d/zarafa-spooler stop
/etc/rc.d/init.d/zarafa-server stop
/etc/rc.d/init.d/zarafa-gateway start
/etc/rc.d/init.d/zarafa-ical start
if [ -a $FILE ]; then $FILE start; fi
/etc/rc.d/init.d/zarafa-monitor start
/etc/rc.d/init.d/zarafa-server start
/etc/rc.d/init.d/zarafa-spooler start
/etc/rc.d/init.d/zarafa-indexer start
exit 0
fi
if [ "$1" == enabled ]; then
config setprop zarafa-gateway status enabled
config setprop zarafa-ical status enabled
if [ -a $FILE ]; then config setprop zarafa-licensed status enabled; fi
config setprop zarafa-monitor status enabled
config setprop zarafa-server status enabled
config setprop zarafa-spooler status enabled
config setprop zarafa-indexer status enabled
exit 0
fi
if [ "$1" == disabled ]; then
config setprop zarafa-gateway status disabled
config setprop zarafa-ical status disabled
if [ -a $FILE ]; then config setprop zarafa-licensed status disabled; fi
config setprop zarafa-monitor status disabled
config setprop zarafa-server status disabled
config setprop zarafa-spooler status disabled
config setprop zarafa-indexer status disabled
exit 0
fi
echo "Usage: start|stop|restart|enabled|disabled"
exit 0
Make a link /etc/rc.d/rc7.d/S99zarafa-indexer and link to /etc/rc.d/init.d/e-smith-service :
ln -s /etc/rc.d/init.d/e-smith-service /etc/rc.d/rc7.d/S99zarafa-indexer
14. Then post-upgrade and restart.
signal-event post-upgrade; signal-event reboot