In intra-mart Accel Platform, Jakarta Mail has been upgraded to version 1.6.7 in 2022 Spring (8.0.31).
#34426 Change JavaMail to Jakarta Mail 1.6.7.
https://issue.intra-mart.jp/issues/34426
In versions before 2022 Spring (8.0.31), email could be sent even if the email address violated the RFC.
After this upgrade, the validation check on Jakarta Mail 1.6.7 will cause the following error, preventing you from send emails:
[ERROR] jcifmjJavamailSender - [] Local address contains dot-dot
javax.mail.internet.AddressException: Local address contains dot-dot
If you do not use email addresses that violate RFC, the above errors will not occur and you will be able to send emails as before.
First, please consider changing your email address if it violates the RFC.
The email address format is defined below.
・ RFC 5321 (Simple Mail Transfer Protocol, SMTP)
・ RFC 5322 (Internet Message Format, IMF)
However, changing your email address will have a significant impact on your operations, so we will explain how to avoid this below.
[How to disable email address validation check]
* When setting in the settings file
Add the following settings to the session-property tag in javamail-config.xml.
<session-properties>
<session-property name="mail.mime.address.strict" value="false"/>
</session-properties>
【Document】
https://document.intra-mart.jp/library/iap/public/configuration/im_configuration_reference/texts/im_javamail/javamail-config/index.html#%E3%83%A1%E3%83%BC%E3%83%AB%E3%82%BB%E3%83%83%E3%82%B7%E3%83%A7%E3%83%B3%E3%83%97%E3%83%AD%E3%83%91%E3%83%86%E3%82%A3%E8%A8%AD%E5%AE%9A
* When setting on the system administrator's SMTP server settings screen
Add the following to the email session property settings:
- Property Name mail.mime.address.strict
- Value false
[Document]
https://document.intra-mart.jp/library/iap/public/operation/system_administrator_guide/texts/apply_guide/apply_guide_15.html
-- Target ---------------------------------------------------------------------
iAP/Accel Platform/2022 Spring or later
---------------------------------------------------------------------------------
FAQID:1421
Is it possible to disable validation check for email addresses which violate RFC when sending emails?