Koozali.org: home of the SME Server

Obsolete Releases => SME 8.x Contribs => Topic started by: compsos on July 02, 2012, 12:44:30 PM

Title: Zarafa on ver8
Post by: compsos on July 02, 2012, 12:44:30 PM
Just tested the latest Zarafa 7.1 and z-push 2 on SmeServer.

7.1 with php53-mapi-7.0.6 works but z-push 2 errors with an error
Code: [Select]
LoopDetection->ProcessLoopDetectionPreviousConnectionFailed():

Upgrade php-mapi to ver 7.1 and the z-push loop error stops but the webaccess is not available.

What does work is
Zarafa-7.0.8-35178
php53-mapi-7.0.6-1.el5
z-push-1.5.8-1187

Also webapp works after
adding tmp to /usr/share/zarafa-webapp directory and setting to www:www and mode 755

Add this to the /etc/e-smith/templates/etc/httpd/conf/httpd.conf/86ZarafaAlias
Code: [Select]
Alias /webapp /usr/share/zarafa-webapp/
 <Directory /usr/share/zarafa-webapp/>
  Options -Indexes
  AllowOverride None
  order allow,deny
  allow from all
  AddType application/x-httpd-php .php
  php_flag magic_quotes_gpc off
  php_flag track_vars on
 </Directory>


And modify

/etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/29ZarafaAliases

add to mydirs


Code: [Select]
$dirs{webapp} = '/usr/share/zarafa-webapp';
and
Code: [Select]
foreach $place ('zarafa','webapp','webmail','webaccess','mobile','Microsoft-Server-ActiveSync')
Title: Re: Zarafa on ver8
Post by: Stefano on July 02, 2012, 12:49:49 PM
/etc/e-smith/templates/etc/httpd/conf/httpd.conf/86ZarafaAlias
/etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/29ZarafaAliases

you should never edit files in /templates/ tree..

use template-custom one
Title: Re: Zarafa on ver8
Post by: fpausp on July 08, 2012, 09:48:46 PM
Hi compsos,

I would like to install zarafa 7 on sme8, could you give me a complete howto ?


Best
fpausp
Title: Re: Zarafa on ver8
Post by: frifri on July 09, 2012, 09:15:38 AM
I am working on one :

http://www.pollet-ghys.be/intranet/index.php/Zarafa (http://www.pollet-ghys.be/intranet/index.php/Zarafa)

Perhaps this howto is a start.
We still need integration with LDAP, SSO, ...

F.
Title: Re: Zarafa on ver8
Post by: Stefano on July 09, 2012, 09:47:16 AM
Hi compsos,

I would like to install zarafa 7 on sme8, could you give me a complete howto ?

Best
fpausp

fpausp, you've been here enough to know that before posting you should search :-)
http://forums.contribs.org/index.php/topic,48712.0.html
Title: Re: Zarafa on ver8
Post by: frifri on July 09, 2012, 09:56:57 AM
Stefano,

The howto you are pointing at, is using the config-files of 6.40 !  There are alot of new config-keys in 7.0 !  So, i made a new howto ...

F.
Title: Re: Zarafa on ver8
Post by: Stefano on July 09, 2012, 10:01:03 AM
frifri

if so, please do it in the wiki and/or modify the contrib to reflect the new keys, thank you
Title: Re: Zarafa on ver8
Post by: frifri on July 09, 2012, 10:17:47 AM
Stefano,

Feel free to paste it in the wiki (i dont have a wiki-login).

This howto is a first step.  After testing and completion, a new rpm can be made.  But, i think a howto is better because in every new release of zarafa there a changes in the config-files ..., new zarafa-rpm's (like a new webmail (webapp), a new indexer), ...  A howto can be changed easily ...

Take a look for changes since 6.40 :

http://doc.zarafa.com/7.0/Release_Notes/en-US/html-single/

F.
Title: Re: Zarafa on ver8
Post by: fpausp on July 09, 2012, 12:36:07 PM
Hi all,

@ frifri
Wow, looks good. I will try it in a few days ...

@ Stefano
Ok, Ok, I was not realy sure to find the latest howto.


Best
fpausp
Title: Re: Zarafa on ver8
Post by: fpausp on July 10, 2012, 05:42:38 PM
Hi,

Tried the howto and it looks pretty good ... Is it possible to use another sme8 (fetchmail installed) as mailserver ?


Best
fpausp
Title: Re: Zarafa on ver8
Post by: frifri on July 11, 2012, 07:07:23 PM
I didn't try that, but it should work.

As long as the mails are forwarded to the ./Maildir of the user on your Zarafaserver (second server).

F.
Title: Re: Zarafa on ver8
Post by: erykwol on July 13, 2012, 09:59:46 AM
Hi,

I found an error in template:
/etc/e-smith/templates-user/.qmail/80Zarafa.

With the original code below when zarafa-server is not running e-mails are not holded by qmail and disappear.
This template produces the following line in .qmail file for the user:
| /usr/bin/zarafa-dagent -q USERNAME ; if [ 0 -ne 0 ] ; then exit -1; else exit 99;
and it should be:
| /usr/bin/zarafa-dagent -q USERNAME ; if [ $? -ne 0 ] ; then exit -1; else exit 99;

Original code:
{
   my $zarafa = $user->prop('zarafa') || 'disabled';
   my $zarafa2 = ${'zarafa-server'}{GlobalForward} || 'disabled';

   if ($zarafa eq 'enabled' || $zarafa2 eq 'enabled')
   { return "| /usr/bin/zarafa-dagent -q $USERNAME ; if [ $? -ne 0 ] ; then exit -1; else exit 99; fi;"
   }
}
New code:
{
   my $zarafa = $user->prop('zarafa') || 'disabled';
   my $zarafaPublic = $user->prop('zarafaPublic') || 'disabled';
   my $zarafa2 = ${'zarafa-server'}{GlobalForward} || 'disabled';

   if ($zarafa eq 'enabled' || $zarafa2 eq 'enabled')
   {
      if ($zarafaPublic eq 'enabled')
      {  return "| /usr/bin/zarafa-dagent --public Public Folders\\$USERNAME -C $USERNAME ; if [ \$\? -ne 0 ] ; then exit -1; else exit 99; fi;"  }
      else
      {  return "| /usr/bin/zarafa-dagent -q $USERNAME ; if [ \$\? -ne 0 ] ; then exit -1; else exit 99; fi;"   }
   }
}

This error exist from the beginig of the smesrver-zarafa contribution.
To correct this please make a new template:
mkdir -p /etc/e-smith/templates-user-custom/.qmail
nano /etc/e-smith/templates-user-custom/.qmail/80Zarafa
and paste the new code into it.

Eryk
Title: Re: Zarafa on ver8
Post by: frifri on July 13, 2012, 10:31:30 AM
erykwol,

THANK YOU !

I changed it in the howto for :
/etc/e-smith/templates-user/.qmail/80Zarafa
/etc/e-smith/templates-user/.qmail-junkmail/01Zarafa

But, why do you need mailboxes of users in the Public Folders ?

This problem still exists for the contrib (smeserver-zarafa.rpm).  It should be made clear in the Wiki on Contibs.org.  Do you have a login for this wiki ?

F.
Title: Re: Zarafa on ver8
Post by: erykwol on July 13, 2012, 12:21:21 PM
erykwol,

THANK YOU !

I changed it in the howto for :
/etc/e-smith/templates-user/.qmail/80Zarafa
/etc/e-smith/templates-user/.qmail-junkmail/01Zarafa

But, why do you need mailboxes of users in the Public Folders ?

This problem still exists for the contrib (smeserver-zarafa.rpm).  It should be made clear in the Wiki on Contibs.org.  Do you have a login for this wiki ?

F.

Hi Frifri,

This is the original template from smserver-zarafa contribution:
smeserver-zarafa-0.9.0-46.el4.sme

Sorry, I don't have a login for WiKi.

By the way, I have a problem with the user panel for zarafa and password validation.
It is impossible to use special characters in passwords for zarafa users.
I know that the password validation routine is in:
/usr/lib/perl5/site_perl/esmith/FormMagick/Panel/zarafaUI.pm
on line 1509
# This function is mainly use to verify the composition of a password enter by an user.

sub my_password {

        my ($fm, $password, $minlength) = @_;
        my $self = shift;
        my $return_error = $self->localise('MY_PASSWORD_VERIF_ERROR');
        if ($password =~ /^\w+$/i and length($password) >= $minlength){    <---- here
                return "OK";
        }
        elsif($password eq ''){
                return "OK";
        }
        else {
                return $return_error;
        }
}


But I'm not so good in perl to change it to include special characters as "!#$%"
Maybe you know how to do it?

Anyway I think it wil be beter if zarafa user could be made/changed from the user panel.

Eryk
Title: Re: Zarafa on ver8
Post by: frifri on July 13, 2012, 03:37:13 PM
Sorry Erykwol, I use the zarafa-admin-tool for db-plugin.
The panels are misleading when you use the unix-plugin.
When using the unix-plugin the 'zarafa-password' is set with/like the 'sme-password' (indeed, there isn't a separate zarafa-pasword in that case).  So, changing your sme-password, changes the 'zarafa-password'.
If you don't need a multicompany-setup, the unix-plugin is the better plugin (my opinion).
Sorry for my bad english too.
F.
Title: Re: Zarafa on ver8
Post by: guest22 on July 16, 2012, 10:17:41 AM
Copied the 'frifri how-to' (dated July 16th 10:00hrs GMT+1) over to the contribs.org wiki

http://wiki.contribs.org/Zarafa_on_SME8

Requesting a wiki account on contribs.org is easy:

http://wiki.contribs.org/Help:Contents
Title: Re: Zarafa on ver8
Post by: frifri on July 16, 2012, 06:58:20 PM
Erykwol,

When using the DB-plugn, there is a password-plugin for webaccess (every zarafa-user can change his password in zarafa-webacces) : https://community.zarafa.com/pg/plugins/project/157/developer/dw2412/passwd-plugin (https://community.zarafa.com/pg/plugins/project/157/developer/dw2412/passwd-plugin)

After installation : in /var/lib/zarafa-webaccess/plugins/passwd/dialogs/pwdchange.php, change this line :

Code: [Select]
$passwd_cmd = "/usr/local/bin/zarafa-passwd -u %s -o %s -p %s";

to this :

Code: [Select]
$passwd_cmd = "/usr/bin/zarafa-passwd -u '%s' -o '%s' -p '%s'";

This seems to work

More information : https://forums.zarafa.com/showthread.php?3111-passwd-plugin/page4 (https://forums.zarafa.com/showthread.php?3111-passwd-plugin/page4)

Hope this helps your problem

F.
Title: Re: Zarafa on ver8
Post by: guest22 on July 22, 2012, 12:43:22 PM
@frifri, would it be possible for you to request a contribs.org wiki account and continue your efforts on that wiki please? It would be best if there was one wiki source only.

TIA!!

ps. Tested your how-to and it simply works, good Job!! Now all we need is a RPM master ;-)
Title: Re: Zarafa on ver8
Post by: guest22 on July 28, 2012, 11:44:13 PM
@frifi

Thanks so much for maintaining zarafa on SME8 on the contribs.org wiki

http://wiki.contribs.org/Zarafa_on_SME8


Merci bien!
Title: Re: Zarafa on ver8
Post by: girkers on January 06, 2013, 02:45:11 AM
I want to thank you for the wiki as well, just some feedback, the latest version no longer includes the Indexer, it has been replaced with the search package. Also we need a later php53-mapi to get z-push to work properly, the webapp works with the current package however you cannot sync with a mobile device.

Just a heads up and thanks.
Title: Re: Zarafa on ver8
Post by: newburns on January 11, 2013, 07:30:07 AM
Epel GPG KEY url is deprecated. Please use the new url from http://wiki.contribs.org/Epel
Title: Re: Zarafa on ver8
Post by: frifri on February 20, 2013, 01:28:20 PM
There is an updated howto on http://wiki.contribs.org/Talk:Zarafa_on_SME8

When enabling 'epel-testing', you can install the php53-mapi.rpm for 7.0.12 and upgrade to z-push 2.0.7 (new installation script !).
Version 1.3 of the Webapp can be installed too.

Works for me.

F.


Title: Re: Zarafa on ver8
Post by: guest22 on February 21, 2013, 01:20:32 AM
There is an updated howto on http://wiki.contribs.org/Talk:Zarafa_on_SME8

Thank you for your efforts, very well done!
Title: Re: Zarafa on ver8
Post by: girkers on February 21, 2013, 03:34:17 AM
Is there a reason for sticking with the 7.0 series instead of moving to the 7.1 verion?

I am running 7.1.2 now and have no issues once I updated the mapi library.
Title: Re: Zarafa on ver8
Post by: frifri on February 21, 2013, 09:04:17 AM
Girkers,

Can you explain how you updated the php53-mapi.rpm ?

For 7.1.2 some changes are needed in the script. ex. 7.1 has a search.rpm, witch is the indexer.rpm in 7.0.  There are some config-changes too.

F.
Title: Re: Zarafa on ver8
Post by: girkers on February 23, 2013, 01:21:42 AM
frifri,

I had to "roll" my own mapi.so file, have a look at this topic to see the pain I went through to get it to work.

http://forums.contribs.org/index.php/topic,49406.0.html (http://forums.contribs.org/index.php/topic,49406.0.html)