我在两个服务器上都安装了两个centos、dovecot、sendmail和ssl,我想将邮件服务器从oldserver迁移到newserver,所以我在这两个服务器上都安装了imapsync。我遵循本教程,我使用我的服务器的ip地址,而不是主机名。
当我这么做时:
imapsync --oldserverip --user1 Me@example.com --passfile1 /etc/secret2 --newserverip --user2 me@example.com --passfile2 /etc/secret2我得到:
Temp directory is /tmp PID file is /tmp/imapsync.pid Modules version
list: Mail::IMAPClient 3.32 IO::Socket 1.29
IO::Socket::INET 1.29 IO::Socket::SSL ? Digest::MD5
2.36 Digest::HMAC_MD5 1.01 Term::ReadKey 2.30 Authen::NTLM 1.09
Info: turned ON syncinternaldates, will set the internal dates
(arrival dates) on host2 same as host1. Info: will try to use LOGIN
authentication on host1 Info: will try to use LOGIN authentication on
host2 Host1: imap server [old server ip] port [143] user
[me@example.com] Host2: imap server [new server ip] port [143] user
[me@example.com] Failure: can not open imap connection on
[old server ip] with user [me@example.com]: IO::Socket::INET:
connect: Connection refused如果使用ssl1选项并指定要使用的端口,则会得到以下错误:
dualvar仅适用于/usr/lib/perl5/site_perl/5.8.8/IO/Socket/SSL.pm第38行的XS版本的Scalar::Util,开始失败-编译在/usr/lib/perl5/site_perl/5.8.8/IO/Socket/SSL.pm第38行中止。编译失败,在/usr/bin/imapsync行3900处要求。
我认为像前面提到的这里那样缺少依赖关系。
但是我不知道如何安装它们,它们无法使用yum
发布于 2013-03-14 00:12:07
( a)对于“连接拒绝”问题,更改dovecot配置以允许默认端口143上的IMAP。
( b)有关"dualvar仅可用“的问题,请参见:https://alexcline.net/2012/02/02/message-dualvar-is-only-available-with-the-xs-version-of-scalarutil-error-in-centos-5/
从dovecot到dovecot rsync会更快,达到100级。
( c)对于模块依赖项,请阅读http://imapsync.lamiral.info/INSTALL,下面是与yum一起使用的包名。
yum install perl-Mail-IMAPClient # Mail::IMAPClient
yum install "perl(Term::ReadKey)" # Term::ReadKey
yum install "perl(Authen::NTLM)" # Authen::NTLM
yum install perl-Data-Uniqid # Data::Uniqid
yum install perl-File-Copy-Recursive # File::Copy::Recursive
yum install perl-IO-Tee # IO::Tee发布于 2013-03-14 03:09:32
对于缺少的依赖项,您需要使用第三方存储库,如再锻或埃佩尔。
https://serverfault.com/questions/487594
复制相似问题