commit 6852311c8ee4abd9554a4a2ab2d0901c18b57d0a Author: John Coffey Date: Thu Sep 10 22:27:48 2026 -0700 Add the ihasmail template for Unraid Community Applications One XML per app under templates/, ca_profile.xml at the root, as the Community Applications starter lays it out. The ihasmail template runs the published multi-arch image read-only with /tmp in memory, and as Unraid's nobody user (99:100) because that is the owner Unraid gives a freshly created appdata folder; the image's own user could not write the session file there. The appdata path is optional: clear it, blank SESSION_FILE and set IMMUTABLE=1 for a container with no writable path at all. diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..fafff2e --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +.DS_Store +Thumbs.db diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..a20bb80 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2026 Coffey Labs + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/README.md b/README.md new file mode 100644 index 0000000..1ae2fdf --- /dev/null +++ b/README.md @@ -0,0 +1,56 @@ +# Coffey Labs Unraid templates + +Docker templates for [Unraid Community Applications](https://ca.unraid.net), +one XML file per app under `templates/`. `ca_profile.xml` at the root is what +Community Applications reads for the repository listing. + +| App | Template | Image | Licence of the app | +| --- | --- | --- | --- | +| [ihasmail](https://ihasmail.org) — immutable webmail for Stalwart Mail Server | [`templates/ihasmail.xml`](templates/ihasmail.xml) | `ghcr.io/coffey-labs/ihasmail:latest` (amd64, arm64) | AGPL-3.0-or-later | + +## Installing + +Once the repository is accepted into Community Applications, search for the +app under **Apps** and install it from there. + +Until then, or if you prefer to skip the store, copy the template onto the +flash drive from the Unraid terminal and it appears under **User templates** +in the **Template** drop-down of **Docker → Add Container**: + +```sh +wget -P /boot/config/plugins/dockerMan/templates-user/ \ + https://raw.githubusercontent.com/Coffey-Labs/unraid-templates/main/templates/ihasmail.xml +``` + +## ihasmail + +ihasmail is a mail client, not a mail server. It needs a +[Stalwart Mail Server](https://stalw.art) 0.16 or newer that the container can +reach, and nothing else: no database, no appdata to migrate, no IMAP or SMTP +settings. Everything durable lives in Stalwart. + +The template runs the container read-only, as Unraid's `nobody` user, with a +`/tmp` in memory. The one optional write is `sessions.json` under +`/mnt/user/appdata/ihasmail`, kept so nobody is signed out when the container +restarts or updates. Clear that path, blank `SESSION_FILE` and set +`IMMUTABLE=1` to run with no writable path at all, which is how +[ihasmail.com](https://ihasmail.com) runs it. + +Two things to set on first install: + +- **Stalwart URL** — scheme and host, no path, e.g. `https://mail.example.com`. +- **App secret** — a long random string. In the Unraid terminal: + `openssl rand -base64 48`. + +Put it behind a reverse proxy with HTTPS before exposing it beyond your LAN. +Every other setting is documented at +[docs.ihasmail.org/configure](https://docs.ihasmail.org/configure/). + +Problems with the app go to +[Coffey-Labs/ihasmail issues](https://github.com/Coffey-Labs/ihasmail/issues); +problems with the template go to the issues on this repository. + +## Licence + +The templates in this repository are MIT licensed. Each app keeps its own +licence, shown in the table above. diff --git a/ca_profile.xml b/ca_profile.xml new file mode 100644 index 0000000..44441aa --- /dev/null +++ b/ca_profile.xml @@ -0,0 +1,6 @@ + + + Templates for the self-hosted software Coffey Labs publishes. Today that is ihasmail, an immutable webmail client for Stalwart Mail Server. Support for each app goes through its own GitHub issues, linked from the template. + https://raw.githubusercontent.com/Coffey-Labs/unraid-templates/main/icon.png + https://coffeylabs.org + diff --git a/icon.png b/icon.png new file mode 100644 index 0000000..335281e Binary files /dev/null and b/icon.png differ diff --git a/templates/ihasmail.png b/templates/ihasmail.png new file mode 100644 index 0000000..b9185dc Binary files /dev/null and b/templates/ihasmail.png differ diff --git a/templates/ihasmail.xml b/templates/ihasmail.xml new file mode 100644 index 0000000..8a39ba3 --- /dev/null +++ b/templates/ihasmail.xml @@ -0,0 +1,43 @@ + + + ihasmail + ghcr.io/coffey-labs/ihasmail:latest + https://github.com/Coffey-Labs/ihasmail/pkgs/container/ihasmail + bridge + sh + false + https://github.com/Coffey-Labs/ihasmail/issues + https://github.com/Coffey-Labs/ihasmail + https://raw.githubusercontent.com/Coffey-Labs/ihasmail/main/README.md + Immutable webmail for Stalwart Mail Server. Mail, calendars, contacts, files and filters in one responsive app that works as well on a phone as on a desktop, talking only JMAP to a Stalwart you already run. There is no database, no IMAP or SMTP configuration and nothing to migrate between versions: everything durable stays in Stalwart, and the container is disposable. The root filesystem runs read-only; the only optional write is a session file, kept so that nobody is signed out when the container restarts. Try it first at https://demo.ihasmail.com and read the docs at https://docs.ihasmail.org. + Productivity: Network:Web Network:Messenger + http://[IP]:[PORT:8080] + https://raw.githubusercontent.com/Coffey-Labs/unraid-templates/main/templates/ihasmail.xml + https://raw.githubusercontent.com/Coffey-Labs/unraid-templates/main/templates/ihasmail.png + --read-only --tmpfs /tmp --user 99:100 + webmail email mail stalwart jmap calendar contacts immutable + A Stalwart Mail Server 0.16 or newer that this container can reach over the network. ihasmail is a mail client, not a mail server: it holds no mail, no accounts and no database of its own. Put it behind a reverse proxy with HTTPS before exposing it beyond your LAN. + AGPL-3.0-or-later + 6.10.0 + 2026-09-10 + +### 2026-09-10 +- First template. Runs the published multi-arch image read-only, as Unraid's nobody user, with an optional appdata path for the session file. + + https://ihasmail.org/img/inbox-light.jpg + https://ihasmail.org/img/inbox-dark.jpg + https://ihasmail.org/img/compose.jpg + https://ihasmail.org/img/calendar.jpg + https://ihasmail.org/img/contacts.jpg + https://ihasmail.org/img/files.jpg + https://ihasmail.org/img/mobile.jpg + 8080 + https://mail.example.com + + /mnt/user/appdata/ihasmail + /data/sessions.json + 0 + ihasmail + 1 + auto +