Koozali.org: home of the SME Server
Obsolete Releases => SME 8.x Contribs => Topic started by: nefkho on June 01, 2012, 01:52:03 PM
-
hi,
i am looking for a zarafa on my sme8, any one can point me to?
thanks
-
I will work on it for a workmate in the next weeks..
basically, I will start from the contrib and I'll use zarafa 7 centos5 rpms..
ATM I can't say anything more
if you search the forums, you'll find a topic about migration from zarafa6 to zarafa7
HTH, good luck
-
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
-
excellent! I will try it asap
just a question? does it work for Zarafa7 too?
thank you :-)
-
Yes Stefano, i used it for Zarafa 7.
The latest php53-mapi is for zcp 7.0.6
F.
-
thanks will try it later..
-
frifri:
where will i get the content for:
/etc/e-smith/events/ibay-create/templates2expand/etc/zarafa/unix.cfg
i have tried this:
[root@cagli zarafa]# /etc/e-smith/events/ibay-create/services2adjust/zarafa-server -> reload
-bash: /etc/e-smith/events/ibay-create/services2adjust/zarafa-server: No such file or directory
[root@cagli zarafa]# /etc/e-smith/events/machine-account-create/services2adjust/zarafa-server -> reload
-bash: /etc/e-smith/events/machine-account-create/services2adjust/zarafa-server: No such file or directory
what should i do?
-
Nefkho,
templates2expand are just files, without content
services2adjust are just links to 'reload'
After installation of the smeserver-zarafa-*.rpm you can find examples in :
/etc/e-smith/events/user-create/templates2expand/etc/zarafa/unix.cfg
/etc/e-smith/events/user-create/services2adjust/zarafa-server
These were made by the smeserver-zarafa-*.rpm for the event 'user-create', but i needed them too for the events 'ibay-create' and 'machine-account-create', so i created them manualy. I don't know why the smeserver-zarafa-*.rpm doesn't create them for 'ibay-create' and 'machine-account-create'. In my opinion, it should to exclude these 'accounts/users' (ibays and machineaccounts) in /etc/zarafa/unix.cfg.
Look in this file '/etc/zarafa/unix.cfg' at :
# A list of user ids that are not considered to be regular users
# Optional, default = empty
except_user_uids =
AND
# A list of group ids that are not considered to be regular groups
# Optional, default = empty
except_group_gids =
F.
-
thanks,
in the /etc/sysconfig/zarafa
do i have to change the ZARAFA_LOCALE="C" to ZARAFA_LOCALE="en_US.UTF-8"
i did change the ZARAFA_USERSCRIPT_LOCALE="en_US.UTF-8"
now i get invalid password :
here is the log from zarafa/gateway.log
Sat Jun 2 14:42:59 2012: [ 3673] Starting worker process for POP3 request
Sat Jun 2 14:42:59 2012: [ 6015] non-existing function called: AUTH
Sat Jun 2 14:43:00 2012: [ 6015] POP3 not enabled for user 'test'
Sat Jun 2 14:43:00 2012: [ 6015] Client disconnected
Sat Jun 2 14:43:00 2012: [ 6015] Client 192.168.1.170 thread exiting
-
The mailboxes are by default created in the language of the Linux server. ONLY when another language is required the configuration file '/etc/sysconfig/zarafa' has to be changed.
Look here :
http://doc.zarafa.com/7.0/Administrator_Manual/en-US/html/_configure_language_on_rpm_based_distributions.html
F.
-
i have tried installing twice i can log in to the webaccess and received email but i can not connect using outlook 2007 below is the server.log
Sat Jun 2 14:42:59 2012: [ 3673] Starting worker process for POP3 request
Sat Jun 2 14:42:59 2012: [ 6015] non-existing function called: AUTH
Sat Jun 2 14:43:00 2012: [ 6015] POP3 not enabled for user 'test'
Sat Jun 2 14:43:00 2012: [ 6015] Client disconnected
Sat Jun 2 14:43:00 2012: [ 6015] Client 192.168.1.170 thread exiting
-
Nefkho,
Why do you want to connect Outlook2007 with pop3 if you can connect with mapi ? Zarafa is a mapi-implementation ...
Did you install the zarafaclient on your windowsmachine ?
Do you know how to connect Outlook2007 with the mapi-protocols ?
F.
-
i used to have mapi but my sme went nuts last time and all emails are gone. i wanna make sure this time that they retain there emails locally. i dnt i did not install the mapi clients as i intent to use the free version of the zarafa, side note all i need from zarafa is the z-push.
-
Nefkho,
POP3
Perhaps, this can help :
http://doc.zarafa.com/7.0/Administrator_Manual/en-US/html/_configure_zarafa_gateway_imap_and_pop3.html
The installed smeserver-zarafa.rpm uses other ports ...
Did you enable POP3 in SERVER-MANAGER ?
Z-PUSH
Does z-push work on SME8 ?
F.
-
yes i did enable pop3 on sme and also enable pop3 on zarafa config.
z-push on sme8? i hope so but i will never know until i get to run zarafa on sme8.
z-push did work on sme 7.5.1.
-
So, you used the other ports (8110 and 8995) in your e-mailclients/Outlook2007 ?
I don't think enabling POP3 in SERVER-MANAGER is needed. In SERVER-MANAGER you need to enable IMAP and disable Webmail (Horde).
F.
-
i used to have mapi but my sme went nuts last time and all emails are gone.
zarafa stores emails into a mysql db.. I'm sure it is part of a regular backup..
i wanna make sure this time that they retain there emails locally. i dnt i did not install the mapi clients as i intent to use the free version of the zarafa, side note all i need from zarafa is the z-push.
IMVHO you are using the wrong tool.. you don't need zarafa if you use pop3 instead of imap or you don't want the limitations of free version..
if you need a groupware, i.e. shared calendars and address book, you should use SOGo.. it uses standard services, mails are in standard maildir format.. and you can revert to a "plain" SME without loosing a bit..
-
thanks for the info, but as per my test i have tried imaps anf pop3s i still get the auth problem, all i need is for a few user to have their push to their smartphones any alternative?
would it be possible to have the smartphone used imap and their pc at work used pop with zarafa?
i lost all the data on my old unit that is why i have to install a fresh.
-
Nefkho,
What does next command says :
zarafa-admin --details [user]
Change [user] with a username you created (ex test)
Does it say that some features are disabled ?
F.
-
thanks for the info, but as per my test i have tried imaps anf pop3s i still get the auth problem, all i need is for a few user to have their push to their smartphones any alternative?
you should investigate more as I use (and I'm doing it since 8 years ago) my smartphone without any issue towards multiple imapS accounts on many SME.. and I have an imapS zarafa account too
if auth problems are related to self signed certificate (strange, I repeat, mine is working fine), there are many free solutions out there
would it be possible to have the smartphone used imap and their pc at work used pop with zarafa?
sure, but in that congurations each time your pc fetchs mails from server, you'll have no mails in imap (of we are talking about same accounts)
i lost all the data on my old unit that is why i have to install a fresh.
seems you've lost your backup too, haven't you? :-)
anyway.. I was a big zarafa fan, really..
but it could be a real PITA.. mails are stored in a monolithic db, you cant extract a single email.. db dump during the pre-backup event is quite long (I have a 3.5 GB sql script) and during that time zarafa can't work properly because db tables are locked..
during Zarafa's development the devs have changed some file location.. and I'm not referrint to a major or a medium release (say from 6.X to 7.X or 6.30.X to 6.40.Y) but from 6.30.X to 6.30.Y..
moving back emails from zarafa to standard imap is, again, a BIG PITA because of "custom" headers zarafa puts into email..
SOGo works quite well, is free, is supported, documented, uses only free and open source protocols.. I will never setup a Zarafa server anymore..
all IMVHO
Ciao
-
Stefano: thank you, i will look in the SOGo, do you have teh procedure to install it in SME8?
-
nefkho.. you've been a forum user for enough time to know that before asking/posting you should search the wiki and the forums :-)
read http://wiki.contribs.org/Sogo in first instance.. then search the forums.. ;-)
-
may bad... i got it. thanks,