问题从Dovecot迁移到Zimbra

Dovecot提供了一个主login(一个主用户名和密码,可以login到所有用户帐户)。

我已经按照http://wiki1.dovecot.org/Authentication/MasterUsers安装了Dovecot

这是我的问题。

我能成功validation的唯一方法是如果我尝试通过telnetvalidation两次。

$ telnet mail01.server.com 143 Trying 10.10.10.10... Connected to mail01.server.com. Escape character is '^]'. * OK Dovecot ready. 1 login [email protected]*master my_password 1 NO Authentication failed. 1 login [email protected]*master my_password 1 OK Logged in. 

imapsync(我需要用来迁移通过电子邮件从达夫科特到Zimbra的工具)将无法正常工作。

  $ imapsync --nosyncacls --syncinternaldates --host1 mail01.server.com --user1 [email protected]*master --authmech1 PLAIN --password1 my_password --host2 mail02.server.com --user2 [email protected] --authmech2 PLAIN --ssl2 --password2 user2_password $RCSfile: imapsync,v $ $Revision: 1.286 $ $Date: 2009/07/24 15:53:04 $ Here is a [linux] system (Linux mylinuxbox 2.6.32-30-generic #59-Ubuntu SMP Tue Mar 1 21:30:21 UTC 2011 i686) with perl 5.10.1 Mail::IMAPClient 3.21 IO::Socket 1.31 IO::Socket::SSL Digest::MD5 2.39 Digest::HMAC_MD5 Term::ReadKey 2.30 Date::Manip and the module Mail::IMAPClient version used here is 3.21 Command line used: /usr/bin/imapsync --nosyncacls --syncinternaldates --host1 mail01.server.com --user1 user@server*master --authmech1 PLAIN --password1 MASKED --host2 mail02.server.com --user2 [email protected] --authmech2 PLAIN --ssl2 --password2 MASKED Turned ON syncinternaldates, will set the internal dates (arrival dates) on host2 same as host1. TimeZone:[america/new_york] Will try to use PLAIN authentication on host1 Will try to use PLAIN authentication on host2 From imap server [mail01.server.com] port [143] user [[email protected]*master] To imap server [mail02.server.com] port [993] user [[email protected]] Banner: * OK Dovecot ready. Host mail01.server.com says it has CAPABILITY for AUTHENTICATE PLAIN Error login: [mail01.server.com] with user [user@server*master] auth [PLAIN]: 2 NO Authentication failed. Error login: [mail01.server.com] with user [user@server*master] auth [PLAIN]: 2 NO Authentication failed. 

如果我尝试没有主用户它的作品。 请帮忙。

Jazzy Pierre解释的imapsync --authuser1选项可能会解决您的问题。 试试。

(我写了imapsync )。

我已经成功地使用imapsync使用主密码从dovecot迁移到zimbra。 我没有将主用户分隔符从*更改为+,因为*会导致shell将其作为通配符进行处理。

在dovecot.conf中find这一行,并将其更改为:

 auth_master_user_separator = + 

这是我通常使用的命令:

 /usr/bin/imapsync \ --host1 $DOVECOTHOST --user1 "${USER}+mail-admin" --passfile1 /root/.dovecot-master \ --host2 $ZIMBRAHOST --user2 $ZMUSER --passfile2 $ZMPASS \ --authmech1 PLAIN --authmech2 PLAIN \ --exclude Trash --subscribe --syncinternaldates 

希望有所帮助。

你看过Zimbra wiki上的邮件迁移页面吗? 有直接从mbox或maildir邮件商店import到Zimbra的脚本。 该策略可能比使用imapsync更快,更简单。

如果您确实需要使用imapsync ,那么我会介绍有关Dovecot身份validation日志的注释。 主密码validation显然有问题。 你使用什么版本的鸽子? 你可以发布你的鸽子configuration的相关部分吗?