SMTP Prevent TLS connection fails with UnrecoverableKeyException


Article ID: 160734


Updated On:


Data Loss Prevention Network Prevent for Email


After trying to setup TLS, the connection fails because  of unrecoverable key exception.


[SEVERE] (SMTP_CONNECTION.5204) Peer disconnected unexpectedly (tid=30 cid=1 local=<> remote=<> reason=End of stream)[SEVERE] (SMTP_CONNECTION.5204) Peer disconnected unexpectedly (tid=33 cid=2 local=<> remote=<> Cannot recover key)

In the RequestProcessor0.log:

SEVERE: RPT(33): Returning fatal response and terminating connections due to unhandled exception.
 at com.vontu.mta.rp.ESMTPPeer.recv(
 at com.vontu.mta.rp.ESMTPRequestProcessorThread._readPeer(
 at com.vontu.mta.rp.ESMTPRequestProcessorThread._process(


This problem can happen if the keypair password and the keystore password are not the same.

When the command to create the keypair is run, for example:

keytool -genkeypair -alias < SMTPPreventHostName > -dname "CN=<SMTPPreventHostName>, OU=Corporate, O=<CompanyName>, L=<location>, S=<State>, C=<country>" -keyalg RSA -validity <NumberOfDays> -keysize 2048 -keystore C:\Vontu\Protect\keystore\prevent.ks

The user will be asked to enter a password for the keypair and the keystore.  Make sure keystore and keypair passwords are same. The keystore password will be configured in the management console.


See also TECH222033