Koozali.org: home of the SME Server

Zarafa on ver8

Offline compsos

  • *
  • 472
  • +0/-0
Zarafa on ver8
« 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')
Regards

Gordon............

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Zarafa on ver8
« Reply #1 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

Offline fpausp

  • *
  • 728
  • +0/-0
Re: Zarafa on ver8
« Reply #2 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
Viribus unitis

Offline frifri

  • *
  • 108
  • +0/-0
Re: Zarafa on ver8
« Reply #3 on: July 09, 2012, 09:15:38 AM »
I am working on one :

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

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

F.

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Zarafa on ver8
« Reply #4 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

Offline frifri

  • *
  • 108
  • +0/-0
Re: Zarafa on ver8
« Reply #5 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.

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Zarafa on ver8
« Reply #6 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

Offline frifri

  • *
  • 108
  • +0/-0
Re: Zarafa on ver8
« Reply #7 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.

Offline fpausp

  • *
  • 728
  • +0/-0
Re: Zarafa on ver8
« Reply #8 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
Viribus unitis

Offline fpausp

  • *
  • 728
  • +0/-0
Re: Zarafa on ver8
« Reply #9 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
Viribus unitis

Offline frifri

  • *
  • 108
  • +0/-0
Re: Zarafa on ver8
« Reply #10 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.

Offline erykwol

  • *
  • 9
  • +0/-0
    • http://www.art4others.com
Re: Zarafa on ver8
« Reply #11 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

Offline frifri

  • *
  • 108
  • +0/-0
Re: Zarafa on ver8
« Reply #12 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.

Offline erykwol

  • *
  • 9
  • +0/-0
    • http://www.art4others.com
Re: Zarafa on ver8
« Reply #13 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

Offline frifri

  • *
  • 108
  • +0/-0
Re: Zarafa on ver8
« Reply #14 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.