Ntfy.sh Protonmail notifications
fedilink
143
Ntfy.sh Protonmail notifications

cross-posted from: https://lemmy.world/post/17087912

Protonmail relies solely on Firebase for receiving notifications on Android. While UniversalPush support is probably in the works, it may take some time until users on ROMs without GSF get built-in notifications.

For those that already use ntfy.sh as a push provider for other apps, https://github.com/0ranki/hydroxide-push is a solution to get push notifications of new mail in Inbox.

The service requires a Linux box to run on, and can be deployed as a container or by running the provided binary. Building from source is of course also an option.

The service is a stripped down version of Hydroxide, the FOSS Protonmail Bridge alternative. There are no ports exposed, all communication is outwards. Communications to Proton servers use the Proton API. The service only receives events from Proton servers, and if the event is incoming mail, a notification is sent to a ntfy.sh server and topic of your choice. Other types of events are simply disregarded, and no other processing is done. The sent push event does not contain any detailed information.

EDIT: Starting from version v0.28.8-push7 the daemon supports HTTP basic auth for the push endpoint.

Disclaimer: I’m the author. All of the work is thanks to https://github.com/emersion/hydroxide, I’ve merely mutilized the great upstream project of most features for a single purpose. Issues, comments and pull requests are welcome!

Possibly linux
link
fedilink
English
24M

Can’t you just use K-9 mail? Why is there a need for a dedicated Proton mail app

sunglocto
link
fedilink
English
104M

IMAP only works with paid accounts

It only works through the Proton Mail Bridge application, which is only available for desktop. That’s because Proton’s end-to-end encryption makes it impossible to access your emails while they are on Proton’s servers via IMAP. They would need to be decrypted on the server, but that would make the entire encryption pointless. The Proton Mail Bridge connects to the server, downloads the encrypted data, decrypts it locally on your PC and locally exposes an IMAP server, which contains your decrypted messages.

Proton has pretty poor third party support

It’s because of the encryption, any encrypted email provider has this issue, it’s not specific to Proton

qaz
link
fedilink
English
34M

It’s E2EE therefore you can’t just use an IMAP server that works with “plaintext” data.

Possibly linux
link
fedilink
English
24M

Email as a protocol doesn’t really support E2EE as a protocol. However, IMAP supports several forms of SSL and SSL is required by most providers.

SSL is not E2EE

Possibly linux
link
fedilink
English
14M

That’s what I said

qaz
link
fedilink
English
14M

Yes, plain text was more of an analogy

@Decronym@lemmy.decronym.xyz
bot account
link
fedilink
English
5
edit-2
4M

Acronyms, initialisms, abbreviations, contractions, and other phrases which expand to something larger, that I’ve seen in this thread:

Fewer Letters More Letters
IMAP Internet Message Access Protocol for email
SMTP Simple Mail Transfer Protocol
SSL Secure Sockets Layer, for transparent encryption

3 acronyms in this thread; the most compressed thread commented on today has 8 acronyms.

[Thread #844 for this sub, first seen 2nd Jul 2024, 13:05] [FAQ] [Full list] [Contact] [Source code]

Bazsalanszky
link
fedilink
English
94M

I haven’t heard of Hydroxide before; thank you for highlighting it! Just one question: Does it also require a premium account like the official bridge, or is it also available for free accounts?

@oranki@lemmy.world
creator
link
fedilink
English
44M

I think it does require a paid account, Hydroxide basically acts like the official Proton bridge.

I haven’t actually tested with a free account, so there’s a chance it does work. When you run the auth command (which is the same as upstream Hydroxide), it will probably throw an error.

If you have a free account and try this out (or Hydroxide), please report how it goes back here, I’ll add a note to the readme. Upstream doesn’t seem to mention this in their repo either.

Hydroxide was specifically created as a free replacement for the official Proton Mail Bridge, so no, it doesn’t require a subscription

Bazsalanszky
link
fedilink
English
54M

Currently, I only have a free account there. I tried Hydroxide first, and I had no problem logging in. I was also able to fetch some emails. I will try hydroxide-push as well later.

@oranki@lemmy.world
creator
link
fedilink
English
44M

In that case hydroxide-push will work too, which is good news!

Just note that the IMAP, SMTP and CardDav functions have been stripped out from this push version. If there’s interest to have those too, a different version with the push stuff added on top of full Hydroxide could be made. It will require a bit of time to develop.

The scope of hydroxide-push is only push notifications for now.

@Tregetour@lemdro.id
link
fedilink
English
144M

Notifications are overrated. I turn them off for the bulk of apps.

Devote one or two small time windows each day for life admin. Outside those windows it shouldn’t be seen or heard.

@helenslunch@feddit.nl
link
fedilink
English
134M

…I mean for the bulk of apps, sure. For email though?

@Tregetour@lemdro.id
link
fedilink
English
24M

Context is king. If there’s vital/time-dependent correspondence you’re waiting on, notifications can matter. But email in 2024 is pretty darn transactional, in which case a daily check is enough for most. Notifications for something suggest that I need to drop what I’m doing and attend to whatever arrived. That just doesn’t apply for service provider marketing, purchase receipts, etc.

And then the opsec angle comes into play: https://www.axios.com/2023/12/06/apple-google-requests-push-notification-data

@helenslunch@feddit.nl
link
fedilink
English
24M

a daily check is enough for most

Yeah I have to strongly disagree.

And then the opsec angle comes into play:

Which is why Proton’s notifications have been encrypted for years.

@oranki@lemmy.world
creator
link
fedilink
English
84M

In that case it’s definetly worth it to try this out, just so you have one more notification to disable

Create a post

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!

  • 1 user online
  • 172 users / day
  • 450 users / week
  • 1.17K users / month
  • 3.85K users / 6 months
  • 1 subscriber
  • 3.69K Posts
  • 74.3K Comments
  • Modlog