I get the same warning but when I look in org.ops4j.pax.logging.cfg there are no filters of javaxmail.
I found a file with the name “org.ops4j.pax.logging.cfg.dpkg-dist” which contains the filter.
The date of this file is the same as the release date of openhab 2.5.0, 2019-12-15.
Is it recommended to replace the old file?
I’m not very good on Linux so I found the following instructions in another thread,
cd /var/lib/openhab2/etc
sudo mv org.ops4j.pax.logging.cfg org.ops4j.pax.logging.cfg.old
sudo mv org.ops4j.pax.logging.cfg.dpkg-dist org.ops4j.pax.logging.cfg
Alternatively, you could just edit org.ops4j.pax.logging.cfg to add the following lines.
# Filters known issues of javax.mail, see
# https://github.com/openhab/openhab-addons/issues/5530
log4j2.logger.javaxmail.name = javax.mail
log4j2.logger.javaxmail.level = ERROR
Either way you go, I’d suggest you shut down OH before making the changes.
I guess this refers the log4j2.xml in the same directory.
This contains the following entry
<!-- Filters known issues of javax.mail, see -->
<!-- https://github.com/openhab/openhab-addons/issues/5530 -->
<Logger level="ERROR" name="javax.mail"/>```
Somehow it seems it is not suppressing the warning.