*
* @param conf the new model (2.7.0)
* @see <a href="https://issues.sonatype.org/browse/NEXUS-4997">NEXUS-4997</a>
*/
protected void updateSmtpSslTlsSettings(final Configuration conf) {
final CSmtpConfiguration smtp = conf.getSmtpConfiguration();
if (smtp != null) {
if (smtp.isSslEnabled() && smtp.isTlsEnabled()) {
smtp.setSslEnabled(true);
smtp.setTlsEnabled(false);
log.warn(
"SMTP related configuration change happened: both SSL and TLS was set, updated to use SSL only, assuming that SMTP server port is set to a port where remote SMTP server accepts SSL connections.");
}
}
}