this post was submitted on 26 Oct 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
 

Struggling to find the usecase for apprise, I think I'm missing something major :D

Can you run apprise centrally and have it receive on multiple channels (smtp, webhooks, maybe syslog etc)?

I.e. can you have it independently hosted and apps/services send messages to it which are then forwared by apprise via the preconfiged channel (email, discord, signal etc.)

My scenario is (simplified):

I have homeassistant automations running which send smtp messges to a local smtp relay which forwards the emails via gmail to me.

I now have a requirement of another server that sends notifications via a webhook (that is the only supported method).

How can I receive messages on multiple different channels (smtp, webhooks, maybe syslog etc) and send via smtp (or something else I choose in the future). Is apprise going to help here?

TIA!

top 3 comments
sorted by: hot top controversial new old
[–] thekrautboy@alien.top 1 points 11 months ago (1 children)

Struggling to find the usecase for apprise, I think I'm missing something major :D

Just from 2 days ago: https://www.reddit.com/r/selfhosted/comments/17ffx39/eli5_apprise/

How can I receive messages on multiple different channels (smtp, webhooks, maybe syslog etc) and send via smtp (or something else I choose in the future).

I would use n8n for that, you can feed almost anything as input to it, and output it as almost anything. Similar tools are automatisch and activepieces.

[–] reddit-gk49cnajfe@alien.top 1 points 11 months ago

Thanks, I did look into n8n, but I couldn't find an SMTP trigger? At least it doesn't look to ship with one built in. And I did like the fact that it has Google Tasks as a node, send like that might be the way for me

[–] JoeB-@alien.top 1 points 11 months ago

It may be me, or Reddit could be flaking out, but it appears that everyone except you and I have deleted their comments. I also cannot reply to your comment about N8N, so I am commenting again. Weird...

I recommended Pushover in my previous comment. To address your initial question, I'm running Docker containers for Mailrise, which provides an SMTP gateway that embeds Apprise code, and also Apprise standalone. I use Mailrise for services that support only SMTP notifications (e.g. Proxmox). Mailrise translates an email message and, using Apprise code, submits it to Pushover. I use Apprise standalone for receiving notifications from Healthchecks, which monitors cron jobs. Healthchecks supports a number of notification services, but standalone Apprise was the best fit for me.

As I understand, Apprise has its own light-weight HTML API for creating and configuring notification endpoints. It can create a webhook endpoint, but I don't believe it receives messages as webhooks.

Like me, you probably will need multiple services. I tossed up an N8N container out of curiosity. It can accept a webhook and then act on it. It also supports Pushover. So, it looks like a webhook to N8N can be translated to a Pushover notification. Using Mailrise (for SMTP messages) along with N8N (for webhook and other messages) should provide the extensibility you're looking for.

Again, I highly recommend Pushover. Receiving notifications from many different sources, that are organized into "applications" with their own icons, in one mobile app is a tremendous benefit... to me anyway.