Mail notifications insist on using STARTTLS even if specifically opt out in setting #4159

Open
opened 2026-02-20 03:01:52 -05:00 by deekerman · 1 comment
Owner

Originally created by @lucker999 on GitHub (Jan 27, 2025).

Is there an existing issue for this?

  • I have searched the existing open and closed issues

Current Behavior

Lidarr tries to send an email notification with STARTTLS connection even if I didn't specify to use it in settings.

Expected Behavior

If port 25 is specified and no tick marked in the field Require Encryption Lidarr should send email without auth and encryption. BTW, both Sonarr and Radarr send emails without any issues with the exact same settings.

Steps To Reproduce

I try to setup email notifications and I have entered credentials and mail server in Settings -> Connections -> Email without ticking Require Encryption (port 25). Since server is local and configured to accept emails from local network without auth, no encryption required. Alas, Lidarr trying to establish STARTTLS connection (I assume because server advertises such a possibility) despite the settings not to do so.
Installed on Debian 12 along with other *arr apps, run with systemd unit, no issue so far.

Environment

- OS: Debian 12
- Lidarr: latest 2.8.2.4493 (auto updates)
- Docker Install: no docker
- Using Reverse Proxy: no, local access only
- Browser: FF latest
- Database: Sqlite 3.40.1

What branch are you running?

Master

Trace Logs?

Trace log:
https://gist.github.com/lucker999/4235df1d4ec357c5d5fc76f304446e09

Mail server logs:

Jan 27 23:23:06 mail postfix/smtpd[35667]: connect from arr.local[172.22.11.13]
Jan 27 23:23:06 mail postfix/smtpd[35667]: Anonymous TLS connection established from arr.local[172.22.11.13]: TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384
Jan 27 23:23:06 mail postfix/smtpd[35667]: lost connection after STARTTLS from arr.local[172.22.11.13]
Jan 27 23:23:06 mail postfix/smtpd[35667]: disconnect from arr.local[172.22.11.13] ehlo=1 starttls=1 commands=2

Trace Logs have been provided as applicable. Reports may be closed if the required logs are not provided.

  • I have read and followed the steps in the wiki link above and provided the required trace logs - the logs contain trace - that are relevant and show this issue.
Originally created by @lucker999 on GitHub (Jan 27, 2025). ### Is there an existing issue for this? - [x] I have searched the existing open and closed issues ### Current Behavior Lidarr tries to send an email notification with STARTTLS connection even if I didn't specify to use it in settings. ### Expected Behavior If port 25 is specified and no tick marked in the field Require Encryption Lidarr should send email without auth and encryption. BTW, both Sonarr and Radarr send emails without any issues with the exact same settings. ### Steps To Reproduce I try to setup email notifications and I have entered credentials and mail server in Settings -> Connections -> Email without ticking Require Encryption (port 25). Since server is local and configured to accept emails from local network without auth, no encryption required. Alas, Lidarr trying to establish STARTTLS connection (I assume because server advertises such a possibility) despite the settings not to do so. Installed on Debian 12 along with other *arr apps, run with systemd unit, no issue so far. ### Environment ```markdown - OS: Debian 12 - Lidarr: latest 2.8.2.4493 (auto updates) - Docker Install: no docker - Using Reverse Proxy: no, local access only - Browser: FF latest - Database: Sqlite 3.40.1 ``` ### What branch are you running? Master ### Trace Logs? Trace log: https://gist.github.com/lucker999/4235df1d4ec357c5d5fc76f304446e09 Mail server logs: ``` Jan 27 23:23:06 mail postfix/smtpd[35667]: connect from arr.local[172.22.11.13] Jan 27 23:23:06 mail postfix/smtpd[35667]: Anonymous TLS connection established from arr.local[172.22.11.13]: TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384 Jan 27 23:23:06 mail postfix/smtpd[35667]: lost connection after STARTTLS from arr.local[172.22.11.13] Jan 27 23:23:06 mail postfix/smtpd[35667]: disconnect from arr.local[172.22.11.13] ehlo=1 starttls=1 commands=2 ``` ### Trace Logs have been provided as applicable. Reports may be closed if the required logs are not provided. - [x] I have read and followed the steps in the wiki link above and provided the required trace logs - the logs contain `trace` - that are relevant and show this issue.
Author
Owner

@bakerboy448 commented on GitHub (Jan 27, 2025):

Likely due to needing https://github.com/Lidarr/Lidarr/issues/4494

@bakerboy448 commented on GitHub (Jan 27, 2025): Likely due to needing https://github.com/Lidarr/Lidarr/issues/4494
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Lidarr#4159
No description provided.