1
submitted 10 months ago by Stetsed@alien.top to c/main@selfhosted.forum

Hey everybody, recently I was looking for a way to get notifications from various apps including proxmox etc. So the problem I ran into is that these apps sometimes only supported e-mail which I don't like as I just don't want to deal with it, and I also want my users to be able to reset there own passwords etc.

So I found a sort of hacky workaround which involves using mailrise(which is a SMTP gateway that redirects the e-mails to a diffrent platform), and then deliver it to an ntfy.sh topic which is then selfhosted, but still with push notifications due to the nifty work by the ntfy.sh creator. This let's me get push notifications on my device while being nearly completley selfhosted, and I have started using this for my SSO(Zitadel), my Jellyseerr instance and a few other things.

And the cool thing is I can even have it work for multiple users, by saying "All e-mails going to example1@example.com go to the topic example1, while foo2@example.com goes to the topic foo2" and then by using the login system inside of ntfy.sh I can give each of my users a login that can acces there own topic and get notifications that way.

I have documented it on my blog which takes both the mailrise and ntfy.sh docker containers and gives the config files you need. It will by default let anybody write to a topic so you don't need to authenticate mailrise, but you can change this to avoid spam. Incase there are any questions feel free to leave them in the comments, and sorry for the guide being shorter and less detailed than others as it was mostly ment for my internal docs but I thought it might be handy for others.

https://stetsed.xyz/posts/email-notifications-with-ntfy-and-mailrise/

you are viewing a single comment's thread
view the rest of the comments
[-] jamesckelsall@alien.top 1 points 10 months ago

What advantage does this have over just using ntfy's built-in SMTP server? As far as I can tell it does the same thing but with higher overheads and more places for things to go wrong.

[-] Stetsed@alien.top 1 points 10 months ago

Well... answer is I didn't know NTFY had a built in SMTP server. I just used this combo cuz before I used it to send my notifications to discord which mailrise makes easy. I will say that mailrise does let you more granulary define what e-mails will be sent to what topic while NTFY just uses the recieving address as the topic which might not be wanted.(I can for example define stetsed@* which means it doesn't matter if I use one of my other domains, or father@* which means he could use whatever domain he would want).

this post was submitted on 13 Nov 2023
1 points (100.0% liked)

Self-Hosted Main

502 readers
1 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

For Example

We welcome posts that include suggestions for good self-hosted alternatives to popular online services, how they are better, or how they give back control of your data. Also include hints and tips for less technical readers.

Useful Lists

founded 1 year ago
MODERATORS