Professional Documents
Culture Documents
Comandos Consola Zimbra
Comandos Consola Zimbra
################################################################################
###########################################
mysql Enters interactive command-line MySQL session with the mailbox mysql
zmaccts Lists the accounts and gives the status ofaccounts on the domain
zmapachectl Start, stop, reload, or check status of Apacheservice (for spell check)
zmbackup Performs full backups and incremental backupsfor a designated mail host.
zmcontrol (Start/Stop Service) Start, stop, status of the Zimbra servers. Also can use
to find the Zimbra version installed.
zmconvertctl Start, stop, the conversion server or find thestatus of the converted
attachments conversion/indexing
zmgsautil Create, delete the GAL sync account and initiate manual syncs.
zmitemdatafile Extracts and packs tgz files that ZCS uses forREST import/export
zmloggerctl Start, stop, reload, or find the status of the Zimbra logger service
zmmailboxmove (Move Mailbox) Used to move selected mailboxes from one Zimbra
server to another.
zmmboxsearch (Cross Mailbox Search) Search across mailboxes to find messages
andattachments
zmperditionctl Start, stop, or find the status of the perdition IMAP proxy
zmplayredo Performs data restore using backed upsnapshots taken periodically. Users
who use snapshots to backup and
restore their information from a standby site use this command.
zmproxyctl Start, stop, restart, and find the status of the IMAP proxy service
zmpython Ability to write Python scripts that access Zimbra Java libraries. It sets the
ZCS class path and starts the Jython interpreter.
zmrestore Performs full restores and incremental restoresfor a designated mail host
zmrestoreoffline (Offline Restore) Performs full restore when the Zimbra server (i.e., the
mailboxd process) is down
zmschedulebackup Schedule backups and add the command to your cron table
zmstat-chart-config Generate an .xml file with data included from the account setup
zmstat-chart-config Outputs an XML configuration that describes the current state of the
data gathered from zmstat-chart to generate charts on the
administration console
zmstatctl Start, stop, check status, or rotate logs of zmstat data collectors
zmswatchctl Start, stop, or find the status of the Swatchprocess, which is used in
monitoring
zmthrdump Initiate a thread dump and save the data to a filewith a timestamp
zmtlsctl Set the Web server mode to the communication protocol options: HTTP,
HTTPS or mixed
################################################################################
###########################################
Comandos de Servicio
=======================================================================
===================================
$> su - zimbra
Iniciar zmconfigd
$> zmconfigdctl start
Iniciar Mailbox (webmail, panel de administracion, servidores imap y pop3, servidores de filtros)
$> zmmailboxdctl start
Iniciar monitoreo
$> zmswatchctl start
Iniciar estadsticas
$> zmstatctl start
Iniciar proxy
#> zmproxyctl start
7.3.1.- zmcontrol
#######################################################################
Detener zimbra
$> zmcontrol stop
Iniciar zimbra
$> zmcontrol start
Reiniciar zimbra
$> zmcontrol restart
Consola Interactiva
$> zmprov
prov>
7.3.2.1.- Cuentas
############################################
Obtener listado de todas las cuentas del servidor (todos los dominios)
$> zmprov -l gaa
Esto transformar una cuenta de usuario normal en una cuenta de administrador (en este ejemplo,
futur-admin se convertir en un admin):
$> zmprov ma futur-admin@domain.com zimbraIsAdminAccount TRUE
<?php
//print_r($cos);
// Leyendo los archivos de Usuarios
$userfile=file("usuarios.txt");
// Recorriendo array de usuarios y creando las cuentas
foreach($userfile as $userline){
$userline=trim(chop($userline));
if(!empty($userline)){
$user = explode(",",$userline);
echo("ca $user[0] $user[1] displayName '$user[2]' zimbraCOSId ".$cos[$user[3]]."\n");
}
}
?>
---------------------------------------------------------------
Siempre que se modifica un valor de zimbra hacer un restart del servidor o del servicio
afectado
Buscar un mensaje
$> zmmailbox -z -m cuenta@dominio.com search -t message "prueba"
Ver contactos:
$> zmmailbox -z -m cuenta@dominio.com gact | less
Borrar un mensaje
$> zmmailbox -z -m cuenta@dominio.com dm 4543
4543 es el id del mensaje