diff --git a/docs/development.md b/docs/development.md
index 4b75329..2419857 100644
--- a/docs/development.md
+++ b/docs/development.md
@@ -176,6 +176,125 @@ it again. Coulobre checks the SOA serial, reloads the individual zone, and
waits for BIND9 to report the requested serial. Reapply the same manifest to
resume after an interrupted reload. See the [BIND9 command reference](https://bind9.readthedocs.io/en/v9.18.39/manpages.html#rndc) and [RFC 1982](https://www.rfc-editor.org/rfc/rfc1982.html).
+## Request a virtual mailbox
+
+Open a hosting account and select **Request mailbox**. Enter the part before
+the `@`, such as `support`. The panel uses the account's primary domain,
+lowercases the local part, and converts the domain to its ASCII DNS form.
+Existing mailbox requests keep their addresses when the primary domain changes.
+
+The **Mailbox requests** table shows the email addresses. Operators can
+download a versioned manifest that contains the domain and local part.
+Resellers can see mailbox requests on their assigned accounts.
+
+Run the installed node command to validate the manifest and display its
+address. The manifest describes a virtual user for the Postfix and Dovecot
+mail stack. See the [Dovecot guide to Postfix and LMTP](https://doc.dovecot.org/2.3/configuration_manual/howto/postfix_dovecot_lmtp/).
+
+```sh
+coulobre-mail-node inspect coulobre-mailbox-1.json
+```
+
+### Apply a mailbox manifest
+
+Use an Ubuntu 24.04 mail node with Postfix, Dovecot 2.3 and the `dovecot-imapd`
+and `dovecot-lmtpd` packages. Install Coulobre in a root-owned virtual
+environment on the node. Use a Postfix hostname outside the set of hosted
+mail domains and keep those domains in Postfix's virtual mailbox address
+class. See the [Postfix virtual domain guide](https://www.postfix.org/VIRTUAL_README.html).
+
+On a fresh mail node, create the virtual mail user and empty lookup files.
+
+```sh
+sudo adduser --system --group --no-create-home --home /srv/coulobre-mail \
+ --shell /usr/sbin/nologin coulobre-vmail
+sudo install -m 0644 /dev/null /etc/postfix/coulobre-domains
+sudo install -m 0644 /dev/null /etc/postfix/coulobre-mailboxes
+sudo install -o root -g dovecot -m 0640 /dev/null /etc/dovecot/coulobre-users
+```
+
+Use these values in Postfix's `main.cf`.
+
+```ini
+virtual_mailbox_domains = proxy:texthash:/etc/postfix/coulobre-domains
+virtual_mailbox_maps = proxy:texthash:/etc/postfix/coulobre-mailboxes
+virtual_transport = lmtp:unix:private/dovecot-lmtp
+smtpd_reject_unlisted_recipient = yes
+```
+
+Replace the stock `auth-system.conf.ext` include in Dovecot's `10-auth.conf`
+with the following virtual user configuration. Configure Dovecot's TLS
+certificate and keep encrypted client authentication enabled on a public
+mail node. See the [Dovecot passwd-file guide](https://doc.dovecot.org/2.3/configuration_manual/authentication/passwd_file/).
+
+```text
+auth_username_format = %Lu
+auth_cache_size = 0
+passdb {
+ driver = passwd-file
+ args = /etc/dovecot/coulobre-users
+}
+userdb {
+ driver = passwd-file
+ args = /etc/dovecot/coulobre-users
+}
+```
+
+Set the mailbox format and enable the LMTP socket for Postfix in Dovecot.
+Use the output of `id -u coulobre-vmail` for both UID settings in place of
+the example value `103`. This limits Dovecot mailbox access to the virtual
+mail user on this node. See the [Dovecot UID range settings](https://doc.dovecot.org/2.3/settings/core/#first-valid-uid).
+
+```text
+protocols = imap lmtp
+mail_location = maildir:~/Maildir
+first_valid_uid = 103
+last_valid_uid = 103
+service lmtp {
+ unix_listener /var/spool/postfix/private/dovecot-lmtp {
+ user = postfix
+ group = postfix
+ mode = 0600
+ }
+}
+```
+
+Start Postfix and Dovecot with these settings and apply the manifest.
+
+```sh
+sudo /opt/coulobre/bin/coulobre-mail-node apply coulobre-mailbox-1.json
+```
+
+The command creates a private mailbox home under `/srv/coulobre-mail/`,
+generates the initial password, and prints the path to the root-only
+credentials file on the mail node. Dovecot authenticates the full mailbox
+address using a password hash. Postfix accepts listed recipients and
+hands delivery to Dovecot over the local LMTP socket. Reapply the same
+manifest to resume installation with the same credentials.
+
+### Check a mailbox installation
+
+Run the status command on the mail node with the same manifest.
+
+```sh
+sudo /opt/coulobre/bin/coulobre-mail-node status coulobre-mailbox-1.json
+```
+
+The check reads the local registry, mailbox home and lookup files. It
+queries the running Postfix service for the domain and recipient and
+tests the saved login against Dovecot's local authentication service.
+The JSON report includes the address, state and a diagnostic when the
+installation needs attention.
+
+| State | Exit code | Meaning |
+| --- | --- | --- |
+| `configured` | 0 | The local mailbox and service checks passed. |
+| `not_installed` | 2 | The mailbox is absent from the local registry and mail services. |
+| `needs_attention` | 2 | An installation, configuration or service check failed. |
+
+Exit code `1` indicates an invalid manifest or an invocation error such as
+running the check without root privileges.
+
## Request an Apache configuration preview
Start RabbitMQ and set `COULOBRE_BROKER_URL` to its AMQP URL. The development
diff --git a/pyproject.toml b/pyproject.toml
index 0aedbb6..db256e9 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -18,6 +18,7 @@ dependencies = [
[project.scripts]
coulobre-database-node = "coulobre.database_node:main"
coulobre-dns-node = "coulobre.dns_node:main"
+coulobre-mail-node = "coulobre.mail_node:main"
coulobre-web-node = "coulobre.web_node:main"
[project.optional-dependencies]
diff --git a/src/coulobre/hosting/migrations/0008_hostingmailbox.py b/src/coulobre/hosting/migrations/0008_hostingmailbox.py
new file mode 100644
index 0000000..9946987
--- /dev/null
+++ b/src/coulobre/hosting/migrations/0008_hostingmailbox.py
@@ -0,0 +1,75 @@
+# Generated by Django 5.2.19 on 2026-11-19 22:22
+
+import django.db.models.deletion
+from django.db import migrations, models
+
+import coulobre.hosting.fields
+
+
+class Migration(migrations.Migration):
+ dependencies = [
+ ("hosting", "0007_hostingdnszone"),
+ ]
+
+ operations = [
+ migrations.CreateModel(
+ name="HostingMailDomain",
+ fields=[
+ (
+ "id",
+ models.BigAutoField(
+ auto_created=True,
+ primary_key=True,
+ serialize=False,
+ verbose_name="ID",
+ ),
+ ),
+ (
+ "domain",
+ coulobre.hosting.fields.DomainNameField(
+ max_length=253, unique=True
+ ),
+ ),
+ (
+ "account",
+ models.ForeignKey(
+ on_delete=django.db.models.deletion.PROTECT,
+ related_name="mail_domains",
+ to="hosting.hostingaccount",
+ ),
+ ),
+ ],
+ ),
+ migrations.CreateModel(
+ name="HostingMailbox",
+ fields=[
+ (
+ "id",
+ models.BigAutoField(
+ auto_created=True,
+ primary_key=True,
+ serialize=False,
+ verbose_name="ID",
+ ),
+ ),
+ ("local_part", models.CharField(max_length=64)),
+ (
+ "mail_domain",
+ models.ForeignKey(
+ on_delete=django.db.models.deletion.PROTECT,
+ related_name="mailboxes",
+ to="hosting.hostingmaildomain",
+ ),
+ ),
+ ],
+ options={
+ "ordering": ("mail_domain__domain", "local_part"),
+ "constraints": [
+ models.UniqueConstraint(
+ fields=("mail_domain", "local_part"),
+ name="hosting_mailbox_domain_local_part_unique",
+ )
+ ],
+ },
+ ),
+ ]
diff --git a/src/coulobre/hosting/models.py b/src/coulobre/hosting/models.py
index dcacf8d..cb9fd5a 100644
--- a/src/coulobre/hosting/models.py
+++ b/src/coulobre/hosting/models.py
@@ -5,6 +5,7 @@ from django.urls import reverse
from coulobre.database_node import DATABASE_SUFFIX_PATTERN, INVALID_SUFFIX, DatabaseSpec
from coulobre.dns_node import MAX_SOA_SERIAL, AddressRecord, DnsZone
+from coulobre.mail_node import LOCAL_PART_MAX_LENGTH, MailboxSpec
from .fields import DomainNameField
@@ -118,6 +119,39 @@ class HostingDnsZone(models.Model):
return str(self.domain)
+class HostingMailDomain(models.Model):
+ account = models.ForeignKey(
+ HostingAccount, on_delete=models.PROTECT, related_name="mail_domains"
+ )
+ domain = DomainNameField(max_length=253, unique=True)
+
+ def __str__(self):
+ return str(self.domain)
+
+
+class HostingMailbox(models.Model):
+ mail_domain = models.ForeignKey(
+ HostingMailDomain, on_delete=models.PROTECT, related_name="mailboxes"
+ )
+ local_part = models.CharField(max_length=LOCAL_PART_MAX_LENGTH)
+
+ class Meta:
+ ordering = ("mail_domain__domain", "local_part")
+ constraints = [
+ models.UniqueConstraint(
+ fields=("mail_domain", "local_part"),
+ name="hosting_mailbox_domain_local_part_unique",
+ )
+ ]
+
+ @property
+ def spec(self):
+ return MailboxSpec(self.mail_domain.domain, self.local_part)
+
+ def __str__(self):
+ return self.spec.address
+
+
class WebProvisioningPlan(models.Model):
account = models.ForeignKey(HostingAccount, on_delete=models.CASCADE)
primary_domain = DomainNameField(max_length=253)
diff --git a/src/coulobre/hosting/templates/hosting/account_detail.html b/src/coulobre/hosting/templates/hosting/account_detail.html
index 2e24624..3ee9cf2 100644
--- a/src/coulobre/hosting/templates/hosting/account_detail.html
+++ b/src/coulobre/hosting/templates/hosting/account_detail.html
@@ -106,4 +106,38 @@
{% endif %}
{% endif %}
+ {% if is_reseller or perms.hosting.view_hostingmailbox %}
+
+
+
Mailbox requests
+ {% if not is_reseller and perms.hosting.add_hostingmailbox %}
+ Request mailbox
+ {% endif %}
+
+ {% if mailboxes %}
+