Hi,
To restore the configuration on the appliance you can import the backup configuration file with passwords unmasked as per below article.
http://www.cisco.com/c/en/us/support/docs/security/email-security-appliance/117841-technote-esareplace-00.html
Thank You!
Libin Varghese