1 (edited by pathic 2015-04-16 13:25:22)

Topic: Backup iRedMail to New IRedMail with different Domain

Old
iRedMail : 0.8.6
Backend : LDAP
Web Server : Apache
Linux : CentOS 6.6, 2.6.32-504.12.2.el6.x86_64
Sample Domain : aaaaa.com

New
iRedMail : 0.9.0
Backend : LDAP
Web Server : Nginx
Linux : CentOS 6.6, 2.6.32-504.el6.x86_64
Sample Domain : bbbbb.com

I follow this link, https://tribalchicken.com.au/informatio … ew-server/

LDAP backup already, stop slapd service and restore it.

slapadd -f /etc/openldap/slapd.conf -l utils/2015.04.15.16.50.59.ldif
552f46c2 hdb_monitor_db_open: monitoring disabled; configure monitor database to enable
slapadd: line 1: database #1 (dc=bbbbb,dc=com) not configured to hold "dc=aaaaa,dc=com"; no database configured for that naming context
_                       0.06% eta        elapsed            none spd 927.7 k/s
Closing DB...

Suggest please.
Thanks,

Pathic

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Backup iRedMail to New IRedMail with different Domain

Excuse me, what's your issue? I don't understand.

3

Re: Backup iRedMail to New IRedMail with different Domain

ZhangHuangbin wrote:

Excuse me, what's your issue? I don't understand.

I can't restore LDAP backup with different domain ?
Old Server with base domain aaaaa.com
New Server with base domain bbbbb.com

Execute,

slapadd -f /etc/openldap/slapd.conf -l utils/2015.04.15.16.50.59.ldif

Message error,

552f46c2 hdb_monitor_db_open: monitoring disabled; configure monitor database to enable
slapadd: line 1: database #1 (dc=bbbbb,dc=com) not configured to hold "dc=aaaaa,dc=com"; no database configured for that naming context
_                       0.06% eta        elapsed            none spd 927.7 k/s
Closing DB...

Regards,

Pathic

4

Re: Backup iRedMail to New IRedMail with different Domain

Solutions:

1) Update your backup LDIF, replace old base name with the new one, then restore it. OR:
2) Add one more 'database' entry in /etc/openldap/slapd.conf, with the old base domain. This way you have two base domains: aaaa.com, bbbb.com. If you restore LDIF, it will be restored to the newly created database. Note: your existing config files (postfix/dovecot/...) are using bbbb.com.