Changes

Jump to navigation Jump to search
455 bytes added ,  08:45, 28 September 2008
Line 67: Line 67:     
====.qmail====
 
====.qmail====
enable zarafa for a user
+
enable zarafa for a user, OPTION 1
 +
db accounts setprop xxxx zarafa enabled
 +
 
 +
mkdir -p /etc/e-smith/templates-user-custom/.qmail
 +
nano -w /etc/e-smith/templates-user-custom/.qmail/80Zarafa
 +
 +
{
 +
    my $zarafa = $user->prop('zarafa') || 'disabled';
 +
 +
    return "| /usr/bin/zarafa-dagent -q $USERNAME ; if [ $? -ne 0 ] ; then exit -1; else exit 99; fi;"
 +
            if ($zarafa eq 'enabled');
 +
}
 +
 
 +
enable zarafa for a user, OPTION 2
 
  db accounts setprop xxxx EmailForward zarafa  ### required to disable local delivery
 
  db accounts setprop xxxx EmailForward zarafa  ### required to disable local delivery
 +
(not recommended, your overloading the db fragment, EmailForward should only be local/forward/both)
    
  mkdir -p /etc/e-smith/templates-user-custom/.qmail
 
  mkdir -p /etc/e-smith/templates-user-custom/.qmail
Line 76: Line 90:  
     my $zarafa = $user->prop('EmailForward') || 'local';
 
     my $zarafa = $user->prop('EmailForward') || 'local';
 
   
 
   
     return "| /usr/bin/zarafa-dagent -q $USERNAME ; if [ $? -ne 0 ] ; then exit -1; else exit 99; fi;"
+
     return "| /usr/bin/zarafa-dagent -q $USERNAME"
             if ($zarafa eq 'enabled');
+
             if ($zarafa eq 'zarafa');
 
  }
 
  }
  

Navigation menu