Typically, damage to the domain database (wpdomain.db) can be repaired using the database maintenance tools provided in ConsoleOne®. See Maintaining Domain and Post Office Databases.
If damage to the domain database is so severe that rebuilding the database is not possible:
Stop the MTA for the domain. See Stopping the MTA.
On NetWare, use a Target Service Agent (GWTSA of TSAFS) with a supported backup program or your backup software of choice to restore the domain database into the domain directory. See Target Service Agents.
or
On Linux or Windows, use your backup software of choice to restore the domain database into the domain directory.
Restart the MTA for the domain. See Starting the MTA.
To update the restored domain database with administrative changes made since it was backed up, synchronize the restored domain database with the primary domain database. See Synchronizing a Secondary Domain.
If the restored domain database is for the primary domain, see Synchronizing the Primary Domain from a Secondary Domain.