[PR #1531] Added optional TLS encryption for SMTP server #1631

Open
opened 2026-05-07 01:02:59 +02:00 by BreizhHardware · 0 comments

📋 Pull Request Information

Original PR: https://github.com/binwiederhier/ntfy/pull/1531
Author: @santanoce
Created: 1/2/2026
Status: 🔄 Open

Base: mainHead: feat/smtp_server_tls


📝 Commits (3)

  • 4118b04 feat: added optional TLS for SMTP server
  • 9beaeee docs: fixed typo in config.md
  • 6fd55bb Merge branch 'main' into feat/smtp_server_tls

📊 Changes

5 files changed (+55 additions, -4 deletions)

View changed files

📝 cmd/serve.go (+13 -0)
📝 docs/config.md (+11 -2)
📝 server/config.go (+6 -0)
📝 server/server.go (+18 -1)
📝 server/server.yml (+7 -1)

📄 Description

This would close #409.

I added the following configuration options:

  • smtp-server-cert-file to specify the public key file;
  • smtp_server_key_file to specify the private key file;
  • smtp-server-implicit-tls to force TLS (Implicit TLS, otherwise it will use STARTTLS).

If the above options are not specified, the SMTP server would just accept plain text connections, as it is now.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/binwiederhier/ntfy/pull/1531 **Author:** [@santanoce](https://github.com/santanoce) **Created:** 1/2/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `feat/smtp_server_tls` --- ### 📝 Commits (3) - [`4118b04`](https://github.com/binwiederhier/ntfy/commit/4118b044a963e52ad58c5afc8162edf3d8ab5544) feat: added optional TLS for SMTP server - [`9beaeee`](https://github.com/binwiederhier/ntfy/commit/9beaeeee3169777cf3b822b4a55f003fa0c2e3cc) docs: fixed typo in config.md - [`6fd55bb`](https://github.com/binwiederhier/ntfy/commit/6fd55bb2f8a4ec898cbbf8379cab7836a37bbc09) Merge branch 'main' into feat/smtp_server_tls ### 📊 Changes **5 files changed** (+55 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `cmd/serve.go` (+13 -0) 📝 `docs/config.md` (+11 -2) 📝 `server/config.go` (+6 -0) 📝 `server/server.go` (+18 -1) 📝 `server/server.yml` (+7 -1) </details> ### 📄 Description This would close #409. I added the following configuration options: - `smtp-server-cert-file` to specify the public key file; - `smtp_server_key_file` to specify the private key file; - `smtp-server-implicit-tls` to force TLS (Implicit TLS, otherwise it will use STARTTLS). If the above options are not specified, the SMTP server would just accept plain text connections, as it is now. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
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/ntfy#1631
No description provided.