Resuelto el problema, la cosa estaba en el servidor mdaemon, en la
configuracion de las cuentas, tenía en acceso imap solo desde la lan,
ambos servidores de correo estan en la DMZ.
-----Original Message-----
From: "Roilan Martinez Acebal"
<esp.inf2@citar.cfg.minag.cu>
To: "Lista cubana de soporte técnico en Tecnologias
Libres" <gutl-l@listas.jovenclub.cu>
Date: Sat, 16 Jun 2018 08:49:35 -0600
Subject: [Gutl-l] Re: Migrar correo
bueno pues, ya logré instalar todos los módulos y compilar
el imapsync, pero nada, cuado ejecuto el script que cree no se
autentica.
root@mail:/home/imapsync-master# ./prueba1.sh
Here is imapsync 1.882 on host mail, a linux system with 0.2/19.6 free GiB
of RAM
with Perl 5.22.1 and Mail::IMAPClient 3.38
Transfer started at Sat Jun 16 08:46:16 2018
PID is 6709
Log file is
LOG_imapsync/2018_06_16_08_46_16_244_esp.inf2@citar.cfg.minag.cu_esp.inf2@citar.cfg.minag.cu.txt
( to change it, use --logfile path ; or use --nolog to turn off logging )
Load is 3.81 4.59 4.86 6/1105 on 1 cores
Current directory is /home/imapsync-master
Real user id is root (uid 0)
Effective user id is root (euid 0)
$RCSfile: imapsync,v $ $Revision: 1.882 $ $Date: 2018/05/05 21:10:43 $
Command line used:
/usr/bin/imapsync --host1 correo.citar.cfg.minag.cu --user1
esp.inf2@citar.cfg.minag.cu --password1 MASKED --host2
mail.citar.cfg.minag.cu --user2 esp.inf2@citar.cfg.minag.cu --password2
MASKED --nosslcheck
Temp directory is /tmp ( to change it use --tmpdir dirpath )
kill -QUIT 6709 # special behavior
kill -TERM 6709 # special behavior
kill -INT 6709 # special behavior
kill -USR1 6709 # special behavior
PID file is /tmp/imapsync.pid ( to change it use --pidfile filepath ; to
avoid it use --pidfile "" )
Writing my PID 6709 in /tmp/imapsync.pid
Modules version list:
Authen::NTLM 1.09
Compress::Zlib 2.069
Crypt::OpenSSL::RSA 0.28
Data::Uniqid 0.12
Digest::HMAC_MD5 1.01
Digest::HMAC_SHA1 1.03
Digest::MD5 2.54
File::Copy::Recursive 0.38
File::Spec
3.56
Getopt::Long 2.45
HTML::Entities 3.69
IO::Socket
1.38
IO::Socket::INET 1.35
IO::Socket::INET6 2.72
IO::Socket::SSL 2.024
IO::Tee
0.64
JSON
2.97001
JSON::WebToken 0.05
LWP
6.15
Mail::IMAPClient 3.38
Net::Ping
2.43
Net::SSLeay 1.72
Term::ReadKey 2.33
Test::MockObject 1.20161202
Time::HiRes
1.9726
URI::Escape 3.31
Unicode::String 2.10
( use --no-modulesversion to turn off printing this Perl modules list )
Info: will resync flags for already transferred messages. Use
--noresyncflags to not resync flags.
Info: turned ON syncinternaldates, will set the internal dates (arrival
dates) on host2 same as host1.
Host1: will try to use LOGIN authentication on host1
Host2: will try to use LOGIN authentication on host2
Host1: imap connection timeout is 120 seconds
Host2: imap connection timeout is 120 seconds
Host1: IMAP server [correo.citar.cfg.minag.cu] port [143] user
[esp.inf2@citar.cfg.minag.cu]
Host2: IMAP server [mail.citar.cfg.minag.cu] port [143] user
[esp.inf2@citar.cfg.minag.cu]
Host1: connecting and login on host1 [correo.citar.cfg.minag.cu] port
[143] with user [esp.inf2@citar.cfg.minag.cu]
Host1 IP address: 200.200.200.4
Host1 banner: * OK citar.cfg.minag.cu IMAP4rev1 MDaemon 13.0.0 ready
Host1 capability before authentication: IMAP4rev1 NAMESPACE AUTH=CRAM-MD5
AUTH=LOGIN AUTH=PLAIN IDLE COMPRESS=DEFLATE ACL UNSELECT UIDPLUS QUOTA
BINARY
Host1: correo.citar.cfg.minag.cu says it has CAPABILITY for AUTHENTICATE
LOGIN
Host1 failure: Error login on [correo.citar.cfg.minag.cu] with user
[esp.inf2@citar.cfg.minag.cu] auth [LOGIN]: 2 NO LOGIN failed
root@mail:/home/imapsync-master#
_____________________________________
Roilan Martinez Acebal
Admin de Redes Empresa Cítricos Arimao
-----Original Message-----
From: Arian Molina Aguilera <linuxcuba@teknik.io>
To: gutl-l@listas.jovenclub.cu
Date: Fri, 15 Jun 2018 20:17:52 -0400
Subject: [Gutl-l] Re: Migrar correo
El 14/06/18 a las 17:28, Roilan Martinez Acebal escribió:
> Bueno lo mio es probar con todo hasta que alguno pinche, al imapcopy
le
> especifico bien usuario y contraseña pero nada, me da error
de
> autenticacion.
> Siguiendo con la instalacion de imapsync, en la instalación
de los
> módulos CPANM, algunos módulos no se instalaron, da
error [1].
> Por lo que puedo entender de los errores no encuentra el camino
> I/usr/lib/x86_64-linux-gnu/perl/5.22/CORE. Sin embargo, esa ruta si
existe.
> Saludos
> [1]
> root@mail:/home/imapsync#
> root@mail:/home/imapsync# make install
> sh INSTALL.d/prerequisites_imapsync
> $SHELL says /bin/bash
> $0 gives INSTALL.d/prerequisites_imapsync
> ps -ef gives root 8152
8133 0 15:15 pts/3 00:00:00 sh
> INSTALL.d/prerequisites_imapsync
> Distributor ID: Ubuntu
> Description: Ubuntu 16.04.4 LTS
> Release: 16.04
> Codename: xenial
> Linux mail 4.15.17-1-pve #1 SMP PVE 4.15.17-9 (Wed, 9 May 2018
13:31:43
> +0200) x86_64 x86_64 x86_64 GNU/Linux
> Ok: Found Perl 5.22.1
> Ok: Found make GNU Make 4.1
> Ok: Found Perl module App::cpanminus
> Ok: Found Perl module Authen::NTLM
> Ok: Found Perl module CGI
> Ok: Found Perl module Compress::Zlib
> Failure: Not found Perl module Crypt::OpenSSL::RSA
> Ok: Found Perl module Data::Dumper
> Ok: Found Perl module Data::Uniqid
> Ok: Found Perl module Digest::HMAC
> Ok: Found Perl module Digest::HMAC_MD5
> Ok: Found Perl module Digest::MD5
> Ok: Found Perl module Dist::CheckConflicts
> Ok: Found Perl module Encode::Byte
> Ok: Found Perl module File::Copy::Recursive
> Ok: Found Perl module IO::Socket::INET
> Ok: Found Perl module IO::Socket::INET6
> Ok: Found Perl module IO::Socket::SSL
> Ok: Found Perl module IO::Tee
> Ok: Found Perl module JSON
> Ok: Found Perl module JSON::WebToken
> Failure: Not found Perl module JSON::WebToken::Crypt::RSA
> Ok: Found Perl module HTML::Entities
> Ok: Found Perl module LWP::UserAgent
> Ok: Found Perl module Mail::IMAPClient
> Ok: Found Perl module Module::Implementation
> Ok: Found Perl module Module::Runtime
> Ok: Found Perl module Module::ScanDeps
> Ok: Found Perl module Net::SSLeay
> Ok: Found Perl module Package::Stash
> Ok: Found Perl module Package::Stash::XS
> Ok: Found Perl module PAR::Packer
> Ok: Found Perl module Parse::RecDescent
> Ok: Found Perl module Pod::Usage
> Ok: Found Perl module Readonly
> Ok: Found Perl module Regexp::Common
> Ok: Found Perl module Sys::MemInfo
> Ok: Found Perl module Term::ReadKey
> Ok: Found Perl module Test::Fatal
> Ok: Found Perl module Test::Mock::Guard
> Ok: Found Perl module Test::MockObject
> Ok: Found Perl module Test::More
> Ok: Found Perl module Test::Pod
> Ok: Found Perl module Test::Requires
> Ok: Found Perl module Test::NoWarnings
> Ok: Found Perl module Test::Deep
> Ok: Found Perl module Test::Warn
> Ok: Found Perl module Try::Tiny
> Ok: Found Perl module Unicode::String
> Ok: Found Perl module URI::Escape
>
> What you have to do before using imapsync:
> Install Perl module Crypt::OpenSSL::RSA
> Install Perl module JSON::WebToken::Crypt::RSA
> Here is a cpanm command to install missing Perl modules:
> cpanm "Crypt::OpenSSL::RSA JSON::WebToken::Crypt::RSA"
> Makefile:99: recipe for target 'testp' failed
> make: *** [testp] Error 1
> root@mail:/home/imapsync# perl -MCPAN -e shell
> Terminal does not support AddHistory.
>
> cpan shell -- CPAN exploration and modules installation (v2.11)
> Enter 'h' for help.
>
> cpan[1]> install Crypt::OpenSSL::RSA
JSON::WebToken::Crypt::RSA
> Reading '/root/.cpan/Metadata'
> Database was generated on Thu, 14 Jun 2018 14:17:03 GMT
> Running install for module 'Crypt::OpenSSL::RSA'
> Checksum for
>
/root/.cpan/sources/authors/id/T/TO/TODDR/Crypt-OpenSSL-RSA-0.30.tar.gz
ok
> Scanning cache /root/.cpan/build for sizes
>
............................................................................DONE
> 'YAML' not installed, will not store persistent state
> Configuring T/TO/TODDR/Crypt-OpenSSL-RSA-0.30.tar.gz with
Makefile.PL
> Checking if your kit is complete...
> Looks good
> Warning: prerequisite Crypt::OpenSSL::Random 0 not found.
> Generating a Unix-style Makefile
> Writing Makefile for Crypt::OpenSSL::RSA
> Writing MYMETA.yml and MYMETA.json
> TODDR/Crypt-OpenSSL-RSA-0.30.tar.gz
> /usr/bin/perl Makefile.PL INSTALLDIRS=site -- OK
> Running make for T/TO/TODDR/Crypt-OpenSSL-RSA-0.30.tar.gz
> ---- Unsatisfied dependencies detected during ----
> ----
TODDR/Crypt-OpenSSL-RSA-0.30.tar.gz ----
> Crypt::OpenSSL::Random [requires]
> Crypt::OpenSSL::Bignum [requires,optional]
> Running install for module 'Crypt::OpenSSL::Random'
> Checksum for
>
/root/.cpan/sources/authors/id/R/RU/RURBAN/Crypt-OpenSSL-Random-0.15.tar.gz
> ok
> Configuring R/RU/RURBAN/Crypt-OpenSSL-Random-0.15.tar.gz with
Makefile.PL
> Checking if your kit is complete...
> Looks good
> Generating a Unix-style Makefile
> Writing Makefile for Crypt::OpenSSL::Random
> Writing MYMETA.yml and MYMETA.json
> RURBAN/Crypt-OpenSSL-Random-0.15.tar.gz
> /usr/bin/perl Makefile.PL INSTALLDIRS=site -- OK
> Running make for R/RU/RURBAN/Crypt-OpenSSL-Random-0.15.tar.gz
> cp Random.pm blib/lib/Crypt/OpenSSL/Random.pm
> Running Mkbootstrap for Crypt::OpenSSL::Random ()
> chmod 644 "Random.bs"
> "/usr/bin/perl"
"/usr/share/perl/5.22/ExtUtils/xsubpp" -typemap
> "/usr/share/perl/5.22/ExtUtils/typemap" Random.xs
> Random.xsc && mv
> Random.xsc Random.c
> x86_64-linux-gnu-gcc -c -D_REENTRANT -D_GNU_SOURCE
-DDEBIAN -fwrapv
> -fno-strict-aliasing -pipe -I/usr/local/include
-D_LARGEFILE_SOURCE
> -D_FILE_OFFSET_BITS=64 -O2 -g
-DVERSION=\"0.15\" -DXS_VERSION=\"0.15\"
> -fPIC
"-I/usr/lib/x86_64-linux-gnu/perl/5.22/CORE"
Random.c
> Random.xs:5:26: fatal error: openssl/rand.h: No such file or
directory
> compilation terminated.
> Makefile:364: recipe for target 'Random.o' failed
> make: *** [Random.o] Error 1
> RURBAN/Crypt-OpenSSL-Random-0.15.tar.gz
> /usr/bin/make -- NOT OK
> TODDR/Crypt-OpenSSL-RSA-0.30.tar.gz
> Has already been unwrapped into directory
> /root/.cpan/build/Crypt-OpenSSL-RSA-0.30-IinX0Q
> TODDR/Crypt-OpenSSL-RSA-0.30.tar.gz
> Has already been prepared
> Running make for T/TO/TODDR/Crypt-OpenSSL-RSA-0.30.tar.gz
> Warning: Prerequisite 'Crypt::OpenSSL::Random => 0'
for
> 'TODDR/Crypt-OpenSSL-RSA-0.30.tar.gz' failed when
processing
> 'RURBAN/Crypt-OpenSSL-Random-0.15.tar.gz' with 'make
=> NO'. Continuing,
> but chances to succeed are limited.
> ---- Unsatisfied dependencies detected during ----
> ----
TODDR/Crypt-OpenSSL-RSA-0.30.tar.gz ----
> Crypt::OpenSSL::Bignum [requires,optional]
> cp RSA.pm blib/lib/Crypt/OpenSSL/RSA.pm
> AutoSplitting blib/lib/Crypt/OpenSSL/RSA.pm
> (blib/lib/auto/Crypt/OpenSSL/RSA)
> Running Mkbootstrap for Crypt::OpenSSL::RSA ()
> chmod 644 "RSA.bs"
> "/usr/bin/perl"
"/usr/share/perl/5.22/ExtUtils/xsubpp" -typemap
> "/usr/share/perl/5.22/ExtUtils/typemap" -typemap
"typemap" RSA.xs >
> RSA.xsc && mv RSA.xsc RSA.c
> x86_64-linux-gnu-gcc -c -D_REENTRANT -D_GNU_SOURCE
-DDEBIAN -fwrapv
> -fno-strict-aliasing -pipe -I/usr/local/include
-D_LARGEFILE_SOURCE
> -D_FILE_OFFSET_BITS=64 -O2 -g
-DVERSION=\"0.30\" -DXS_VERSION=\"0.30\"
> -fPIC "-I/usr/lib/x86_64-linux-gnu/perl/5.22/CORE"
-DPERL5
> -DOPENSSL_NO_KRB5 RSA.c
> RSA.xs:5:25: fatal error: openssl/bio.h: No such file or
directory
> compilation terminated.
> Makefile:349: recipe for target 'RSA.o' failed
> make: *** [RSA.o] Error 1
> TODDR/Crypt-OpenSSL-RSA-0.30.tar.gz
> /usr/bin/make -- NOT OK
> Running install for module 'Crypt::OpenSSL::Bignum'
> Checksum for
>
/root/.cpan/sources/authors/id/K/KM/KMX/Crypt-OpenSSL-Bignum-0.09.tar.gz
ok
> Configuring K/KM/KMX/Crypt-OpenSSL-Bignum-0.09.tar.gz with
Makefile.PL
> Checking if your kit is complete...
> Looks good
> Generating a Unix-style Makefile
> Writing Makefile for Crypt::OpenSSL::Bignum
> Writing MYMETA.yml and MYMETA.json
> KMX/Crypt-OpenSSL-Bignum-0.09.tar.gz
> /usr/bin/perl Makefile.PL INSTALLDIRS=site -- OK
> Running make for K/KM/KMX/Crypt-OpenSSL-Bignum-0.09.tar.gz
> cp Bignum/CTX.pm blib/lib/Crypt/OpenSSL/Bignum/CTX.pm
> cp Bignum.pm blib/lib/Crypt/OpenSSL/Bignum.pm
> Running Mkbootstrap for Crypt::OpenSSL::Bignum ()
> chmod 644 "Bignum.bs"
> "/usr/bin/perl"
"/usr/share/perl/5.22/ExtUtils/xsubpp" -typemap
> "/usr/share/perl/5.22/ExtUtils/typemap" -typemap
"typemap" Bignum.xs >
> Bignum.xsc && mv Bignum.xsc Bignum.c
> Please specify prototyping behavior for Bignum.xs (see perlxs
manual)
> x86_64-linux-gnu-gcc -c -D_REENTRANT -D_GNU_SOURCE
-DDEBIAN -fwrapv
> -fno-strict-aliasing -pipe -I/usr/local/include
-D_LARGEFILE_SOURCE
> -D_FILE_OFFSET_BITS=64 -O2 -g
-DVERSION=\"0.09\" -DXS_VERSION=\"0.09\"
> -fPIC "-I/usr/lib/x86_64-linux-gnu/perl/5.22/CORE"
-DPERL5
> -DOPENSSL_NO_KRB5 Bignum.c
> Bignum.xs:5:25: fatal error: openssl/err.h: No such file or
directory
> compilation terminated.
> Makefile:349: recipe for target 'Bignum.o' failed
> make: *** [Bignum.o] Error 1
> KMX/Crypt-OpenSSL-Bignum-0.09.tar.gz
> /usr/bin/make -- NOT OK
> Running install for module 'Crypt::OpenSSL::Bignum'
> KMX/Crypt-OpenSSL-Bignum-0.09.tar.gz
> Has already been unwrapped into directory
> /root/.cpan/build/Crypt-OpenSSL-Bignum-0.09-2BhSUf
> KMX/Crypt-OpenSSL-Bignum-0.09.tar.gz
> Has already been prepared
> KMX/Crypt-OpenSSL-Bignum-0.09.tar.gz
> Could not make: Unknown error
>
> JSON::WebToken::Crypt::RSA is up to date (undef).
> Failed during this command:
>
RURBAN/Crypt-OpenSSL-Random-0.15.tar.gz
: make NO
>
TODDR/Crypt-OpenSSL-RSA-0.30.tar.gz
: make NO
> (optional) KMX/Crypt-OpenSSL-Bignum-0.09.tar.gz: make NO
>
> cpan[2]>
> _____________________________________
> Roilan Martinez Acebal
> Admin de Redes Empresa Cítricos Arimao
>
> -----Original Message-----
> From: Arian Molina Aguilera
<linuxcuba@teknik.io>
> To: gutl-l@listas.jovenclub.cu
> Date: Thu, 14 Jun 2018 15:11:48 -0400
> Subject: [Gutl-l] Re: Migrar correo
>
> El 14/06/18 a las 12:43, Pablo Vargas Hall
escribió:
> > Usa imapcopy es más sencillo, lo que no
pude hacer es que copiara de
> > otras carpetas excepto de las bandeja de entrada
y de los enviado así
> > que debes decirles a tus usuarios que copien
todos los correos para
> > bandeja de entrada.
> >
> > El imapsync necesita de un servidor en internet
que pueda acceder a
> > todas cuentas y además cobra por el
servicio. El imapcopy viene en los
> > repos por lo menos en el debian esta incluido.
> >
> >
> >
> > ##############
> >
> > # Sourceserver
> >
> > ##############
> >
> > SourceServer 192.168.2.7
> >
> > SourcePort 143
> >
> >
> >
> > ###################
> >
> > # Destinationserver
> >
> > ###################
> >
> > DestServer localhost
> >
> > DestPort 143
> >
> >
> >
> > #############################
> >
> > # List of users and passwords
> >
> > #############################
> >
> > #
SourceUser SourcePassword DestinationUser
> DestinationPassword
> >
> > #Copy "admon@
example.com" "
pass del servidor de origen
> > "
"admon@example.com"
" pass del servidor de destino "
> >
> > Copy "ti.i@
example.com" "
pass del servidor de
> origen"
> > "ti.i@ example.com
"
"pass del servidor de destino"
> >
> >> Buenas tardes
> >> Estoy intentando compilar la aplicacion
impasync para migrar el
> contenido de
> >> los buzones de correo de MDAEMON para
ZIMBRA
> >> A la hora de compilarlo me da el error
[1], ejecuté el comando
> que aparece
> >> al final de [1] y me da el error [2].
Alguna ayuda al respecto.
> Saludos y
> >> gracias de antemano
> >>
> >> [1]
> >> root@mail:/home/imapsync# make install
> >> sh INSTALL.d/prerequisites_imapsync
> >> $SHELL says /bin/bash
> >> $0 gives
INSTALL.d/prerequisites_imapsync
> >> ps -ef gives root
24080 24061 0 15:08 pts/3 00:00:00 sh
> >> INSTALL.d/prerequisites_imapsync
> >> Distributor ID: Ubuntu
> >> Description: Ubuntu 16.04.4
LTS
> >>
Release: 16.04
> >> Codename:
xenial
> >> Linux mail 4.15.17-1-pve #1 SMP PVE 4.15.17-9
(Wed, 9 May 2018
> 13:31:43
> >> +0200) x86_64 x86_64 x86_64 GNU/Linux
> >> Ok: Found Perl 5.22.1
> >> Ok: Found make GNU Make 4.1
> >> Ok: Found Perl module App::cpanminus
> >> Ok: Found Perl module Authen::NTLM
> >> Failure: Not found Perl module CGI
> >> Ok: Found Perl module Compress::Zlib
> >> Failure: Not found Perl module
Crypt::OpenSSL::RSA
> >> Ok: Found Perl module Data::Dumper
> >> Failure: Not found Perl module
Data::Uniqid
> >> Ok: Found Perl module Digest::HMAC
> >> Ok: Found Perl module Digest::HMAC_MD5
> >> Ok: Found Perl module Digest::MD5
> >> Failure: Not found Perl module
Dist::CheckConflicts
> >> Ok: Found Perl module
> >
> >
> >
> >
_______________________________________________
> > Gutl-l mailing list --
gutl-l@listas.jovenclub.cu
> > To unsubscribe send an email to
gutl-l-leave@listas.jovenclub.cu
> >
> imapsync funciona perfectamente. solo tienes que
instalarlo
> correctamente, eso que dices que necesitas que el
server sea accesible
> de internet no es así, solamente si vas a usar
la herramienta web de
> imapsync publicado por el autor de la misma.
>
> --
> Arian Molina Aguilera
> Administrador de Redes y Servicios
Telemáticos
> Linux Usuario Registrado #392892
> Telfs: +53(7)696-7510 ext 236
> jabber: linuxcuba@teknik.io
> Brascuba Cigarrillos S.A. La Habana. Cuba.
> “Nunca consideres el estudio como una
obligación,
> sino como una oportunidad para penetrar en el bello
> y maravilloso mundo del saber. Albert
Einstein”
>
>
>
> Dominio de Empresa Cítricos Arimao.
> CITRISUR
> el privilegio del sabor
>
>
> _______________________________________________
> Gutl-l mailing list -- gutl-l@listas.jovenclub.cu
> To unsubscribe send an email to gutl-l-leave@listas.jovenclub.cu
>
Vuelve a instalar esos módulos son requeridos es necesarios que
los
tengas instalado para que funcione todo bien y autentique
correctamente.
--
Arian Molina Aguilera
Administrador de Redes y Servicios Telemáticos
Linux Usuario Registrado #392892
Telfs: +53(7)696-7510 ext 236
jabber: linuxcuba@teknik.io
Brascuba Cigarrillos S.A. La Habana. Cuba.
“Nunca consideres el estudio como una obligación,
sino como una oportunidad para penetrar en el bello
y maravilloso mundo del saber. Albert Einstein”
Dominio de Empresa Cítricos Arimao.
CITRISUR
el privilegio del sabor
Dominio de Empresa Cítricos Arimao.
CITRISUR
el privilegio del sabor