You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Manuel K (Jira)" <ji...@apache.org> on 2024/04/22 08:58:00 UTC
[jira] [Commented] (EMAIL-208) Update server identity check to be compatible with Jakarta Mail 2.0
[ https://issues.apache.org/jira/browse/EMAIL-208?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17839565#comment-17839565 ]
Manuel K commented on EMAIL-208:
--------------------------------
I think this has to be implemented for the upcoming (?) Jakarta release. When is this planned anyway? ;)
> 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)