this post was submitted on 05 Apr 2024
18 points (95.0% liked)

Selfhosted

40201 readers
735 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.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 1 year ago
MODERATORS
 

Hi all! I've been looking for a selfhosted system that can monitor one or more email accounts and check if a certain email with a particular subject arrives every day (or every x hours) and alert me if it doesn't (or if the subject is different). I need this to check if backups from different PC have run or not. The best thing would be to integrate it with Uptime Kuma. Any idea? Thanks!

Edit: I'm switching all my backup software to Restic (Autorestic on Linux machines) so I can send a ping to Uptime Kuma when every single backup successfully ends.

top 7 comments
sorted by: hot top controversial new old
[–] zinderic@programming.dev 3 points 7 months ago (1 children)

I would put a simple "grep mail.log || curl ntfy.sh" or something like that. Ntfy can send you alert on the phone if some check failed or passed. For pass just use && :) Simple and it works.

[–] anzo@programming.dev 1 points 7 months ago

Depending on how much infra you want to put up, there's also mailinabox that can do all (email aliases, etc.)

[–] doeknius_gloek@discuss.tchncs.de 3 points 7 months ago (1 children)

Does it have to be by monitoring emails or do you have control over the backup script? I'm using Uptime Kuma to monitor my backups via push monitors. My backup scripts call a webhook to indicate success or failure. If the webhook isn't called for X hours, the backup is also marked as failed. Works really well.

[–] peregus@lemmy.world 1 points 7 months ago

It has to be email monitoring. I'm already using Uptime Kuma for other notification (with ntfy) and I hope to find something that can check email to integra in Uptime Kuma.

[–] Moonrise2473@feddit.it 2 points 7 months ago

i always tell myself to write something like this but then i never have the time or the willing to do so...

i'm interested too if there's this

[–] johntash@eviltoast.org 2 points 7 months ago (1 children)

Not built in, but maybe a tool like windmill, nodered, or n8n? I think they all support imap and can run on a timer

[–] peregus@lemmy.world 1 points 7 months ago* (last edited 7 months ago)

I've tried doing it with Node Red some time ago, but the Email node could only read the last email (if I'm not wrong, I can't remember).

Edit: I've tried installing n8n some times ago, but it seemed too complicated, I've never tried Windmill, I'll have a look at it