Issue how to migrat...
 
Notifications
Clear all

[Solved] Issue how to migrate Zimbra Server to CarbonioCE

7 Posts
3 Users
2 Likes
434 Views
(@ricardobarbosams)
Joined: 9 months ago
Posts: 7
Topic starter  

Hello all,

 

I'm following the docs at https://docs.zextras.com/carbonio-ce/html/migration.html#domains-and-accounts-provisioning. In phase two, I need the ldif file to import into CarbonioCE server, but I didn't quite understand if I needed it to migrate the accounts with imapsync, but I tried to generate the ldif file with zmslapcat,  https://wiki.zimbra.com/wiki/LDAP_data_import_export

I used the command to export the ldif file

 

 /opt/zimbra/libexec/zmslapcat /tmp

And to restore:

root@mail:~# /opt/zextras/common/sbin/slapadd -F /opt/zextras/data/ldap/config/ -v -l ldap.bak
64dcd973 The first database does not allow slapadd; using the first available one (2)
64dcd973 mdb_id2entry_put: mdb_put failed: MDB_KEYEXIST: Key/data pair already exists(-30799) "cn=zimbra"
64dcd973 => mdb_tool_entry_put: id2entry_add failed: err=-30799
64dcd973 => mdb_tool_entry_put: txn_aborted! MDB_KEYEXIST: Key/data pair already exists (-30799)
slapadd: could not add entry dn="cn=zimbra" (line=1): txn_aborted! MDB_KEYEXIST: Key/data pair already exists (-30799)
_ 0.07% eta none elapsed none spd 2.0 M/s
Closing DB...
root@mail:~#

 

Is there any procedure recommended by CarbonioCE to generate this ldif? Or is this step really necessary?

Thanks

 

 

 


   
Quote
(@sharif)
Admin
Joined: 2 years ago
Posts: 410
 

Posted by: @ricardobarbosams

Is there any procedure recommended by CarbonioCE to generate this ldif? Or is this step really necessary?

 

Hi @ricardobarbosams,

Sorry for your trouble.

Can you please tell me whether both of your server has same hostname or not?

Also, take a look at this blog:
https://community.zextras.com/how-to-use-imapsync-to-migrate-zimbra-to-carbonio-carbonio-ce/

Thanks

Sharif


   
ReplyQuote
(@pmedeiros)
Joined: 9 months ago
Posts: 4
 

I've tried to imapsync but i'm facing the error;

****** could not append ( Subject:[LIGHTMAX-PRODUTORES/DISTRIBUIDORES FIBRA OPTICA], Date:["04-Jul-2023 14:55:39 +0100"], Size:[18033379], Flags:[] ) to folder INBOX: Error sending 'APPEND INBOX () "04-Jul-2023 14:55:39 +0100" {18033379}': 25 BAD maximum message size exceeded
The most frequent error is ERR_APPEND_SIZE. The destination server refuses too big messages. Use --truncmess option. Read https://imapsync.lamiral.info/FAQ.d/FAQ.Messages_Too_Big.txt

It look's the attachment or the message is exceeding configured message size or attachment size. How can those values can be changed?

Thanks

 


   
ReplyQuote
(@sharif)
Admin
Joined: 2 years ago
Posts: 410
 

Posted by: @pmedeiros

I've tried to imapsync but i'm facing the error;

 

Hi @pmedeiros,

Check out the code section, i have inserted my comment in it also,

zextras@mail:~$
zextras@mail:~$
zextras@mail:~$ #Check current Message Size Limit
zextras@mail:~$
zextras@mail:~$ postconf message_size_limit
message_size_limit = 10240000
zextras@mail:~$
zextras@mail:~$
zextras@mail:~$ #Your message size shows 18033379 which is beyond the limit.
zextras@mail:~$
zextras@mail:~$ # Try increasing your limit and try again
zextras@mail:~$
zextras@mail:~$ carbonio prov modifyConfig zimbraMtaMaxMessageSize 1024000000
zextras@mail:~$ postfix reload
/postfix-script: refreshing the Postfix mail system
zextras@mail:~$
zextras@mail:~$ #Check if the message size limit has increased or not?
zextras@mail:~$
zextras@mail:~$ postconf message_size_limit
message_size_limit = 1024000000
zextras@mail:~$
zextras@mail:~$ #Yes it has increased. Now try the impsync again.
zextras@mail:~$
zextras@mail:~$
zextras@mail:~$ #Remember to be on safe side always increase the destination server message size limit before any transfer
zextras@mail:~$ #After the transfer revert it back again to the default value
zextras@mail:~$
zextras@mail:~$

 

Hope it helps.

Thanks and regards,

Sharif

 


   
ReplyQuote
(@pmedeiros)
Joined: 9 months ago
Posts: 4
 

Thank you, look's it solved.

If you've the chance to test on development, when those errors occurs using imapsync, the services amavis and antivirus stop working

Thank you


   
ReplyQuote
(@sharif)
Admin
Joined: 2 years ago
Posts: 410
 

@pmedeiros 

Hi,

I am glad that the issue is solved.

I will try to look into the amavis and antivirus stopping issue.

Thanks for the suggestion.

Have a good day🙂

Regards,

Sharif


   
pmedeiros reacted
ReplyQuote
(@ricardobarbosams)
Joined: 9 months ago
Posts: 7
Topic starter  

Thanks for your help, I changed the migration strategy and started using zmprov commands to export and import accounts. I used the follow howto https://community.zextras.com/how-to-use-script-to-migrate-zimbra-to-carbonio-carbonio-ce/ thanks


   
ReplyQuote