El 4/2/19 a las 11:53, Luis Y. Ortega Pérez escribió: > En el caso de utilizar "imapsync" tengo que conocer la contraseña de cada > usuario (no lo realiza al igual que lo realiza la herrmienta "zmztozmig" , de > zimbra que teniendo la clave de un usuario administrador migra los > Mensajes,contactos,etc)?. > Gracias por su ayuda, voy a probar la herramienta de que me habla. > > ----- Mensaje original ----- > De: "ybritozamora" <ybritozam...@rubia.alinet.cu> > Para: gutl-l@listas.jovenclub.cu > Enviados: Lunes, 4 de Febrero 2019 11:44:10 > Asunto: [Gutl-l] Re: Migrar buzones de servidor de correo de Zentyal a > Iredmail > > Mano existe una herramienta sync o imapsync (debian) una vez instalado > creas un script puede ser este: > > > #!/bin/sh > # > # $Id: sync_loop_unix.sh,v 1.6 2015/11/04 18:23:04 gilles Exp gilles $ > > # Example for imapsync massive migration on Unix systems. > # See also http://imapsync.lamiral.info/FAQ.d/FAQ.Massive.txt > # > # Data is supposed to be in file.txt in the following format: > # host001_1;user001_1;password001_1;host001_2;user001_2;password001_2; > # ... > # Separator is character semi-colon ";" it can be changed by any > character changing IFS=';' > # in the while loop below. > # # Each line contains 6 columns, columns are parameter values for > # --host1 --user1 --password1 --host2 --user2 --password2 > # and a trailing empty fake column to avaid CR LF part going > # in the 6th parameter password2. Don't forget the last semicolon. > # > # You can add extra options after the variable "$@" > # Use character backslash \ at the end of each suplementary line, except > for the last one. > # You can also pass extra options via the parameters of this script since > # they will be in "$@" > > # The credentials filename "file.txt" used for the loop can be renamed > # by changing "file.txt" below. > > > echo Looping on account credentials found in file.txt > echo > > { while IFS=';' read h1 u1 p1 h2 u2 p2 fake > do > { echo "$h1" | egrep "^#" ; } > /dev/null && continue # this > skip commented lines in file.txt > echo "==== Starting imapsync from host1 $h1 user1 $u1 to host2 > $h2 user2 $u2 ====" > imapsync --authmech1 LOGIN --host1 "$h1" --ssl1 --port1 993 > --user1 "$u1" --password1 "$p1" \ > --authmech1 LOGIN --host2 "$h2" --ssl2 --port2 993 > --user2 "$u2" --password2 "$p2" \ > --noauthmd5 --nosyncacls --syncinternaldates > --allowsizemismatch "$@" > echo "==== Ended imapsync from host1 $h1 user1 $u1 to host2 $h2 > user2 $u2 ====" > echo > done > } < file.txt > > > > Una vez puesto esto creas un fichero con el nombre file.txt con la > siguiente sintaxy > > IP_Servidor_Viejo;direccion@correo;contaseña;IP_servidor_Nuevo;direccion@correo;contraseña; > > Ejemplo:#192.168.0.1;usua...@nat.cu;Assilem*123;10.0.0.2;usuari...@nat.cu;Assilem****; > > > Si tienes pocos usuarios lo puedes hacer. > > El 04/02/2019 a las 11:32, lui...@geconsvc.cu escribió: >> Hola comunidad actualmente tengo un servidor de correo en zentyal y deseo >> migrar los buzones de correo a iredmail(ya tengo mi nuevo servidor >> funcionando) lo que necesito es copiar hacia el la información de cada una >> de las cuentas (contactos,bandeja de entrada , enviados ,etc). En ambos >> casos utilizo como webmail a SOGo. >> _______________________________________________ >> Gutl-l mailing list -- gutl-l@listas.jovenclub.cu >> To unsubscribe send an email to gutl-l-le...@listas.jovenclub.cu > > _______________________________________________ > Gutl-l mailing list -- gutl-l@listas.jovenclub.cu > To unsubscribe send an email to gutl-l-le...@listas.jovenclub.cu > _______________________________________________ > Gutl-l mailing list -- gutl-l@listas.jovenclub.cu > To unsubscribe send an email to gutl-l-le...@listas.jovenclub.cu > Solo tienes que copiar los buzones maildir, de un servidor a otro, al directorio donde deben ser almacenados, ambos servidores, zentyal y iredmail, almacenan los correos o buzones en formato maildir, por lo que copiar estos de uno para el otro conservando los permisos tendrías para migrarlos. siempre y cuando los usuarios en uno u otro servidor sean los mismos. Salu2.
-- Arian Molina Aguilera Administrador de Redes y Servicios Telemáticos Linux Usuario Registrado #392892 Telfs: +53(7)696-7510 ext 236 email: linuxc...@teknik.io “Nunca consideres el estudio como una obligación, sino como una oportunidad para penetrar en el bello y maravilloso mundo del saber. Albert Einstein”
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Gutl-l mailing list -- gutl-l@listas.jovenclub.cu To unsubscribe send an email to gutl-l-le...@listas.jovenclub.cu