Disable NTLM authentication in Wildfly mail-module

72 views
Skip to first unread message

Ralf

unread,
Jan 13, 2025, 8:38:12 AM1/13/25
to WildFly
I am using Wildfly 32. I want to force the mail-module to use Kerberos insteed of NTLM.
Is there any property like "mail.smtp.auth.ntlm.disable" to avoid NTLM mechanism for SMTP Authentication?

Ralf

unread,
Jan 14, 2025, 10:48:54 AM1/14/25
to WildFly
Supplement

Here my jboss-32.0.0.log:

2025-01-14 16:00:56,740 FINE  [org.eclipse.angus.mail.smtp] (default task-1) Attempt to authenticate using mechanisms: LOGIN PLAIN DIGEST-MD5 NTLM XOAUTH2
2025-01-14 16:00:56,740 FINE  [org.eclipse.angus.mail.smtp] (default task-1) mechanism LOGIN not supported by server
2025-01-14 16:00:56,740 FINE  [org.eclipse.angus.mail.smtp] (default task-1) mechanism PLAIN not supported by server
2025-01-14 16:00:56,740 FINE  [org.eclipse.angus.mail.smtp] (default task-1) mechanism DIGEST-MD5 not supported by server
2025-01-14 16:00:56,740 FINE  [org.eclipse.angus.mail.smtp] (default task-1) Using mechanism NTLM


Yeray Borges Santana

unread,
Jan 20, 2025, 6:29:25 AM1/20/25
to Ralf, WildFly
Hi Ralf,

Take a look at the custom mail resource [1], you can create a mail session configuration passing by any Jakarta mail property, for example:

subsystem=mail/mail-session=default/custom=custom-mail:add(properties={mail.smtp.auth.ntlm.disable=true,mail.smtp.timeout=3000})



Regards!

--
You received this message because you are subscribed to the Google Groups "WildFly" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wildfly+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/wildfly/a0419ee3-d091-47d0-8bef-4dff5985a3den%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages