<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
Hello,<br><br>I've installed "cyrus-imapd-2.4.13-1.el6.x86_64" and i'm trying to migrate a mailbox from a remote cyrus server to a new one. The steps I follow are:<br><br>remote_cyrus# ctl_mboxlist -d &gt; file<br>local_cyrus# clt_mboxlist -u &lt; file<br>local_cyrus# reconstruct -rxf user.test_user<br>&nbsp;&nbsp; &nbsp;user.test_user: failed to read index header<br>&nbsp;&nbsp; &nbsp;user.test_user: Invalid mailbox name (null)<br>&nbsp;&nbsp; &nbsp;user.test_user.Borrador: failed to read index header<br>&nbsp;&nbsp; &nbsp;user.test_user.Borrador: Invalid mailbox name (null)<br>&nbsp;&nbsp; &nbsp;user.test_user.Elementos eliminados: failed to read index header<br>&nbsp;&nbsp; &nbsp;user.test_user.Elementos eliminados: Invalid mailbox name (null)<br>&nbsp;&nbsp; &nbsp;user.test_user.Elementos enviados: failed to read index header<br>&nbsp;&nbsp; &nbsp;user.test_user.Elementos enviados: Invalid mailbox name (null)<br>&nbsp;&nbsp; &nbsp;user.test_user.SPAM: failed to read index header<br>&nbsp;&nbsp; &nbsp;user.test_user.SPAM: Invalid mailbox name (null)<br><br><br>Also the log file shows:<br>local_cyrus# cat /var/log/maillog<br>&nbsp;&nbsp;&nbsp; ...<br>&nbsp;&nbsp;&nbsp; ...<br>&nbsp;&nbsp;&nbsp; Feb 10 13:48:30 cyrus1-test reconstruct[21520]: create new mailbox user.test_user<br>&nbsp;&nbsp;&nbsp; Feb 10 13:48:30 cyrus1-test reconstruct[21520]: failed to read index header for user.test_user<br>&nbsp;&nbsp;&nbsp; Feb 10 13:48:30 cyrus1-test reconstruct[21520]: IOERROR: Mailbox name too long (user.test_user)<br>&nbsp;&nbsp;&nbsp; Feb 10 13:48:30 cyrus1-test reconstruct[21520]: reconstructing user.test_user.Borrador<br>&nbsp;&nbsp;&nbsp; Feb 10 13:48:30 cyrus1-test reconstruct[21520]: IOERROR: opening index user.test_user.Borrador: Invalid mailbox name<br>&nbsp;&nbsp;&nbsp; Feb 10 13:48:30 cyrus1-test reconstruct[21520]: create new mailbox user.test_user.Borrador<br>&nbsp;&nbsp;&nbsp; Feb 10 13:48:30 cyrus1-test reconstruct[21520]: failed to read index header for user.test_user.Borrador<br>&nbsp;&nbsp;&nbsp; Feb 10 13:48:30 cyrus1-test reconstruct[21520]: IOERROR: Mailbox name too long (user.test_user.Borrador)<br>&nbsp;&nbsp;&nbsp; Feb 10 13:48:30 cyrus1-test reconstruct[21520]: reconstructing user.test_user.Elementos eliminados<br>&nbsp;&nbsp;&nbsp; Feb 10 13:48:30 cyrus1-test reconstruct[21520]: IOERROR: opening index user.test_user.Elementos eliminados: Invalid mailbox name<br>&nbsp;&nbsp;&nbsp; Feb 10 13:48:30 cyrus1-test reconstruct[21520]: create new mailbox user.test_user.Elementos eliminados<br>&nbsp;&nbsp;&nbsp; Feb 10 13:48:30 cyrus1-test reconstruct[21520]: failed to read index header for user.test_user.Elementos eliminados<br>&nbsp;&nbsp;&nbsp; Feb 10 13:48:30 cyrus1-test reconstruct[21520]: IOERROR: Mailbox name too long (user.test_user.Elementos eliminados)<br>&nbsp;&nbsp;&nbsp; Feb 10 13:48:30 cyrus1-test reconstruct[21520]: reconstructing user.test_user.Elementos enviados<br>&nbsp;&nbsp;&nbsp; Feb 10 13:48:30 cyrus1-test reconstruct[21520]: IOERROR: opening index user.test_user.Elementos enviados: Invalid mailbox name<br>&nbsp;&nbsp;&nbsp; Feb 10 13:48:30 cyrus1-test reconstruct[21520]: create new mailbox user.test_user.Elementos enviados<br>&nbsp;&nbsp;&nbsp; Feb 10 13:48:30 cyrus1-test reconstruct[21520]: failed to read index header for user.test_user.Elementos enviados<br>&nbsp;&nbsp;&nbsp; Feb 10 13:48:30 cyrus1-test reconstruct[21520]: IOERROR: Mailbox name too long (user.test_user.Elementos enviados)<br>&nbsp;&nbsp;&nbsp; Feb 10 13:48:30 cyrus1-test reconstruct[21520]: reconstructing user.test_user.SPAM<br>&nbsp;&nbsp;&nbsp; Feb 10 13:48:30 cyrus1-test reconstruct[21520]: IOERROR: opening index user.test_user.SPAM: Invalid mailbox name<br>&nbsp;&nbsp;&nbsp; Feb 10 13:48:30 cyrus1-test reconstruct[21520]: create new mailbox user.test_user.SPAM<br>&nbsp;&nbsp;&nbsp; Feb 10 13:48:30 cyrus1-test reconstruct[21520]: failed to read index header for user.test_user.SPAM<br>&nbsp;&nbsp;&nbsp; Feb 10 13:48:30 cyrus1-test reconstruct[21520]: IOERROR: Mailbox name too long (user.test_user.SPAM)<br>&nbsp;&nbsp;&nbsp; ...<br>&nbsp;&nbsp;&nbsp; ...<br><br>It looks like I'm not able to reconstruct the mailbox due to "name too long". <br><br>Is it possible to avoid this problem without modify the mbox name? as I have more that 10.000 account and all of them have the same type of folders with spaces and "long names", even some of them have longer name folders.<br><br>Anyway, I think in some cases the name is not too long (f.e. user.test_user) but I get the same error, I'm guessing that maybe the problem is not there, but I'm not able to find it.<br><br>I post also my config files:<br>=========================imapd.conf=========================<br>&nbsp;&nbsp; &nbsp;admins: cyrus<br>&nbsp;&nbsp; &nbsp;allowplaintext: yes<br>&nbsp;&nbsp; &nbsp;allowapop: no<br>&nbsp;&nbsp; &nbsp;configdirectory: /var/lib/imap<br>&nbsp;&nbsp; &nbsp;partition-default: /var/spool/imap<br>&nbsp;&nbsp; &nbsp;imapidresponse: no<br>&nbsp;&nbsp; &nbsp;sasl_pwcheck_method: saslauthd<br>&nbsp;&nbsp; &nbsp;sasl_mech_list: PLAIN LOGIN<br>&nbsp;&nbsp; &nbsp;sievedir: /var/lib/imap/sieve<br>&nbsp;&nbsp; &nbsp;altnamespace: yes<br>&nbsp;&nbsp; &nbsp;hashimapspool: true<br>&nbsp;&nbsp; &nbsp;unixhierarchysep: no<br>&nbsp;&nbsp; &nbsp;lmtp_downcase_rcpt: no<br>&nbsp;&nbsp; &nbsp;allowanonymouslogin: no<br>&nbsp;&nbsp; &nbsp;popminpoll: 1<br>&nbsp;&nbsp; &nbsp;autocreatequota: 0<br>&nbsp;&nbsp; &nbsp;umask: 027<br>&nbsp;&nbsp; &nbsp;sieveusehomedir: false<br>&nbsp;&nbsp; &nbsp;sasl_ldap_servers: ldap://******.com:1389/<br>&nbsp;&nbsp; &nbsp;sasl_ldap_basedn: ou=*******,dc=org<br>&nbsp;&nbsp; &nbsp;tls_ca_path: /etc/ssl/certs<br>&nbsp;&nbsp; &nbsp;tls_session_timeout: 1440<br>&nbsp;&nbsp; &nbsp;tls_cipher_list: TLSv1:SSLv3:SSLv2:!NULL:!EXPORT:!DES:!LOW:@STRENGTH<br>&nbsp;&nbsp; &nbsp;lmtpsocket: /var/run/cyrus/socket/lmtp<br>&nbsp;&nbsp; &nbsp;idlesocket: /var/run/cyrus/socket/idle<br>&nbsp;&nbsp; &nbsp;notifysocket: /var/run/cyrus/socket/notify<br>&nbsp;&nbsp; &nbsp;delete_mode: immediate<br>&nbsp;&nbsp; &nbsp;expunge_mode: immediate<br><br>&nbsp;&nbsp; &nbsp;#Replica config<br>&nbsp;&nbsp; &nbsp;sync_host: 192.168.**.**<br>&nbsp;&nbsp; &nbsp;sync_authname: ******<br>&nbsp;&nbsp; &nbsp;sync_password: ******<br><br>&nbsp;&nbsp; &nbsp;#Configuracion para el rolling<br>&nbsp;&nbsp; &nbsp;sync_log: 1<br>&nbsp;&nbsp; &nbsp;sync_repeat_interval: 1<br>&nbsp;&nbsp; &nbsp;sync_machineid: 1<br>============================================================<br><br>=========================cyrus.conf=========================<br>&nbsp;&nbsp; &nbsp;START {<br>&nbsp;&nbsp; &nbsp;&nbsp; # do not delete this entry!<br>&nbsp;&nbsp; &nbsp;&nbsp; recover&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cmd="ctl_cyrusdb -r"<br>&nbsp;&nbsp; &nbsp;&nbsp; # this is only necessary if using idled for IMAP IDLE<br>&nbsp;&nbsp; &nbsp;&nbsp; idled&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cmd="idled"<br>&nbsp;&nbsp; &nbsp;&nbsp; #Si queremos que sea MASTER tenemos que arrancar el sync_client<br>&nbsp;&nbsp; &nbsp;&nbsp; syncclient&nbsp;&nbsp;&nbsp; cmd="/usr/lib/cyrus-imapd/sync_client -r"<br>&nbsp;&nbsp; &nbsp;}<br>&nbsp;&nbsp; &nbsp;SERVICES {<br>&nbsp;&nbsp; &nbsp;&nbsp; # add or remove based on preferences<br>&nbsp;&nbsp; &nbsp;&nbsp; imap&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cmd="imapd" listen="imap" prefork=5<br>&nbsp;&nbsp; &nbsp;&nbsp; #imaps&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cmd="imapd -s" listen="imaps" prefork=1<br>&nbsp;&nbsp; &nbsp;&nbsp; pop3&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cmd="pop3d" listen="pop3" prefork=3<br>&nbsp;&nbsp; &nbsp;&nbsp; #pop3s&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cmd="pop3d -s" listen="pop3s" prefork=1<br>&nbsp;&nbsp; &nbsp;&nbsp; sieve&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cmd="timsieved" listen="sieve" prefork=0<br><br>&nbsp;&nbsp; &nbsp;&nbsp; lmtpunix&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cmd="lmtpd" listen="/var/lib/imap/socket/lmtp" prefork=1<br><br>&nbsp;&nbsp; &nbsp;}<br>&nbsp;&nbsp; &nbsp;EVENTS {<br>&nbsp;&nbsp; &nbsp;&nbsp; # this is required<br>&nbsp;&nbsp; &nbsp;&nbsp; checkpoint&nbsp;&nbsp;&nbsp; cmd="ctl_cyrusdb -c" period=30<br>&nbsp;&nbsp; &nbsp;&nbsp; # this is only necessary if using duplicate delivery suppression,<br>&nbsp;&nbsp; &nbsp;&nbsp; # Sieve or NNTP<br>&nbsp;&nbsp; &nbsp;&nbsp; delprune&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cmd="cyr_expire -D 7 -E 3 -X 7" at=0400<br>&nbsp;&nbsp; &nbsp;&nbsp; # this is only necessary if caching TLS sessions<br>&nbsp;&nbsp; &nbsp;&nbsp; tlsprune&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cmd="tls_prune" at=0400<br>&nbsp;&nbsp; &nbsp;}<br>============================================================<br><br>Thanks &amp; Regards.                                               </div></body>
</html>