getumbrel / umbrel-apps

The official app repository of the Umbrel App Store. Submit apps and updates here. Learn how → https://github.com/getumbrel/umbrel-apps#readme
https://apps.umbrel.com
528 stars 398 forks source link

[App Request] Email server #588

Open angrypanda0 opened 2 years ago

angrypanda0 commented 2 years ago

A self-hosted email server (using Tor ofc) would be a great addition to Umbrel

louneskmt commented 2 years ago

It is not possible to use Tor for an email server, as it needs to be accessible from any clearnet server. I can't really see how that could be added to Umbrel.

angrypanda0 commented 2 years ago

My understanding is that one can host an email server as a Tor hidden service. It would have a .onion address and can only communicate with other .onion email addresses. I don't think it "needs to be accessible from any clearnet server," though I suppose you may have meant that statement from a UX perspective.

louneskmt commented 2 years ago

When you send a mail, you send it to your mail server for it to send it to your recipient mail server. So the recipient server needs to be accessible from the sender server.

angrypanda0 commented 2 years ago

I open up Tor, access my Umbrel dashboard, open up the email app UI, and send an email from my .onion address to another .onion address. Just like it works here, except self-hosted: http://torbox36ijlcevujx7mjb4oiusvwgvmue7jfn2cvutwa6kl6to3uyqad.onion/. Maybe you meant that it wouldn't work with any email clients, which attempt to send emails to the server via clearnet? That's a downside, yeah.

louneskmt commented 2 years ago

So I guess you wouldn't be able to receive mails from ppl not using a Tor based email server. And that's a huge downside.

angrypanda0 commented 2 years ago

Yes

yzernik commented 2 years ago

If you are going to use one of the existing self-hosted mail servers (Mailu, docker-mailserver, etc.) you could replace SpamAssassin with a custom mail filter that requires lightning payment.

Anyone who wants to send email to me needs to pay 5 sats (or whatever amount I configure) for the email to reach my inbox.