this post was submitted on 22 Jan 2024
20 points (100.0% liked)

Open Source

31185 readers
206 users here now

All about open source! Feel free to ask questions, and share news, and interesting stuff!

Useful Links

Rules

Related Communities

Community icon from opensource.org, but we are not affiliated with them.

founded 5 years ago
MODERATORS
 

I like using thunderbird to have all my emails in the same place, in a unified inbox. This doesn't allow me to access my inbox on my phone etc though, so I'm looking for a FOSS way to solve this problem.

My idea would be to selfhost a website, like a webmail site, that has the functionality of connecting to different mail servers and unifying the inbox to get all my mail in the same place. Should be accessible by android phones and iPads.

Is there a better way to do this? Maybe with nextcloud? If anyone has an idea, let me know.

top 31 comments
sorted by: hot top controversial new old
[–] [email protected] 15 points 9 months ago

K-9 mail app on android has a unified inbox. This is a FOSS app and part of thunderbird now.

[–] [email protected] 4 points 9 months ago* (last edited 9 months ago) (1 children)

Cypht can do that and can be installed via Yunohost for example on a Raspberry Pi or rented VPS.

[–] [email protected] 2 points 9 months ago

Sounds very good. I do have a vps, so I'll try it.

[–] [email protected] 2 points 9 months ago (1 children)

Hmm sounds like a Webmail client, like Roundcube. Luckily (at least from my point of view) it has no 'unified inbox', but you can have as many mail accounts you want, with one login, from different vendors. You can selhost it easily. I use it on a Raspberry Pi with one login and have then access to gmail, yahoo and some other accounts.

To mimic a 'unified inbox' you can forward all the different accounts, to one 'major' account, so that you receive every mail in this inbox. Than you can create a 'sending alias', to answer the incoming mails with the proper SMTP service. Nothing easier than that with Roundcube.

[–] [email protected] 1 points 9 months ago (2 children)

That sounds good too. Thinking about it, I dont necessarily need a unified inbox, it's just makes my life easier. Thank you.

[–] [email protected] 2 points 9 months ago

https://roundcube.net/ is the main webside. You can download the complete *.tar.gz file from https://github.com/roundcube/roundcubemail/releases. Screenshots are at https://roundcube.net/screens/

[–] [email protected] 1 points 9 months ago

you could set up email accounts as forwarders to a single account. And on the email client add these accounts as aliases so you can reply with them. So you get a single unified view of emails as well as ability to reply with the one you want.

[–] [email protected] 2 points 9 months ago

Maybe a bit patience will do, since Thunderbird is planning to...

a) make an iOS app b) add support for sync to you can sync your settings and account conifgurations between devices

I don't know of any good solution that works right now however. :-/

[–] [email protected] 1 points 9 months ago (1 children)

I do that with p≡p mail. Unified inboxes work like a charm, plus other nice features.

https://pep.software/

[–] [email protected] 1 points 9 months ago

Never mind. Sorry for the post. My brain seems to ignore anything that's remotely attached to Apple and I completely missed the iOS part.

[–] [email protected] 1 points 9 months ago (2 children)

I am... Confused about your request. Why can't you also have the same on your phone? Are you still using popmail? Sounds like simply setting your accounts to IMAP should solve your problem.

[–] [email protected] 1 points 9 months ago

Unless his email server doesn't support IMAP :-(

[–] [email protected] 1 points 9 months ago

I mainly want to be able to view them on my iPad. I can only use the web browser and not install apps on there.

[–] [email protected] 0 points 9 months ago

I'd suggest trying FairEmail on your phone, https://email.faircode.eu/, before trying to set up an email server.

I would ask if you have good knowledge of IMAP. That allows access to a unified inbox from several devices and you don't have to own the server. It is far preferable to webmail for me.

I host my own email server and use many devices all over IMAP. If you need a server, nixos-mailserver is my recommendation. You could then try Roundcube on top but I bet you will use IMAP instead before you get there.

[–] [email protected] -3 points 9 months ago (3 children)

Websites do not have the functionality to connect to mail servers. These are different protocols.

For mail server infrastructure, Stalwart is said to be pretty good. I haven't had a chance to try it yet.

[–] [email protected] 5 points 9 months ago* (last edited 9 months ago) (1 children)

This doesn't make sense.

A website is basically just the responses a server sends to a browser. That server has any functionality you want it to.

[–] [email protected] -2 points 9 months ago* (last edited 9 months ago) (1 children)

A website is the response a web server sends on a web port to a web browser. SMTP on port 80/443 won’t work well, but please try.

[–] [email protected] 4 points 9 months ago (1 children)

You understand that computers can use more than one port?

There's nothing abnormal about what he's requesting.

[–] [email protected] -3 points 9 months ago (1 children)

You understand that web servers (listening on a web server port) and mail servers (listening on one or more mail server ports, possibly on the same computer) are entirely different technologies?

[–] [email protected] 4 points 9 months ago (1 children)

They're just protocols. There's nothing preventing a program from interacting with both. Webmail isn't some mystical art no one's ever thought of before.

[–] [email protected] -3 points 9 months ago (2 children)

Again, I’m talking about the server part here, and there is a lot preventing a server to be both a web and a mail server.

[–] [email protected] 3 points 9 months ago

Doesn't look like "a lot" to me. 15 years and going strong. The first page of google results for "how to set up a mail server" all include webmail, which would be both a web and a mail server.

[–] [email protected] 3 points 9 months ago

It's just a computer (or program, depending on context). It can do whatever you want it to.

If I want to write/modify a mail server that watches video feeds from 6 different beaches and only bothers accepting mail when beaches 2, 3 and 5 are empty and beaches 1, 4, and 6 have 500 people, nothing is stopping me. It's stupid and a waste of time, but it's a computer. It can run arbitrary code.

That's ignoring that if you read what he wants, it would be a client to the actual recipient mail server and only needs to actually serve the web interface so that he can access his email from various browsers.

[–] [email protected] 3 points 9 months ago (1 children)

Stalwart looks neat, thanks for mentioning it. 🐧

[–] [email protected] 1 points 9 months ago (2 children)

If you try it, report back. ;-) My current setup is mostly OpenSMTPD & Dovecot, but I'm open for good reasons to move away.

[–] [email protected] 2 points 8 months ago (1 children)

Tested Stalwart, the all in one option with both JMAP and IMAP. Looks fairlygood, works fine with IMAP and SMTP, but making it work with JMAP clients took me some time. This page helped for the F-Droid client lrr.rs. With Cypth it was a no go. SnappyMail webmail software is not mentioned on the JMAP clients page at all but it is with development 1/2 done with JMAP implementation. In a few months time Stalwart is expected to have a web interface for admins. Looking forward to testing again when that is available.

[–] [email protected] 1 points 8 months ago

Thank you! :-)

[–] [email protected] 2 points 9 months ago* (last edited 9 months ago) (1 children)

okay :) I find it interesting because :

  • Build in Rust
  • Supports several databases like rocksdb, PostgreSQL, MySQL, SQLite
  • Seems to support connecting to your current logins setup e.g. LDAP or MySQL db
  • Got funding via NLnet
  • Supports JMAP
  • Does not seem to require Docker (which means for me some flexibility network config wise to run it on an existing server where non Docker based services are running).
  • Encryption at Rest enabled or disabled by user.

Especially the JMAP part I am curious about. I hope to toy with this every now and then, and then report back :)

[–] [email protected] 1 points 9 months ago (1 children)

JMAP sounds interesting indeed, but as far as I understand, there is an underwhelming number of clients that speak it?

[–] [email protected] 2 points 9 months ago

Ah, yes, you're right, cheers for that, but I am interested to compare JMAP speed and options with IMAP. And to test Stalwart I would not mind using the first and the last three in that Clients list.

[–] [email protected] 0 points 9 months ago

Of course. I want to have a webmail websever. It's an interface for viewing and writing mails with the backend doing the mailserver connection.