Email, Honestly
Outcome: you know what mail service YunoHost gives every user, what it costs you in attention, and why the chapter title has a warning in it.
YunoHost does not integrate with an email provider. It is an email provider. The moment your first user exists, the server runs a complete mail system for your domain — and this chapter's job is to make sure you adopt it with your eyes open, because email is the one part of self-hosting where doing everything right still does not guarantee the result.
What you get
From the dependency list and the documentation, the stack is the standard professional one:
- Postfix receives mail for your
users and sends their outgoing mail
(SMTP). Every user created in chapter
6 is a mailbox:
username@domain.tld, with optional aliases (extra addresses delivering to the same mailbox), forwards (addresses that pass mail on elsewhere) and a mailbox quota the administrator can set. - Dovecot stores the mail and serves it to mail programs over IMAP, so a phone, a laptop and a webmail app from the catalogue all see the same inbox. Both Postfix and Dovecot check accounts against the LDAP directory — the same single identity as everything else.
- OpenDKIM signs outgoing mail, and the DNS records of chapter 7 (MX, SPF, DKIM, DMARC) tell the world how to verify it.
- A spam filter (Rspamd) scores
incoming mail; the admins group's
aliases mean mail to
root@andadmin@— where the server sends its own alerts, including diagnosis findings — reaches a human. - The server checks itself: the mail diagnoser in chapter 10 verifies, among other things, that your address is not on public blocklists, that your reverse DNS matches the name your server announces (the "EHLO" check and its forward-confirmed reverse DNS test), and that the outgoing mail queue is not backing up.
Users read mail with any standard mail program, or with a webmail app installed from the catalogue, using the same password as the portal.
The deliverability warning
Now the honest part. Whether your mail arrives is decided by the receiving side — large mailbox providers in particular score a sending server on its history and reputation, and a new, small server starts with none. The YunoHost documentation and community are frank about the recurring causes of trouble:
- A home internet connection is the hardest place to send mail from. Residential address ranges are widely treated as suspicious by default; some appear on blocklists simply for being residential or dynamic ("sent directly from dynamic IP address" is a verdict real YunoHost users see from spam scoring). Many home ISPs also block outgoing port 25 entirely — the diagnosis tool will tell you, since it checks port reachability.
- Reverse DNS is not optional. If the reverse lookup of your address does not match your server's name, expect rejections. It is set by your ISP or VPS provider, not your registrar (chapter 7), and some home providers will not set it at all.
- The records must all be right at once — MX, SPF, DKIM, DMARC and the reverse DNS. YunoHost generates and checks them, which removes the typos but not the waiting: a new domain's mail commonly lands in spam folders for a while even when perfectly configured, until recipients reply and mark it not-spam and a reputation accrues.
None of this is YunoHost's fault, and none of it is fixable by configuration alone. It is the economics of modern email: the big receivers trust big senders.
Sensible ways to use it
- On a VPS with a clean address and settable reverse DNS, YunoHost mail is a reasonable primary mailbox for a household, with the diagnosis tool as your early-warning system.
- At home, consider the local mailboxes excellent for mail between your users and your apps — password resets, alerts, notifications, the server's own reports — and be cautious about making them your household's only address for the outside world until you have watched deliverability for a while.
- Either way, keep an outside address somewhere in the loop: the admins should receive the server's alerts at an address that does not depend on the server being healthy.
Email is the chapter where this guide most recommends humility. YunoHost gives you a real mail server, correctly built. Whether the internet's mail giants choose to hear it is a reputation you earn over months, and chapter 10's diagnosis is how you watch it happen.