How do I disable email address format checking on EAP7 for OpenShift?

Solution Verified - Updated -

Issue

  • How do I disable email address format checking on EAP7 for OpenShift?
  • javax.mail.internet.AddressException is thrown as below when I specify .test@redhat.com or test.@redhat.com in a mail transfer code. Prior to JBoss EAP 7.2.7, no exception is raised. How can I disable the checking process?
Caused by: javax.mail.internet.AddressException: Local address starts with dot in string ``.test@redhat.com''
    at javax.mail.internet.InternetAddress.checkAddress(InternetAddress.java:1348)
    at javax.mail.internet.InternetAddress.parse(InternetAddress.java:1215)
    at javax.mail.internet.InternetAddress.parse(InternetAddress.java:752)
    at javax.mail.internet.InternetAddress.<init>(InternetAddress.java:119)
    at javax.mail.internet.InternetAddress.<init>(InternetAddress.java:147)
    at ...
    ... 44 more

Environment

  • JBoss EAP for OpenShift Container Platform
    • jboss-eap-7/eap72-openshift:1.2+ which is based on JBoss EAP 7.2.8

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content