eMail Server: Version 3
rename_domain.pl
in the package imapweb
.
Please make sure that you use the current package from our
Patch Support Database!slapcat >my_ldap.ldif
/usr/share/doc/packages/imapweb/tools/rename_domain.pl -h
/usr/share/doc/packages/imapweb/tools/rename_domain.pl -printold
Host name | oldserver |
Domain name | olddomain.de |
Fully qualified domain name (FQDN) | oldserver.olddomain.de |
Host name | newserver |
Domain name | newdomain.de |
Fully qualified domain name (FQDN) | newserver.newdomain.de |
/usr/share/doc/packages/imapweb/tools/rename_domain.pl -oldhost oldserver -newhost newserver -olddomain olddomain.de -newdomain newdomain.deThus, the script
rename.sh
is created. This script can be started with the command.sh rename.shAttention: once the script has been executed, log in as
cyrus
in the configuration frontend
and select 'Virtual Users', 'Virt. Domains'. Hit the 'Export' button to write the new values in the name server
files of the eMail Server.
rename.sh
aborts, it can be due to the LDAP database not being properly
rewritten. In this case, restore the backup and undo the changes:cp -a ldap.backup/* /var/lib/ldap/Then check the files
/etc/postfix/main.cf /etc/rc.configIf necessary, restore the host and domain name as well. Finally start
SuSEconfigand use the following commands to restart the stopped services:
rcapache start rcpostfix start rccyrus start rcldap start rcskyrixgreen start