Today's Deep-Dive: b1gmail
Ep. 287

Today's Deep-Dive: b1gmail

Episode description

This episode explores b1gmail, an open-source project aiming to make self-hosting an email service accessible to everyone. It highlights how b1gmail provides a comprehensive solution, moving beyond just email to include calendar, task management, and even cloud drive features, all manageable on standard web hosting. The project emphasizes accessibility through a user-friendly setup wizard and a web-based administration panel, negating the need for deep technical expertise. Security is addressed with integrated spam filtering, Bayesian analysis, and ClamAV for virus protection. The document also touches upon the project’s history, its transition back to the GPL license, and its plugin architecture designed for community growth. Installation and maintenance are simplified, with tools to manage database updates. Ultimately, b1gmail is presented as a powerful, secure, and user-controlled alternative to commercial email services, potentially serving as a central hub for one’s digital life and promoting digital independence.

Gain digital sovereignty now and save costs

Let’s have a look at your digital challenges together. What tools are you currently using? Are your processes optimal? How is the state of backups and security updates?

Digital Souvereignty is easily achived with Open Source software (which usually cost way less, too). Our division Safeserver offers hosting, operation and maintenance for countless Free and Open Source tools.

Try it now!

Download transcript (.srt)
0:00

OK, let's unpack this. Welcome to the deep dive.

0:02

Today, we are tackling, well, one of the last major frontiers of self sovereignty.

0:07

Running your own email service.

0:10

Now, for most people, this probably sounds like a terrifying journey, you know,

0:12

configuration file hell, server reputation, blacklists, a constant battle against

0:17

spam.

0:17

But our mission today is to show you exactly how one

0:21

comprehensive open source project, B1 Gmail, provides a really clear,

0:25

non overwhelming entry point.

0:27

It essentially gives beginners everything they need to become their own email

0:30

service provider.

0:31

We've taken a stack of sources on B1 Gmail and we're distilling the key

0:35

knowledge nuggets so you can understand not just what the solution offers,

0:37

but why it fundamentally changes the game for personal digital control.

0:41

Before we dive into the technicalities, though, just a moment to thank

0:44

the dedicated team that supports this analysis.

0:46

SafeServer commits itself to hosting this software

0:49

and supports it by doing a digital transformation.

0:51

May info is under www.safeserver.de.

0:54

What's fascinating here is, well, the sheer ambition, really.

0:57

Running a modern, reliable email server used to be reserved for,

1:01

you know, enterprise IT departments with big budgets.

1:04

But B1 Gmail explicitly targets thousands of users, even organizations.

1:09

Yet their core message is all about accessibility.

1:12

They are genuinely trying to bridge that gap between high-end functionality

1:17

and the average user's ability to host their own services.

1:20

Right, and that accessibility seems rooted in the architecture itself.

1:24

The source material frames B1 Gmail as this complete, powerful,

1:27

and, well, versatile solution.

1:29

It says you can run a service for you, your organization, or for everyone.

1:34

It's designed not just as an inbox, but more like a total communication suite.

1:38

Exactly, and, you know, the initial barrier to entry and self-hosting,

1:42

it's almost always hardware and cost.

1:44

This is where B1 Gmail kind of throws the traditional rulebook out the window.

1:48

They make this pretty surprising claim that, thanks to sophisticated processing

1:51

and caching routines, the system can easily manage thousands of users

1:55

and millions of emails.

1:56

And yet, for most configurations, you don't even need a dedicated server.

2:00

Wait, hang on.

2:01

You're saying I could potentially run my own mail service, maybe even

2:04

with Calendar and Task Management, on standard shared web hosting.

2:09

That completely changes the picture, right?

2:11

It negates that fear of expensive infrastructure and complex maintenance.

2:16

It absolutely lowers the barrier massively.

2:19

When they say shared web space is sufficient for most features,

2:22

well, that's the green light for beginners, isn't it?

2:24

This architecture means you don't necessarily

2:26

need to worry about complex virtualization

2:29

or maintaining some high-resource physical machine just to test the waters.

2:33

It seems designed to be lightweight and efficient, really

2:35

maximizing that accessibility.

2:37

OK, that sounds great.

2:38

But doesn't a powerful system usually require

2:42

complicated underlying stuff?

2:43

What are the basic hurdles someone needs to check off?

2:46

Well, the underlying code is built primarily using fairly common web technologies.

2:50

PHP, smarty templates, CSS, and JavaScript.

2:53

For the average learner, the technical takeaway is pretty simple.

2:56

You need a modern web stack, specifically PHP version 7.2 minimum.

3:01

And for the database, mariadb is recommended.

3:05

Oh, but a quick and actually crucial technical note for anyone

3:07

using really cutting-edge hosting.

3:09

The sources warn that MySchool8 and higher is currently not supported yet.

3:13

So if you're using a very recent setup, you

3:15

definitely need to verify your database version first.

3:17

It's a pretty common kind of dependency check in the open source world.

3:20

Got it.

3:20

OK, so PHP 7.2 plus Arner, mariadb preferred, check MySchool version.

3:26

Understood.

3:27

Now, here's where it gets really interesting for me.

3:29

Because B1 Gmail doesn't just replace, say, Gmail.

3:32

It seems to aim to replace your entire digital productivity suite,

3:36

like an integrated ecosystem.

3:37

Absolutely.

3:38

That seems to be the goal.

3:39

It transforms the email server into, well, the potential central hub

3:44

of your digital life.

3:46

Beyond the basic inbox, you've got a full address book, a robust

3:49

calendar, and even a dedicated notepad for managing text notes.

3:53

But the integration seems to go much deeper

3:55

than standard web mail often does.

3:57

OK, give me an example of that deeper integration.

4:00

The source mentioned task management, which is honestly

4:02

a constant pain point for me.

4:03

Right.

4:04

The integrated task management looks like a major asset.

4:07

It's apparently not just a simple checklist.

4:09

You can manage multiple to-do lists, store arbitrary data

4:12

like, say, a dynamic shopping list that changes.

4:15

And the modern UI supports drag and drop

4:17

for moving entries around, for quick prioritization.

4:20

Everything seems designed to be managed

4:22

from the same clean, fast HTML5 interface.

4:25

OK, that's useful.

4:26

But the real head scratcher for me

4:28

was seeing Cloud Drive features mentioned and even modules

4:31

for SMS and fax.

4:33

I mean, fax.

4:34

Why on earth would a modern open source project build

4:36

fax capabilities into their core offering in, well,

4:39

today's world?

4:40

That's a fantastic point, actually.

4:42

And it points toward the organizational use cases,

4:44

I think.

4:45

While fax might seem totally irrelevant

4:47

for a personal self-hoster, think

4:49

about small businesses, nonprofits, or organizations

4:52

that interact with legal, governmental, or maybe

4:55

medical sectors.

4:57

Especially in Europe, fax is sometimes

4:59

still a required, secure communication tool.

5:03

So by integrating SMS and fax, B1 Gmail

5:06

isn't just serving the individual.

5:08

It's providing a legitimate, unified communication server

5:11

option for maybe a small office, one

5:13

that needs regulatory compliance,

5:15

or just uses those traditional communication methods all

5:18

within the same self-hosted environment.

5:20

Ah, OK.

5:21

So it's about providing feature parity

5:24

with some commercial enterprise solutions,

5:26

but keeping it under your own roof.

5:27

That makes a lot more sense.

5:28

Exactly.

5:29

And the power users, I think they'll really gravitate

5:31

toward the intelligent organizational tools.

5:33

We definitely need to talk about smart folders.

5:35

The developers call them search folders.

5:37

OK, I'm intrigued.

5:38

I just file everything manually into like archaic folders.

5:41

Tell me how smart folders change that.

5:43

Well, they seem to fundamentally change

5:45

the paradigm from manual filing to something more

5:47

like algorithmic discovery.

5:49

So instead of driving a receipt into your receipts 2024

5:52

folder, you define criteria like maybe all emails

5:56

contain the word invoice from a specific vendor,

5:59

and the smart folder automatically collects them.

6:01

It's basically a dynamic, persistent search

6:03

that lives right there in your sidebar.

6:05

You can set them up to pull in all high-priority mail,

6:08

all unread mail, or even, quite cleverly,

6:11

all unanswered mails.

6:12

It means your inbox could potentially

6:14

prioritize your action items without you needing

6:16

to manually sort everything constantly.

6:19

Wow.

6:19

OK.

6:20

That actually sounds genuinely transformative for productivity.

6:23

It really does.

6:24

And complementing that is the powerful filtering system.

6:27

This is where you set up rules to trigger specific actions

6:30

when matching emails arrive.

6:32

For example, if you get an urgent server alert email,

6:35

you could define a rule to automatically respond

6:37

to the sender acknowledging receipt,

6:39

maybe move the email to a defined high priority folder,

6:41

and notify you via SMS.

6:43

This is serious automation potential, all controlled

6:46

directly by the user.

6:47

Right.

6:47

If that level of automation is happening,

6:49

the administrator needs pretty powerful control.

6:51

Yeah.

6:53

How does B1 Gmail ensure the admin keeps everything

6:56

perfectly under control without necessarily

6:58

needing to be like a Linux terminal expert?

7:00

Good question.

7:01

Control seems to be handled via the administration control

7:04

panel, or ACP, which is entirely web-based.

7:08

No command line needed for day-to-day stuff.

7:11

And crucially for beginners, administration

7:13

is apparently highly simplified right from the start,

7:15

using a clear setup wizard.

7:17

This guides the admin through those initial complexities

7:20

that often scare people off, self-hosting things

7:22

like domain configuration and user setup.

7:25

OK.

7:25

Let's tackle the biggest fear of self-hosting email for many,

7:28

security and especially spam.

7:30

Gmail just handles that for us, right?

7:32

If I host it myself, how does B1 Gmail protect me?

7:35

Yeah, that's always the concern.

7:37

This is where B1 Gmail appears to integrate professional grade

7:40

protection.

7:41

They seem to employ a dual strategy for spam filtering.

7:44

First, they use traditional DNS BL blacklists.

7:47

For the listener, this is pretty simple.

7:49

The server checks if the sending server's IP address

7:51

is known for sending spam.

7:53

And if it is, the mail gets rejected instantly,

7:55

standard practice.

7:57

The second and maybe more adaptable defense

7:59

is the statistical content analysis

8:01

provided by a Bayesian spam filter.

8:03

Now, unlike a simple blacklist, this filter

8:06

actually learns the content of spam over time.

8:09

If you, the user, mark an email as spam,

8:11

the filter adapts almost immediately

8:13

to that language, those keywords, those patterns.

8:16

It's user trainable and adapts quickly to new spam campaigns,

8:19

which is, well, essential in today's constantly changing

8:21

threat landscape.

8:22

That adaptability sounds crucial, definitely.

8:24

What about the really nasty stuff,

8:26

like viruses and trojans and attachments?

8:28

Right.

8:28

To complete the defense strategy,

8:30

B1 Gmail integrates an interface to the free open-source anti-virus

8:35

software, Clamavie.

8:37

This basically allows the system to scan all incoming emails

8:40

and attachments for known threats

8:41

before they ever even hit a user's inbox.

8:43

OK, so blacklist, trainable Bayesian filter,

8:46

and Clamavie integration.

8:47

That sounds pretty robust.

8:48

And this robust security framework

8:50

brings us neatly the core ethos of the project, open source.

8:54

The source material details a kind of interesting history

8:56

here.

8:57

It does, yeah.

8:58

The founder, Patrick Schlangen, apparently

9:00

started the project as freeware.

9:01

Then it briefly went commercial with version 6.

9:04

But the transition back with version 7.4.1 to the GPL license

9:08

and removing all proprietary components, well,

9:10

that's a powerful statement, isn't it?

9:12

The GPL license guarantees user freedom and transparency,

9:15

really reinforcing that promise of self-sovereignty.

9:19

Furthermore, the architecture seems

9:21

designed to encourage community growth through a clean plugin

9:24

interface.

9:25

This means developers can add new functions pretty easily

9:28

without actually altering the original source code,

9:31

a process sometimes called not forking the core product.

9:34

And this is a really vital feature,

9:35

because those plugins should then

9:37

survive core product updates, ensuring

9:39

better backward compatibility and long-term viability

9:42

for community enhancements.

9:44

So the core stays stable, but the community can build on top.

9:48

Makes sense.

9:50

Now, for the listener who is maybe sold on the features

9:53

but still feels intimidated by the whole server setup idea,

9:57

we need to summarize the installation process.

9:59

The key takeaway from the sources

10:00

seems to be that the process is highly guided.

10:03

We're not listing commands here.

10:05

We're just framing the path to getting it running.

10:07

Exactly.

10:08

The recommended path, especially just for testing it out,

10:11

is on a standard local or shared web server environment,

10:14

providing that easier entry point.

10:16

And the process leans heavily on that setup wizard we mentioned.

10:20

OK, so you grab the code from the repository.

10:21

You set up your database, as discussed.

10:23

And then the critical step seems to be

10:25

making sure the setup wizard can actually run.

10:28

The source explains you need to copy the default configuration

10:31

files over.

10:32

And then this is the key summary for the listener.

10:34

You effectively need to unlock the installation

10:36

by deleting a single lock file in the setup directory.

10:39

That's right.

10:40

Then you just point your web browser

10:41

to the installation folder, like yourdomain.com forward slash

10:44

i1gmails src.

10:46

And the wizard takes over from there.

10:48

It provides that clear step-by-step guidance.

10:51

The whole process really seems designed

10:52

to hold the beginner's hand through those trickiest

10:54

initial configurations.

10:56

OK, that sounds manageable.

10:58

And what about maintenance?

10:59

That's often the second big fear.

11:00

Yeah.

11:01

That updating the system will break everything horribly.

11:03

Yeah, a valid concern.

11:05

The source material addresses this directly, too.

11:07

When you pull new code changes from the repository,

11:10

if there happen to be underlying database structure changes

11:13

needed, you don't have to manually execute

11:16

complex SQL scripts.

11:17

You either run a dedicated synchronization script

11:19

provided, tools dbsync.php, or probably more conveniently,

11:23

you just log into the administration control panel,

11:25

go to Tools, choose Optimize, and hit Check Structure.

11:28

The system basically manages that database update complexity

11:31

for you.

11:32

This raises an important question.

11:34

Why bother going through these steps

11:36

when you could just use a massive commercial platform

11:38

like Google or Microsoft?

11:40

And the answer seems to be the combined power of that feature.

11:43

Setful calendaring, smart folders, robust filtering

11:46

delivered entirely under your control,

11:48

backed by the transparency of the GPL license.

11:50

It's really a powerful example of how open source projects are

11:53

providing high quality professional alternatives

11:56

to those big commercial platforms.

11:57

And the fact that the installation process sounds

11:59

so well documented and wizard driven

12:02

makes that leap feel, well, much more

12:04

manageable for anyone willing to invest a little time

12:07

in their digital independence.

12:08

So what does this all mean for you, the listener?

12:11

Well, running your own robust email service

12:13

is maybe no longer just a pipe dream reserved for IT experts.

12:17

B1 Gmail seems to make it genuinely accessible,

12:20

even allowing you to start potentially on shared web space.

12:23

It's incredibly feature rich, covering productivity

12:26

needs from smart folders and calendars

12:27

all the way to cloud storage, and even

12:29

those enterprise communication methods

12:31

like fax we talked about.

12:32

And crucially, it appears to provide professional grade

12:35

security through things like Beijing spam filters

12:37

and clemev integration.

12:39

Yeah, and the ability to integrate

12:41

such diverse functions, email, task management, SMS,

12:44

fax all in one place.

12:45

It suggests that for the dedicated self-hoster,

12:47

the email server powered by a unified tool like B1 Gmail,

12:51

it kind of transcends being merely a male client,

12:53

doesn't it?

12:54

It really could become the true central self-hosted OS

12:57

for your digital life, ensuring maximum control

13:00

over your communications and your productivity data.

13:02

That integration, that idea of a central hub,

13:06

that's the final provocative thought

13:07

we want to leave you with today.

13:09

If we can centralize our communications and productivity

13:11

tools into one self-hosted hub like this,

13:15

what other digital services could we potentially

13:18

take back control of and maybe seamlessly integrate

13:21

into that same central architecture?

13:23

Something to think about.

13:24

Absolutely.

13:25

And we definitely encourage you to explore the open source

13:27

nature of the project further, perhaps even

13:30

contribute to its evolution, making

13:32

that vision of digital independence

13:34

even stronger for everyone.

13:36

A huge thank you once again to our sponsor

13:37

for supporting this deep dive into these important self-hosting

13:40

solutions.

13:41

SafeServer convinced us hosting these as software.

13:44

Mehr Infos unter www.safeserver.de.

13:44

Mehr Infos unter www.safeserver.de.