Repository navigation
v2.0.0
Breaking: upgrade
2.0.0 does not read a 1.x data directory. A data directory with iglo-email.db at its root is refused at start: the server prints one line naming the directory and exits with status 1, and writes nothing to it. Nothing converts the old layout (D142). To move a 1.x install to 2.0.0:
- Take a backup with the 1.x executable (
iglo.email backup) and keep the old data directory. - Either start 2.0.0 on an empty data directory, with
IGLO_EMAIL_ADMIN_USERandIGLO_EMAIL_ADMIN_PASSWORDset for the first start, and re-create the data through the API, CSV import or MCP; - or restore the 1.x backup as the primary project: with the server stopped, copy it (the
iglo-email.dbwith its uploads) intoprojects/main/of an empty data directory and start with the admin variables set, which adopts it as the primary project (Operations, "Restore details"). Like every restored backup it starts held: release it withiglo.email backup --release-hold --consent-reconciled --project mainonce consent is reconciled (without--projectthe command releases onlyinstance.dband the project stays held). - Enter the instance settings again (SMTP, send rate, bounce processing, security, media storage, admin appearance) on the instance's Settings page: they now live in
instance.db, and a restored project database does not carry them.
See Upgrades in the operations guide.
New features
- Several projects per instance (D142). One process serves several projects. Each project is its own SQLite database under
data/projects/<slug>/with its own subscribers, lists, campaigns, templates, users, API credentials and MCP endpoint, served on its own hostname. A single-project install is the primary projectmainon the--root-urlhost, as before. - Host routing and extra hostnames (D151, D157). A request's
Host(lowercased, without the port;X-Forwarded-Hostis ignored) picks the project. A project has one main hostname and optional extra hostnames, so mail already sent from an old hostname keeps working while the old name is listed. An API credential works only on its own project's host; the sameuser:tokenon another project's host is401. - The instance admin and one admin account (D153). The admin account set by
IGLO_EMAIL_ADMIN_*lives ininstance.dband is copied into every project as a Super Admin. Signing in at/admin/instance/loginon the instance host opens any project through a short-lived handoff link, with no second sign-in. A password or TOTP change made in any project, on the instance Account page or withreset-password/reset-totpapplies everywhere. Inside a project the admin's copy cannot be renamed, demoted, disabled or deleted, and other users and API credentials cannot change its password or email. - Instance and project settings (D154). Settings that exist once per process (SMTP,
messaging.max_send_rate, the Amazon SES API keys, bounce processing and its providers, trusted proxies, session length, OIDC, the webhook private-address block, maintenance, slow-query caching, media storage, the admin appearance) are instance settings on/admin/instance/settingsand/api/instance/settings. The rest stay per project. - The dispatcher and the effective rate (D155, D161). One dispatcher paces every send of every project at the instance's rate: transactional mail first, then marketing, then campaigns, round-robin across projects within each class. The effective rate is the lower of
messaging.max_send_rateand SES'sMaxSendRatewhen SES API keys are saved. - SES account reading (D159). With
ses.api_region,ses.api_access_key_idandses.api_secret_access_keyset (read-only IAM credentials forGetAccount), the instance reads the account's send rate and 24-hour quota and refreshes it. "Check SES account" on the instance settings page shows the values or AWS's error. - Quota guard (D161). When SES reports at most
max(2% of the 24-hour quota, rate × 60)sends left, marketing and campaign sends stop being started until a newer reading is above that line. Transactional mail is not held. The start and end are logged as attention lines. There is no guard without SES keys or for an account with no daily limit. - Capacity forecast (D159).
GET /api/sending/capacity(at,count,campaign_id; permissioncampaigns:get) says whether the busiest 24 hours around a planned send fit the SES quota, counting every project's sends, campaigns and schedules. MCP toolget_sending_capacity; the MCP instructions say to check capacity before scheduling a large campaign. - Forecast on the campaign page (D159). A saved draft, paused or scheduled campaign shows whether it fits the quota at the form's send time, and the confirmation says so when it does not.
- Sending page (D162).
/admin/instance/sendingshows the effective rate and its inputs, the SES account reading and its age, whether the quota guard holds, and the forecast for the last 24 hours. - Projects page and the project switcher (D157).
/admin/instance/projectslists every project with its hostnames, queued marketing sends, running campaigns and messages sent in the last 24 hours. A project's header has a switcher to every project for the admin. - Logs page (D157).
/admin/instance/logsmerges the instance's attention lines and every project's log, labelled by source. Every stderr line now starts with[<slug>]or[instance]. - Creating and deleting projects at runtime (D157). The Projects page (or
POST,PUT,DELETE /api/instance/projects) creates a project, edits its name and extra hostnames, and deletes it with the slug typed as confirmation. A delete stops the project's sending, lets its requests finish, and keeps a final snapshot (backups/deleted/<slug>-<time>.dband.tar). Directories underprojects/with no registered project are reported and never served. - Backup of the instance or one project (D158).
iglo.email backupwritesinstance.dband every project into one directory, published only when every snapshot is complete;--project <slug>backs up one project. Restore is a file copy per database with the server stopped. - Restore hold per database (D158). A restored project's database holds that project's marketing sends; a restored
instance.dbholds every project.backup --release-hold --consent-reconciled [--project <slug>]releases one. - Preference center (D160). The manage page (
?manage=true) offers every active public list, including ones the subscriber left, and can show profile fields defined in the project settingprivacy.preference_fields(text, number, boolean, date or select; editable or read-only; at most 20). Joining a double opt-in list sends the usual opt-in mail, within the one-mail-per-address window. Blocklisted and marketing-suppressed subscribers are offered no list. Transactional manage pages show no profile fields. The unsubscribe pages link to "Manage preferences" when there is something to manage.
Changed behaviour and API changes
- Settings split (D154). A project's
GET /api/settingsserves project keys andapp.root_urlonly. APUT /api/settingsorPUT /api/settings/:keythat names an instance key, or a name that is no setting, is400"Not a project setting: …" with nothing written; it used to be ignored. Instance keys change only through/api/instance/settingswith the instance session. - Campaign pacing keys removed (D142, D155).
app.concurrency,app.message_rate,app.batch_size,app.message_sliding_window,app.message_sliding_window_durationandapp.message_sliding_window_rateno longer exist. A write naming one is400. A script that set them must drop them; the dispatcher's rate replaces them. - Instance routes (D153, D154, D157).
/admin/instance/**and/api/instance/**on the instance host and on hosts no project claims are the instance's pages and JSON routes. They take only the instance session cookie with its CSRF token, answer401to anyAuthorizationheader, and are not in OpenAPI or MCP. With no primary project, those hosts answer/health, redirect/adminto the Projects page, and404anything else. - SES notifications (D156).
POST /webhooks/service/sesis served by the instance, not by a project, and routes each notice to the project that sent the mail by its Message-ID. A notice that matches no project is answered200, stored nowhere and logged as an attention line. On a project's own host the path is400 Unknown service. IGLO_EMAIL_API_USER/IGLO_EMAIL_API_TOKENseed the primary project only: an API credential belongs to one project (D151)./healthon the instance host answers for the instance:503once any project's loops have failed (D151).- The
usersAPI refuses changes to the admin's copy with403, and creating a user with the admin's username with409(D153). POST /api/txwith marketing messages waits a bounded time for a send slot when sending is busy or held, then returns with those messagesqueued(D155).
Fixes
- An orderly shutdown with a send in SMTP flight no longer leaves transactional mail queued behind it for the connection marked
unknown: it staysqueuedand is sent after the restart (B141a).
Other upgrade notes
- Migrations run on start: project migrations 32 to 35 (the admin copy mark, removal of instance keys from project databases, a send index by kind, and a send index by start time), and
instance.db's own migrations. - SES API keys are optional. Without them the send rate setting alone applies and there is no forecast or quota guard.
- An external probe that used
/healthon the instance host now sees the instance's health. - A reverse proxy must pass each project's hostname through in
Host.