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]>
-----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”