binwiederhier / ntfy

Send push notifications to your phone or desktop using PUT/POST
https://ntfy.sh
Apache License 2.0
18.55k stars 730 forks source link

Allow publishing via local emails without the need for an authentication token #1169

Open y86-dev opened 3 months ago

y86-dev commented 3 months ago

:bulb: Idea

I am planning on running ntfy on my server. Since I don't want anyone except me and my friends to use it, I will set auth-default-access = deny-all and all users will have passwords. Additionally I have configured local emails and would like to send emails without requiring an authentication token, since all emails are coming from the server itself and it requires me to manually reconfigure the emails for all services.

I would be willing to try creating an implementation. I think it would suffice to add an option accept-unauthorized-emails that selects this behavior. I am not sure, but it might be a good idea to only allow activating this when smtp-server-listen = :25.

:computer: Target components