Added CRAM-MD5 authentication

This commit is contained in:
M66B
2020-01-23 12:38:31 +01:00
parent e715772ac5
commit 581d02d1ec
6 changed files with 246 additions and 2 deletions

View File

@@ -121,6 +121,8 @@ public class MailService implements AutoCloseable {
properties.put("mail.event.scope", "folder");
properties.put("mail.event.executor", executor);
properties.put("mail." + protocol + ".sasl.enable", "true");
properties.put("mail." + protocol + ".sasl.mechanisms", "CRAM-MD5");
properties.put("mail." + protocol + ".sasl.realm", realm == null ? "" : realm);
properties.put("mail." + protocol + ".auth.ntlm.domain", realm == null ? "" : realm);