> ## Documentation Index
> Fetch the complete documentation index at: https://docs.augustin.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Email Migration

Full inbox consolidation from Gmail to Stalwart on `augustin.ai`.

## Goal

Migrate all email from three external accounts into Stalwart and consolidate onto a single `@augustin.ai` address. Stop using Gmail entirely.

## Accounts

| # | Address                     | Role                          | Backend                   | Action                                 |
| - | --------------------------- | ----------------------------- | ------------------------- | -------------------------------------- |
| 1 | `augustin@augustin.ai`      | New primary address           | Stalwart                  | Already exists (catch-all)             |
| 2 | `root@augustin.ai`          | Admin/private alias           | Stalwart                  | Keep as internal alias, don't give out |
| 3 | `gus.marcin@gmail.com`      | Throwaway / in-person         | Gmail                     | Export → import → forward → phase out  |
| 4 | `augustinmarcin0@gmail.com` | iCloud Hide My Email (legacy) | Gmail                     | Export → import → forward → phase out  |
| 5 | `amarcin@ucsc.edu`          | Student discounts             | Google Workspace (likely) | Export → import → keep account alive   |

## New Address

The public-facing primary address will be `augustin@augustin.ai`. The catch-all (`*@augustin.ai`) is already configured, so this works immediately — no Stalwart changes needed. The `root@` alias stays as a private/admin address.

Going forward, the catch-all means you can give out per-service addresses like `amazon@augustin.ai`, `github@augustin.ai`, etc. They all land in the same inbox.

## Checklist

### Phase 1: Export from Gmail

* [ ] **Google Takeout — `gus.marcin@gmail.com`**
  1. Go to [takeout.google.com](https://takeout.google.com) (signed into this account)
  2. Click "Deselect all", then check only **Mail**
  3. Click "All Mail data included" — leave all labels selected
  4. Next step → ZIP, 2GB file size, email download link
  5. Wait for export (hours to days), download ZIP(s)
  6. Transfer to i3: `scp ~/Downloads/takeout-*.zip i3:~/apps/stalwart/import/`

* [ ] **Google Takeout — `augustinmarcin0@gmail.com`**
  1. Same steps as above, signed into this account

* [ ] **Google Takeout — `amarcin@ucsc.edu`**
  1. Go to [takeout.google.com](https://takeout.google.com) (signed into UCSC account)
  2. If Google Takeout is available (some schools disable it), same steps as above
  3. If not available, check if UCSC offers an alternative export or skip this one

### Phase 2: Import into Stalwart

Once the ZIP files are on i3, tell Kiro. The import process for each account:

```bash theme={null}
# Unzip the takeout
mkdir -p ~/apps/stalwart/import && cd ~/apps/stalwart/import
unzip takeout-*.zip

# Import — the mbox file is usually at:
# Takeout/Mail/All mail Including Spam and Trash.mbox
docker exec stalwart stalwart-cli \
  -u http://127.0.0.1:8080 \
  -c "<username>:<password>" \
  import messages -f mbox root@augustin.ai /opt/stalwart/import/Takeout/Mail/*.mbox
```

* [x] Import `gus.marcin@gmail.com` archive (872 messages)
* [x] Import `augustinmarcin0@gmail.com` archive (2,653 messages)
* [x] Import `amarcin@ucsc.edu` archive (99 messages)
* [x] Verify email counts and spot-check messages

### Phase 3: Set up forwarding

Forward all new mail from old accounts to `augustin@augustin.ai`:

* [x] **`gus.marcin@gmail.com`** → Gmail Settings → Forwarding → add `augustin@augustin.ai` → confirm → set to forward and keep a copy
* [x] **`augustinmarcin0@gmail.com`** → same steps
* [x] **`amarcin@ucsc.edu`** → check if forwarding is available in school Google Workspace settings
* [x] **Test each** — send a test email to each old address, confirm it arrives in Stalwart

### Phase 4: Update accounts

Gradually change your email on services from old addresses to `augustin@augustin.ai`:

* [ ] Start with high-priority accounts (banking, cloud providers, etc.)
* [ ] Update social media, shopping, subscriptions
* [x] Change Apple ID email to `apple@augustin.ai` (changed 2026-04-02)
* [x] Change iCloud Hide My Email forwarding to `apple@augustin.ai` (changed 2026-04-02) — no longer routes through Gmail

### Phase 5: Cleanup

* [ ] After 3–6 months with no issues, disable forwarding and stop checking Gmail
* [ ] Keep Gmail accounts alive (don't delete) — some services may still have them on file
* [ ] Keep UCSC account alive for student discounts

## Notes

* All mail imports into the Inbox folder. Gmail labels don't map to IMAP folders, so everything lands flat. This is fine for an archive.
* The catch-all means any `*@augustin.ai` address works immediately. No need to configure aliases.
* Stalwart stores email blobs in Backblaze B2, so large imports won't fill up local disk.
* If a Takeout export is very large (10GB+), the import may take a while. `stalwart-cli` supports concurrent imports and can resume if interrupted.
