Obsolete Releases > SME 8.x Contribs

Zarafa on ver8

<< < (3/6) > >>

frifri:
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.

erykwol:
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

frifri:
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.

erykwol:

--- Quote from: 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.

--- End quote ---

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

frifri:
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.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version