ZimbraAdminTips5

Zimbra 5.x Administration Tips #

Activar IM en zimbra (Mensajería instantánea) #

http://wiki.zimbra.com/index.php?title=Enable_IM_on_ZCS_5.0
$ zmprov -l -v mcf zimbraXMPPEnabled TRUE
$ zmprov -v mc default zimbraFeatureIMEnabled TRUE
$ zmprov -v mc default zimbraFeatureInstantNotify TRUE
$ zmcontrol stop
$ zmcontrol start

Firmas de más de 1024 caracteres #

http://www.zimbra.com/forums/users/18875-solved-signature-size-limit.html
$ zmprov mc default zimbraMailSignatureMaxLength 3072

Adjuntos de más de 10Mb #

Para incrementar hasta 50Mb:
$ zmprov mcf zimbraFileUploadMaxSize 50000000

y reiniciar el proceso mailboxd.

http://www.zimbra.com/forums/developers/1461-max-imap-message-size.html

Desde Zimbra 5.0.6:

$ zmprov mcf zimbraMtaMaxMessageSize 50000000

Importar y exportar buzones #

http://www.zimbrablog.com/blog/archives/2008/09/zcs-to-zcs-migrations.html

En ZCS 5.0.9+ para exportar un buzón:

$ /opt/zimbra/bin/zmmailbox -z -m bender@planetexpress.zylk.net \
 getRestURL “//?fmt=tgz” > /tmp/account.tgz

Para importarlo en otro zimbra (habría que crear la cuenta correspondiente antes):

$ /opt/zimbra/bin/zmmailbox -z -m bender@planetexpress.zylk.net \
 postRestURL “//?fmt=tgz&resolve=reset” /tmp/account.tgz

El parámetro resolve= tiene varias opciones (skip,modify,reset,replace).

Si no eres admin a través de la URL:

[http://planetexpress.zylk.net/home/bender?fmt=zip&query=is:anywhere]

o bien en tgz:

[http://planetexpress.zylk.net/home/bender/?fmt=tgz]

Deshabilitar un servicio del COS #

En zimbra 5.0.9 hay un bug relacionado con los shortcuts de teclado (no funciona la tecla suprimir...). Para desactivar esto del COS de defecto (default):
$ zmprov mc default zimbraPrefUseKeyboardShortcuts FALSE

Habilitar el corrector ortográfico en español #

http://wiki.zimbra.com/index.php?title=Adding_new_dictionaries_to_aspell

Primero hay que compilar el diccionario de castellano de aspell.

$ wget ftp://ftp.gnu.org/gnu/aspell/dict/es/aspell6-es-1.9a-1.tar.bz2 [^]
$ tar jvxf aspell6-es-1.9a-1.tar.bz2
$ cd aspell6-es-1.9a-1
$ PATH=/opt/zimbra/aspell-0.60.6/bin:$PATH
$ ./configure
$ make
$ make install

Posteriormente hay hacer una serie de cambios en aspell.php

$ cd /opt/zimbra/httpd/htdocs/
$ cp aspell.php aspell.php.old
$ vi aspell.php
<?php
#
# ***** BEGIN LICENSE BLOCK *****
# Zimbra Collaboration Suite Server
# Copyright (C) 2005, 2006, 2007 Zimbra, Inc.
# 
# The contents of this file are subject to the Yahoo! Public License
# Version 1.0 ("License"); you may not use this file except in
# compliance with the License.  You may obtain a copy of the License at
# [http://www.zimbra.com/license.] [^]
# 
# Software distributed under the License is distributed on an "AS IS"
# basis, WITHOUT WARRANTY OF ANY KIND, either express or implied.
# ***** END LICENSE BLOCK *****
#

require_once("Zimbra/ServerResponse.php");

$filename = "";
$text = "";
$locale = "es_ES";

// Convert all text into 8-bit dictionary locale
$text=iconv("UTF-8", "iso-8859-1", $text);

if (isset($_FILES["text"])) {
    $text = file_get_contents($_FILES["text"]);
} else if (isset($_REQUEST["text"])){
    $text = $_REQUEST["text"];
}

if (get_magic_quotes_gpc()) {
    $text = stripslashes($text);
}

if ($text != NULL) {
    setlocale(LC_ALL, $locale);

    // Get rid of double-dashes, since we ignore dashes
    // when splitting words
    $text = preg_replace('/--+/', ' ', $text);

        // Convert to ISO-8859-1
        $text = iconv("UTF-8", "iso-8859-1", $text);

    // Split on anything that's not a word character, quote or dash
    // $words = preg_split('/[^\w\xc0-\xfd-\']+/', $text);
    // Do not split visible characters in the range of 0xA0-0xFF
      $words = preg_split('/[^\w\'\xa0-\xff-]+/', $text);

    // Load dictionary
    $dictionary = pspell_new($locale);
    if ($dictionary == 0) {
        $msg = "Unable to open Aspell dictionary for locale " . $locale;
        error_log($msg);
        $response = new ServerResponse();
        $response->addParameter("error", $msg);
        $response->writeContent();
        return;
    }

    $skip = FALSE;
    $checked_words = array();
    $misspelled = "";

    foreach ($words as $word) {
        if ($skip) {
            $skip = FALSE;
            continue;
        }

        // Ignore hyphenations
        if (preg_match('/-$/', $word)) {
            // Skip the next word too
            $skip = TRUE;
            continue;
        }

        // Skip numbers
        if (preg_match('/[0-9\-]+/', $word)) {
            continue;
        }
        
        // Skip duplicates
        if (array_key_exists($word, $checked_words)) {
            continue;
        } else {
            $checked_words[$word] = 1;
        }

        // Check spelling
        if (!pspell_check($dictionary, $word)) {
        $suggestions = implode(",", pspell_suggest($dictionary, $word));
    $misspelled .= "$word:$suggestions\n";
    }
    }

    // Convert to dictionary locale
    $suggestions=iconv("iso-8859-1","UTF-8",$suggestions);
    $misspelled = iconv("iso-8859-1","UTF-8",$misspelled);

    $response = new ServerResponse();
    $response->addParameter("misspelled", $misspelled);
    $response->writeContent();
} else {
?>

<html>
 <head>
  <title>Spell Checker</title>
 </head>
 <body>

<form action="aspell.php" method="post" enctype="multipart/form-data">
    

Type in some words to spell check:

    <textarea NAME="text" ROWS="10" COLS="80"></textarea>

    

<input type="submit" />

</form>

</body>
</html>

<?php
    }
?>

Y luego reiniciar el corrector ortográfico.

$ su - zimbra
$ zmspellctl stop
$ zmspellctl start

Usar Zimbra Notify #

http://wiki.zimbra.com/index.php?title=ZimbraCheck

Primero te bajas el zip de la galería de extras de zimbra.com e instalamos las dependencias del script de perl zimbranotify.

En Ubuntu 8.04,

$ sudo aptitude install libgtk2-trayicon-perl libgtk2-traymanager-perl
$ sudo aptitude install libxml-simple-perl
$ sudo aptitude install libcrypt-ssleay-perl
$ sudo aptitude install libsexymm2
$ perl zimbranotify

que posteriormente tienes que incluir en tu inicio de sesión.

Promedio (0 Votos)
Comentarios