[GH-ISSUE #231] Feature-Request: connect to existing SMTP server #184

Closed
opened 2026-05-07 00:21:10 +02:00 by BreizhHardware · 2 comments

Originally created by @SMAW on GitHub (May 1, 2022).
Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/231

Connect to an existing SMTP server, to check for mail, and make it an notification.

Originally created by @SMAW on GitHub (May 1, 2022). Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/231 Connect to an existing SMTP server, to check for mail, and make it an notification.
BreizhHardware 2026-05-07 00:21:10 +02:00
Author
Owner

@binwiederhier commented on GitHub (May 4, 2022):

SMTP is the protocol used to send mail, not to check for mail. What is it you want to achieve?

make it an notification

I think you'd like to publish notifications via email, which can already be achieved with email publishing (as I believe you know). ntfy ships with a tiny SMTP server to handle incoming mail. If you'd like to use your own mailserver, you can still do that by simply forwarding email for certain addresses to ntfy's mail server.

Example:

person --[to: phil@example.com]--> mx1.example.com --[forwards to: mytopic@ntfy.example.com] --> mx1.ntfy.example.com --> ntfy

In this example,

  • mx1.example.com is your existing mail server for which you'd need to set up a forwarding rule
  • mx1.ntfy.example.com is the built-in mail server in ntfy.

You'll still have to do the DNS/MX setup as described in docs though.

<!-- gh-comment-id:1118020535 --> @binwiederhier commented on GitHub (May 4, 2022): SMTP is the protocol used to _send_ mail, not to check for mail. What is it you want to achieve? > make it an notification I think you'd like to publish notifications via email, which can already be achieved with [email publishing](https://ntfy.sh/docs/config/#e-mail-publishing) (as I believe you know). ntfy ships with a tiny SMTP server to handle incoming mail. If you'd like to use your own mailserver, you can still do that by simply forwarding email for certain addresses to ntfy's mail server. Example: ``` person --[to: phil@example.com]--> mx1.example.com --[forwards to: mytopic@ntfy.example.com] --> mx1.ntfy.example.com --> ntfy ``` In this example, - mx1.example.com is your existing mail server for which you'd need to set up a forwarding rule - mx1.ntfy.example.com is the built-in mail server in ntfy. You'll still have to do the DNS/MX setup as described in docs though.
Author
Owner

@binwiederhier commented on GitHub (May 22, 2022):

Closing for inactivity. Happy to reopen and discuss more.

<!-- gh-comment-id:1133945090 --> @binwiederhier commented on GitHub (May 22, 2022): Closing for inactivity. Happy to reopen and discuss more.
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#184
No description provided.