public void validate() throws CloudAdapterException {
try {
SmtpServerSettings settings = new SmtpServerSettings(
getSmtpHost(), getSmtpPort(), getAuthentication(),
isUseSsl());
settings.validate();
} catch (Exception e) {
throw new CloudAdapterException(format(
"failed to validate mailServerSettings: %s",
e.getMessage()), e);
}