From Joplin Server 2.7 MAILER_SECURE= was replaced by MAILER_SECURITY= and its values are tls, starttls or none.
MAILER_SECURE=
MAILER_SECURITY=
tls
starttls
none
source