首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >使用imapsync迁移imap

使用imapsync迁移imap
EN

Server Fault用户
提问于 2013-03-13 21:35:03
回答 2查看 3.5K关注 0票数 0

我在两个服务器上都安装了两个centos、dovecot、sendmail和ssl,我想将邮件服务器从oldserver迁移到newserver,所以我在这两个服务器上都安装了imapsync。我遵循本教程,我使用我的服务器的ip地址,而不是主机名。

当我这么做时:

代码语言:javascript
复制
imapsync --oldserverip --user1 Me@example.com --passfile1 /etc/secret2 --newserverip --user2 me@example.com --passfile2 /etc/secret2

我得到:

代码语言:javascript
复制
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处要求。

我认为像前面提到的这里那样缺少依赖关系。

  • 邮件-IMAPClient
  • Net-SSLeay
  • IO-Socket-SSL
  • 约会狂
  • 任期:ReadKey
  • 解析-记录
  • Net-IDN-编码
  • Unicode-Stringprep
  • 摘要-MD5

但是我不知道如何安装它们,它们无法使用yum

EN

回答 2

Server Fault用户

发布于 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一起使用的包名。

代码语言:javascript
复制
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
票数 2
EN

Server Fault用户

发布于 2013-03-14 03:09:32

对于缺少的依赖项,您需要使用第三方存储库,如再锻埃佩尔

票数 0
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/487594

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档