[
https://issues.apache.org/jira/browse/EMAIL-208?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18044014#comment-18044014
]
Tom Coogan commented on EMAIL-208:
----------------------------------
A pull request has been submitted.
https://github.com/apache/commons-email/pull/393
> Update server identity check to be compatible with Jakarta Mail 2.0
> -------------------------------------------------------------------
>
> Key: EMAIL-208
> URL: https://issues.apache.org/jira/browse/EMAIL-208
> Project: Commons Email
> Issue Type: Improvement
> Affects Versions: 1.5
> Reporter: Manuel K
> Priority: Major
>
> The default of the relevant property _mail.smtp.ssl.checkserveridentity_ has
> been changed to true: [https://github.com/eclipse-ee4j/angus-mail/issues/12]
> {_}org.eclipse.angus.mail.util.SocketFetcher{_}:
> {code:java}
> boolean idCheck = PropUtil.getBooleanProperty(props,
> prefix + ".ssl.checkserveridentity", true); {code}
> {_}org.apache.commons.mail.Email{_}:
> {code:java}
> if ((isSSLOnConnect() || isStartTLSEnabled()) && isSSLCheckServerIdentity())
> {
> properties.setProperty(EmailConstants.MAIL_SMTP_SSL_CHECKSERVERIDENTITY,
> "true");
> } {code}
> So the property is only set if _isSSLCheckServerIdentity()_ returns
> {_}true{_}. So if _isSSLCheckServerIdentity()_ returns {_}false{_}, nothing
> is done and the new default value _true_ remains.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)