diff --git a/webmail/webmail.js b/webmail/webmail.js index a51503f..05bf01d 100644 --- a/webmail/webmail.js +++ b/webmail/webmail.js @@ -2135,7 +2135,7 @@ const compose = (opts) => { let reqtls = opts.isList !== true; const walk = (l) => { for (const v of l) { - if (v.recipientSecurity?.RequireTLS !== api.SecurityResult.SecurityResultYes) { + if (v.recipientSecurity?.RequireTLS !== api.SecurityResult.SecurityResultYes || v.recipientSecurity?.MTASTS !== api.SecurityResult.SecurityResultYes && v.recipientSecurity?.DANE !== api.SecurityResult.SecurityResultYes) { reqtls = false; break; } diff --git a/webmail/webmail.ts b/webmail/webmail.ts index 01ddbcd..ef58868 100644 --- a/webmail/webmail.ts +++ b/webmail/webmail.ts @@ -1330,7 +1330,7 @@ const compose = (opts: ComposeOptions) => { let reqtls = opts.isList !== true const walk = (l: AddrView[]) => { for (const v of l) { - if (v.recipientSecurity?.RequireTLS !== api.SecurityResult.SecurityResultYes) { + if (v.recipientSecurity?.RequireTLS !== api.SecurityResult.SecurityResultYes || v.recipientSecurity?.MTASTS !== api.SecurityResult.SecurityResultYes && v.recipientSecurity?.DANE !== api.SecurityResult.SecurityResultYes) { reqtls = false break }