mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-25 01:06:04 +00:00
Fixed disabling SASL
This commit is contained in:
parent
a453beff63
commit
8fcb2b831b
1 changed files with 3 additions and 5 deletions
|
@ -170,11 +170,9 @@ public class EmailService implements AutoCloseable {
|
|||
if (!auth_login)
|
||||
properties.put("mail." + protocol + ".auth.login.disable", "true");
|
||||
|
||||
properties.put("mail." + protocol + ".sasl.enable", "true");
|
||||
if (auth_sasl) {
|
||||
properties.put("mail." + protocol + ".sasl.mechanisms", "CRAM-MD5");
|
||||
properties.put("mail." + protocol + ".sasl.realm", realm == null ? "" : realm);
|
||||
}
|
||||
properties.put("mail." + protocol + ".sasl.enable", Boolean.toString(auth_sasl));
|
||||
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);
|
||||
|
||||
// writetimeout: one thread overhead
|
||||
|
|
Loading…
Reference in a new issue