1. Store
  2. Apps
  3. Hardware
  4. Support
  5. Solutions

ClearFoundation

Forums
Welcome, Guest
Zarafa 7 Webmail - HOWTO Install and Configure
(1 viewing) 1 Guest
Go to bottomPage: 12345678...68
TOPIC: Zarafa 7 Webmail - HOWTO Install and Configure
*
#30195
Zarafa 7 Webmail - HOWTO Install and Configure 1 Year, 10 Months ago  
Please find below instructions for installing Zarafa-7 on ClearOS Enterprise 5.2.

The old Zarafa 6 (long) thread can be found HERE which contains a lot of useful information and guidance.

The full installation howto for Zarafa is HERE. This is considerd to be the main howto, and will be revised to use version 7 in due course. To install Zarafa-7 see the revised install section below. (ClearOS Enterprise 6.1.0 when available will also contain a Zarafa module)

Update: Zarafa 7.0.5-1 is available in the timb-testing repo. 6.40.9 has been pushed to the timb repo.I anticipate this to be the last release for 6.40.x

Warning - upgrades from 6.40.x require manual Mysql intervention, to optimise it for the new version - the database will grow by up to 20% in size. The process is not reversible.

Refer to the release docs here:-
doc.zarafa.com/7.0/Release_Notes/en-US/p...ease_Notes-en-US.pdf

There are many changes HERE

Install
Code:

yum --enablerepo=timb-testing install zarafa zarafa-webaccess
yum --enablerepo=timb install app-zarafa


Refer to original docs for completing the install

Upgrading
Code:

yum --enablerepo=timb-testing upgrade zarafa zarafa-webaccess
#important! to fix issues with libvmime upgrade please run:-
ldconfig
service zarafa-server start
# review server.log - zarafa-server will stop after initial restart stating that you need to run the upgrade script
tail -f /var/log/zarafa/server.log
yum install MySQL-python
# Dump your existing database as a backup!
# For system-mysql (find your system password in /etc/system/databases)
/usr/share/system-mysql/usr/bin/mysqldump -uroot -pPASSWORD -v --quick --single-transaction zarafa | \
gzip > /var/tmp/zarafa-mysql-dump.gz
# For Mysql
/usr/bin/mysqldump -uroot -pPASSWORD -v --quick --single-transaction zarafa | \
gzip > /var/tmp/zarafa-mysql-dump.gz
# run the upgrade script, note may take substantial time
python /usr/share/zarafa/zarafa7-upgrade


WAIT! don't end the script or you risk breaking your system, completed in 5-10 minutes for a small database. You should see something like:-
Converting database to Unicode: 4 / 4 (100%)
Update stores table usernames: 2 / 2 (100%)
Converting rules to Unicode: 2 / 2 (100%)
Converting search folders to Unicode: 7 / 7 (100%)
Converting properties for IO performance: 26872 / 26872 (100%)
Creating counters for IO performance: 16 / 16 (100%)
Creating common properties for IO performance: 4 / 4 (100%)
Creating message attachment properties for IO performance: 2 / 2 (100%)
Creating tproperties for IO performance: 26871 / 26871 (100%)
Converting hierarchy for IO performance: 26871 / 26871 (100%)
Creating deferred table for IO performance: 1 / 1 (100%)
Converting changes for IO performance: 55839 / 55839 (100%)
Converting names table to Unicode: 1 / 1 (100%)

# Assuming everything went OK, restart the services and monitor the logs
Code:

service zarafa-server start
service webconfig restart



Outlook support
Zarafa offer a free community edition with 3 free Outlook connectors, so that it will connect in a manner similar to Exchange
You can download the relevant version from ftp://timburgess.net/zarafa/
Install with:-
Code:

rpm -Uvh zarafa-licensed-7.0.5-31880.i386.rpm --nodeps



Z-Push
Z-push which offers ActiveSync support for remote devices is available as an rpm
Code:

yum --enablerepo=timb-testing install zarafa-z-push
service httpd restart
service webconfig restart
vi /etc/zarafa/z-push/searchldap.php
#change LDAP_BIND_USER,LDAP_BIND_PASSWORD and LDAP_SEARCH_BASE to values from the webconfig LDAP



Webaccess Speed
For large numbers of users the default webconfig settings can result in slow performance. Please see the post here if you need to optimise its performance! Thanks to Peter for posting
www.clearfoundation.com/component/option...imitstart,290/#37403

Mysql Tuning
For tuning of the Mysql backend (required for large mail databases!) see the following post. Please note the instructions apply to the default Mysql instance not the "System Mysql", however they can be successfully be applied to both.
www.zarafa.com/wiki/index.php/MySQL_tuning

Enjoy feedback welcome!
Tim Burgess
Moderator
Posts: 5802
graph
User Offline Click here to see the profile of this user
Last Edit: 2012/02/14 18:09 By timb80.
The administrator has disabled public write access.
 
#30259
Re: Zarafa 7 Webmail - HOWTO Install and Configure 1 Year, 10 Months ago  
Hi Tim,

I installed every package on my centos 5.2 sp1 enterprise box and also in a vmware testmaschine on a freshly installed system without zarafa 6 installed before.

There is a problem with the zarafa license server.
When I installed the zarafa-lcensed-server I can reach my mailbox within Outlook 2010.
But when I restart the clearos server, the license server is running but i can't acces my mailbox with Outlook.

In licensed.log ther is no problem visible:
Fri Jul 15 18:04:46 2011: Starting zarafa-licensed version 7,0,0,27791 (27791), pid 8818
Fri Jul 15 18:04:46 2011: ZCP serial in '/etc/zarafa/license' is invalid. Assuming default 3-user license
Fri Jul 15 18:04:46 2011: ZCP license for 3 Win32 MAPI users
Fri Jul 15 18:10:44 2011: Exiting
Fri Jul 15 18:18:21 2011: Starting zarafa-licensed version 7,0,0,27791 (27791), pid 5037
Fri Jul 15 18:18:21 2011: ZCP serial in '/etc/zarafa/license' is invalid. Assuming default 3-user license
Fri Jul 15 18:18:21 2011: ZCP license for 3 Win32 MAPI users

In server.log I see the same problem like in Outlook 2010:
Fri Jul 15 18:12:27 2011: Starting zarafa-server version 7,0,0,27791, pid 3585
Fri Jul 15 18:12:27 2011: Connection to database 'zarafa' succeeded
Fri Jul 15 18:12:27 2011: WARNING: zarafa-licensed not running, commercial features will not be available until it's started.
Fri Jul 15 18:12:28 2011: Listening for pipe connections on /var/run/zarafa
Fri Jul 15 18:12:28 2011: Listening for TCP connections on port 236
Fri Jul 15 18:12:28 2011: Startup succeeded on pid 3597
Fri Jul 15 18:13:43 2011: Client requested license but zarafa-licensed could not be contacted

When I remove the complete zarafa installation and reinstall them, I can use Outlook again until the next reboot of the clearos server

What could be the problem?

Thanks Stephan
.
Stephan Hartenauer
Fresh Boarder
Posts: 12
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#30261
Re: Zarafa 7 Webmail - HOWTO Install and Configure 1 Year, 10 Months ago  
Stephen - Zarafa-server has to acknowledge the presence of zarafa-licensed otherwise it won't work. Try starting them in order:-

Code:

service zarafa-licensed restart
service zarafa-server restart


You should see the following line in /var/log/zarafa/server.log
Wed Jul 13 21:34:45 2011: zarafa-licensed is running, but no license key was found. Not all commercial features will be available.
Tim Burgess
Moderator
Posts: 5802
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#30269
Re: Zarafa 7 Webmail - HOWTO Install and Configure 1 Year, 10 Months ago  
Hi Tim,
thank you it's working now!

But how can change the behavior at startup?
The system is running on runlevel 3, so I change the zarafa-server from S85 to S87, but tha doesn't help.

Original:
S80postfix
S85httpd
S85zarafa-server
S86zarafa-dagent
S86zarafa-gateway
S86zarafa-ical
S86zarafa-licensed
S86zarafa-monitor
S86zarafa-spooler
S90crond

Maybe I should place your code in a script. But in which one?

Stephan
Stephan Hartenauer
Fresh Boarder
Posts: 12
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#30504
Re: Zarafa 7 Webmail - HOWTO Install and Configure 1 Year, 10 Months ago  
Luckily for me, my ClearOS server is a home server...

I followed the upgrade as above, but now, when I try to access the Zafara user web interface, I get this message:

"Not Found: PHP mapi extension not found
If you have upgraded zarafa, please restart Apache

Zarafa WebAccess can't start because of incompatible configuration.

Please correct above errors, a good start is by checking your '/usr/webconfig/etc/php.ini' file.

Or if you wish, you can disable this config check by editing the file '/usr/share/zarafa-webaccess/config.php', but this is not recommend."
(Disabling the above command just left me with a blank screen when I went to the webaccess page.)

I restarted Apache (rebooted server), and looked at the files, but nothing jumps out. I tried the "Yum Remove Zafara*" command to uninstall and start fresh, but it returned with a message "No match for argument: zafara*"

How should I proceed in removing Zafara 7 so that I can begin fresh?

Thanks,

- Craig
Craig
Senior Boarder
Posts: 44
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#30515
Re: Zarafa 7 Webmail - HOWTO Install and Configure 1 Year, 10 Months ago  
Ok - my bad on the removing Zarafa item - it helps if I spell it correctly (I blame the extreme heat, humidity and late night for that gaffe. Stupid!).

So, I removed Zarafa 7 and reinstalled it, and the same error as above appeared. I then removed Zarafa 7 and installed version 6. The same "Not Found: PHP mapi extension not found..." error occurred. I've rebooted the server and I can now get to the Zarafa webaccess login screen!
I get a "Cannot Connect to the Zarafa Server" error. On the ClearOS webconfig, all Zarafa services are running. I'm getting closer to having it functional again.

If I can't get it functioning properly I'll post the question either on the Zarafa 6 big discussion or start a new thread entirely.

- Craig

EDIT: Last error was that the Zarafa server was not running. following Tim's instructions:

"If zarafa-server fails to run on boot, try editing the "run_as_user" in /etc/zarafa/server.cfg to root and let us know (Thanks to Keil Gyozo for spotting this one)"

at www.timburgess.net/node/28 fixed the problem. All is working well once again. Thanks for your prodigious documentation and coding Tim!!!
Craig
Senior Boarder
Posts: 44
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2011/07/23 14:42 By Astronomer.
The administrator has disabled public write access.
 
#30516
Re: Zarafa 7 Webmail - HOWTO Install and Configure 1 Year, 10 Months ago  
Tim

Is the configuration on iPhone of iPad in 7.x version the same as with 6.40.5. Or is it using the webconfig version using port 84
Patrick
Expert Boarder
Posts: 124
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
It is nice to important, but it is more important to be nice
 
#30533
Re: Zarafa 7 Webmail - HOWTO Install and Configure 1 Year, 10 Months ago  
Hi Craig - glad you got there in the end!, it's on my todo list to investigate. This problem cropped up before and steps posted for reinstallation are here in the 6.x thread
www.clearfoundation.com/component/option...imitstart,780/#30303

Just for my benefit - which version of Zarafa did you do upgrade from?

Hi Patrick, the zarafa-z-push RPM sets up the Microsoft-ActiveSync alias using both the normal web server and the webconfig, so the answer is yes it still uses port 84, but the implementation means that you can access ActiveSync using normal http or https
Tim Burgess
Moderator
Posts: 5802
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#30639
Re:Zarafa 7 Webmail - HOWTO Install and Configure 1 Year, 10 Months ago  
Hello Tim

We are about to purchase a license from Zarafa. They have asked us to inform them which version we are using. I have told them version 7 as this is what we have installed from your howto in this thread. I presume just "version 7" is correct? (just checking)

Thanks for your time

Peter
Peter Birdsall
Junior Boarder
Posts: 35
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#30644
Re:Zarafa 7 Webmail - HOWTO Install and Configure 1 Year, 10 Months ago  
Yes version 7.0.0, using the RHEL5 version of Zarafa-licensed.
Tim Burgess
Moderator
Posts: 5802
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 12345678...68
  get the latest posts directly to your desktop