Mail xwiki 12.1 - jetty - problem with sending

I have fresh xwiki 12.1 with new version of JETTY. I configured mail by Administer wiki. When I try to send mail I get a message:

I use script Example 1 from

Authentication works, becasuse if I provide wrong pass I get message


openjdk version "11.0.6" 2020-01-14
OpenJDK Runtime Environment (build 11.0.6+10-post-Ubuntu-1ubuntu118.04.1)
OpenJDK 64-Bit Server VM (build 11.0.6+10-post-Ubuntu-1ubuntu118.04.1, mixed mode, sharing)

Any ideas how to configure mail?

Works now :slight_smile:

OK, I have deleted mail folder from JETTY lib.

Hi. See Loading...

The issue is a bug in Jetty on Java 11. We have put a workaround in XWiki 12.2 which has just been released today :wink:

FYI the workaround we have put is: xwiki-platform/xwiki-platform-core/xwiki-platform-web/src/main/webapp/WEB-INF/jetty-web.xml at b07002b7bb8754176b102708da9f182c60d5d66b · xwiki/xwiki-platform · GitHub