Skip to content

The Moving Parts

Outcome: given any piece of a YunoHost system — an address book entry, a web page, an email — you can name which part produces it, and which parts are stock Debian software that YunoHost merely configures.

YunoHost itself is a comparatively thin layer. Most of what runs on the machine is ordinary, well-known server software. YunoHost's job is to install it, configure it as one coherent system, and keep it configured as you add users, domains and apps. The inventory below comes from the yunohost package's own dependency list in the source tree — the parts it cannot be installed without.

The foundation: Debian

Underneath everything is Debian 12 ("Bookworm"). YunoHost adds its own package repository (its "forge") to Debian's, and the YunoHost components themselves arrive as Debian packages. The current line is YunoHost 12.1 — the newest version recorded in the source tree's changelog when this guide was written is 12.1.41.2. System updates are Debian updates, delivered through the same machinery, which is why chapter 12 can treat "updating YunoHost" and "updating the operating system" as one job.

The directory: OpenLDAP

Every user, group and permission lives in an LDAP directory (the OpenLDAP server, slapd). LDAP is a standard address-book-for-accounts: programs ask it "does this person exist, and what is their password?" instead of keeping their own lists. Debian itself is wired to it (the NSS and PAM LDAP modules in the dependency list), so the same accounts work for logging into the machine, and Postfix and Dovecot are wired to it too, so the same accounts work for email. This is the machinery under chapter 6's simple promise: create a person once, and they exist everywhere.

The front door: nginx and SSOwat

Web traffic is served by nginx, a standard web server. In front of the apps sits SSOwat, YunoHost's own small component: it is the gatekeeper that checks whether a visitor is signed in at the portal and whether their permissions allow the page they asked for, and it can pass the user's identity to the app behind it. The user portal — the page of app tiles — is part of this layer. When chapter 6 talks about permissions deciding who sees what, it is SSOwat that enforces the decision, request by request.

The mail stack: Postfix, Dovecot, OpenDKIM, Rspamd

Email is four cooperating programs, all standard: Postfix sends and receives mail (SMTP); Dovecot stores it and serves it to mail programs (IMAP); OpenDKIM signs outgoing mail so receivers can verify it came from your domain; and a spam-filtering layer (Rspamd, visible in the service list a running server reports) scores what arrives. A local dnsmasq answers DNS questions inside the machine so its own names resolve even before the public DNS is perfect. Chapter 9 takes this stack apart and gives the deliverability warning it deserves.

The guards: nftables and Fail2ban

The firewall is Linux's nftables, managed by YunoHost's own yunohost firewall commands, and Fail2ban watches the login logs and temporarily bans addresses that keep failing to log in. Both ship configured; chapter 12 covers what they do.

The conductor: Moulinette, the API and the webadmin

YunoHost's own code is mostly Python. Its engine is a component called Moulinette, which exposes every administrative action — create a user, install an app, renew a certificate — through one API. Two faces sit on that API: the webadmin, the web interface an administrator clicks through, and the yunohost command, the command-line tool. They are not two systems; they are two windows onto the same actions, which is why chapter 5 teaches them together and why anything the webadmin can do can also be scripted.

The memory: configuration regeneration and hooks

YunoHost does not edit the underlying programs' configuration files by hand and hope. It regenerates them from its own settings — the regen-conf machinery — so that the nginx, Postfix and other configurations always match what the webadmin believes is true. And a system of hooks — named extension points — lets backups, app scripts and system jobs plug extra steps into standard operations. Chapter 11's backups are built from hooks: one per part of the system, one per app.

Which part holds what

You are looking at… The part responsible
A user's account and password OpenLDAP directory
The portal page and its tiles SSOwat
An app's web pages nginx, proxying to the app
An email in an inbox Postfix received it; Dovecot stores it
A spam verdict on a message Rspamd
A banned IP address Fail2ban, acting on the firewall
A closed port nftables, via yunohost firewall
Any button in the webadmin Moulinette's API, same as the CLI
A backup archive The backup system and its hooks
A health complaint The diagnosis system (chapter 10)