Castellum.

Privacy Policy

Effective date: 18 November 2026 · Castellum

Castellum ("the app", "we", "us") is a native desktop email client provided by Joan Marc Riera (sole trader), trading via riera.co.uk ("the provider"). This policy explains what data Castellum handles, where it is stored, and, importantly, what we do NOT do with it.

1. Summary (the short version)

Castellum is local-first. Your email, contacts and calendar data stay on your own device, and AI features run only against a local model that you run yourself. We operate no cloud server that receives your mailbox content. Castellum does not currently offer a cloud-AI mode; if one is ever added it will be off by default and opt-in only (see §4). We do not sell your data, do not use it for advertising, and no human at Joan Marc Riera (sole trader), trading via riera.co.uk reads your email.

2. What data Castellum accesses

When you connect an account, Castellum accesses, on your device:

using the credentials you provide (an account or app password).

contacts and agenda features.

Google sign-in (OAuth) is not available in the current release; Gmail is connected over IMAP with an app password. If Google sign-in is added, Castellum will request these scopes: gmail.readonly, gmail.modify, gmail.send. These let the app read, organise (label/archive/flag), and send your mail, the core function of an email client.

3. Where your data is stored

SQLite database on your Mac. This data is not transmitted to us and does not pass through any Castellum-operated server.

are readable by anything with access to your user account on that machine; use full-disk encryption).

New-mail notifications

New-mail notifications are shown by macOS on this Mac only; nothing about them is sent to us or to anyone else. Turn off previews in Castellum → Settings → Notifications.

Spotlight search (opt-in, off by default)

Castellum can optionally index the subject and sender name/address of your messages into macOS's on-device Spotlight search, so they turn up when you search from Spotlight outside the app. This is off by default and only starts if you turn it on yourself in Settings > General. When on, message bodies, HTML content and attachments are never indexed, only the subject line and sender identify a result. This index lives in Apple's on-device Spotlight store on your own Mac; it is never transmitted anywhere, but it is a new way message metadata becomes visible system-wide, to Spotlight itself and to other apps that query it, which is why it stays opt-in. Turning the setting off, or removing an account, removes everything Castellum indexed for it.

4. Artificial intelligence, local only today

Castellum's AI features (summaries, draft replies, etc.) run against a local AI model (Ollama) on your own Mac or local network. The app enforces an egress guard: it only talks to a model server on a loopback or private address and refuses any endpoint that resolves to a public address, so no mailbox content leaves your network for AI processing. If Ollama is running on your Mac the first time Castellum starts, Castellum checks 127.0.0.1 once, turns AI on and points it there. You can turn AI off in Settings > AI.

Castellum does not currently offer a cloud-AI mode. If one is added in a future release it will be disabled by default and will never send anything unless you explicitly turn it on and configure a provider. In that case, and only then:

sent to a third-party cloud AI provider that you explicitly select and enable in the app solely to produce the output you requested, and is not used to train or improve any generalised AI model.

profiling, or any unrelated purpose.

If AI is off, Castellum sends nothing to any AI service.

5. Google API Services, Limited Use

Castellum does not use any Google API today, so it receives no data from Google APIs. This section describes how Google data would be handled if Google sign-in is added. Castellum's use of information received from Google APIs would adhere to the Google API Services User Data Policy, including the Limited Use requirements. Specifically:

specific action (e.g. debugging a problem you report), (b) where required for security, or (c) to comply with applicable law.

If an optional cloud-AI mode is added and you enable it (§4), Google-sourced content you act on is sent to a third-party cloud AI provider that you explicitly select and enable in the app only to produce the in-app result you requested, under provider terms that prohibit training on your content, consistent with the Limited Use requirements.

A fuller standalone statement is at /google-limited-use.

6. Data we process off your device (sub-processors)

Castellum's core email function uses no cloud sub-processor. Off-device processing is limited to the following, and (except licensing, the daily update check and the server-settings lookup described below) only when you opt in:

specific message content you act on, to generate the summary/reply you requested. Does not train on your content. If cloud AI is left off (the default), no mailbox content is sent here.

purchase details (name, email, payment data), not your mailbox content.

process your purchase email/name to issue and manage your licence. No mailbox content.

Apart from the opt-in cloud-AI provider, these handle purchase/account data only (and, for licence activation, the licence key) and never receive your email, contacts, or calendar.

Update check

Castellum checks for a new version once a day by default by fetching the latest-release record of the public castellum-releases repository from api.github.com. The request carries no account, device or usage identifiers (only the standard headers the system adds to every web request), nothing else is sent, and GitHub sees only your IP address as with any web request. You can switch the automatic check off in Settings > General; Castellum > Check for Updates… then runs it only when you ask.

Remote images in email

Messages with remote images are blocked by default: Castellum never fetches them automatically. If you click Load for a message, choose to always allow a sender, or turn on Always load remote images in Settings > General, Castellum makes a direct HTTP(S) request to that sender's (or their tracker's) own server to fetch the image, not to any Castellum server. That request reveals your IP address and that you opened the message, which is exactly how email tracking pixels work; this is why the default is off. You can review or revoke any sender you've allowed in Settings > General.

List-Unsubscribe one-click

If a message you open carries a List-Unsubscribe header offering a one-click (RFC 8058) unsubscribe link, Castellum shows you the exact destination and asks you to confirm before doing anything. Only if you click Unsubscribe does Castellum send a single request to that address, with no other message content included. Nothing is sent automatically, and nothing is sent if you never open the message or never confirm.

Licence activation

If you enter a licence key and click Activate (or later click Deactivate), Castellum sends that key in a single HTTPS request to Lemon Squeezy's licence API (api.lemonsqueezy.com), which replies with whether the key is valid and when it expires. The request contains the licence key and an instance name made of the app version and a random tag, such as "Castellum 0.4.0 · 1a2b3c4d". It contains no email address, host name, account or mailbox data. Lemon Squeezy necessarily sees your IP address, as with any web request. The licence key is stored in your macOS Keychain and is not written to the app's logs. Nothing is sent unless you click Activate or Deactivate. The Check Licence button reads local data only, and nothing licence-related is sent on launch or in the background.

Server-settings lookup (adding an account)

When you type an address at a domain Castellum has no built-in settings for (it already knows Gmail, iCloud, Fastmail and Yahoo without any lookup, and recognises Outlook.com addresses only to tell you they are not supported yet), Castellum can look up that domain's mail-server names so you don't have to find them. It waits until you stop typing, then asks, in this order and stopping at the first answer: DNS (service records and the domain's mail-exchanger records, through your Mac's normal resolver), the domain's own settings page (autoconfig.<domain> and <domain>/.well-known/autoconfig, over HTTPS), and finally Mozilla's public provider database (autoconfig.thunderbird.net, over HTTPS; if the first query finds nothing, it asks once more using the domain of the address's mail host). Only the domain, the part after the @, is ever sent; never the part before it, never your password, and never anything from your mailbox. Your DNS resolver, the domain's web host and Mozilla each necessarily see your IP address and that domain, as with any web request. Castellum does not connect to the servers it finds until you press Test or Sync, never fills in a field you have already typed, and never accepts an unencrypted IMAP server from a lookup. You can switch the lookup off in Settings > General > Account Setup (Look up server settings automatically); with it off, nothing is looked up and you enter the servers yourself.

7. What we do NOT do

8. Data retention and deletion

Because your mail lives on your device, you control it: deleting the app and its local data store removes it. Removing an account deletes its locally synced mail and its saved password from your Keychain. For any purchase data held by the sub-processors in §6, contact info@castellummail.com to request deletion, subject to legal record-keeping requirements.

9. Your rights

Depending on where you live (e.g. UK GDPR / EU GDPR / CCPA), you may have rights to access, correct, delete, or port your data, and to object to processing. Since Castellum stores your mail locally, you already exercise most of these directly. For purchase data, email info@castellummail.com.

10. Children

Castellum is not directed at children under 16 and we do not knowingly collect their data.

11. Changes

We may update this policy; the effective date above will change and material changes will be noted at /privacy.

12. Contact

Joan Marc Riera (sole trader), trading via riera.co.uk Email: info@castellummail.com Governing law: England & Wales, United Kingdom