Skip to content

Commit

Permalink
Disable SSL Server Identity checks for Angus Mail
Browse files Browse the repository at this point in the history
  • Loading branch information
adamretter authored and marcelmay committed Mar 6, 2023
1 parent b6f0ba2 commit ebbcbcf
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,8 @@ public Properties configureJavaMailSessionProperties(Properties properties, bool
props.setProperty(MAIL_DOT + getProtocol() + ".starttls.enable", Boolean.TRUE.toString());
props.setProperty(MAIL_DOT + getProtocol() + ".socketFactory.class", DummySSLSocketFactory.class.getName());
props.setProperty(MAIL_DOT + getProtocol() + ".socketFactory.fallback", "false");
// Required for Angus Mail, see: https://github.com/eclipse-ee4j/angus-mail/issues/12
props.setProperty(MAIL_DOT + getProtocol() + ".ssl.checkserveridentity", "false");
}

// Timeouts
Expand Down

0 comments on commit ebbcbcf

Please sign in to comment.