Can't use cfmail tag on unix box

Trying to run a scheduled task using the cfmail tag works fine on Windows but fails on Unix. Trying to verify the mail server in the Lucee web interface produces the same error.

Lucee version

Java 11.0.10 (Oracle Corporation) 64bit

OS Linux (3.10.0-1160.21.1.el7.x86_64) 64bit

javax.mail.Provider: com.sun.mail.imap.IMAPProvider not a subtype