Changes

From SME Server
Jump to navigationJump to search
502 bytes removed ,  08:49, 28 September 2008
→‎.qmail: replace darrell's method with if [ $? -ne 0 ] method
Line 67: Line 67:     
====.qmail====
 
====.qmail====
enable zarafa for a user, OPTION 1
+
enable zarafa for a user
  db accounts setprop xxxx zarafa enabled
+
  db accounts setprop xxxx Zarafa Enabled
    
  mkdir -p /etc/e-smith/templates-user-custom/.qmail
 
  mkdir -p /etc/e-smith/templates-user-custom/.qmail
Line 74: Line 74:  
   
 
   
 
  {
 
  {
     my $zarafa = $user->prop('zarafa') || 'disabled';
+
     my $zarafa = $user->prop('Zarafa') || 'Disabled';
 
   
 
   
 
     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 [ $? -ne 0 ] ; then exit -1; else exit 99; fi;"
             if ($zarafa eq 'enabled');
+
             if ($zarafa eq 'Enabled');
}
  −
 
  −
enable zarafa for a user, OPTION 2
  −
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
  −
nano -w /etc/e-smith/templates-user-custom/.qmail/80Zarafa
  −
  −
{
  −
    my $zarafa = $user->prop('EmailForward') || 'local';
  −
  −
    return "| /usr/bin/zarafa-dagent -q $USERNAME"
  −
            if ($zarafa eq 'zarafa');
   
  }
 
  }
  

Navigation menu