Sync vault notes: April-November 2026 sessions, projects, and architecture

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
garfieldandClaude Sonnet 5.5 committed 2026-11-13 11:00:53 -05:00
1 parent fe4fe656be
commit 994c7ae577
379 files changed
+55216 -107

No files matched your search

@@ -0,0 +1,65 @@
# squaremcp.com Email Infrastructure
## What was set up
Outbound email for squaremcp.com now routes through Azure Communication Services SMTP relay on port 587. This bypasses the port 25 block on the VPS (104.190.60.129).
All three email authentication checks pass:
1. SPF — `v=spf1 include:spf.protection.outlook.com -all`
2. DKIM — two CNAME records in GoDaddy pointing to Azure key selectors
3. DMARC — inherits from SPF and DKIM pass
## Two sending paths
### 1. hermes-mcp (MCP server)
Sends directly through Azure ACS via nodemailer in `src/smtp.ts`.
Credentials are injected as env vars in `hermes-k8s.yaml`:
- Host: `smtp.azurecomm.net`
- Port: `587`
- User: `fetcherpay-comm-prod.628d0126-984a-436a-8920-fcc877f5481a.57af0299-f395-4cf7-8fc5-3017211b2879`
This path is confirmed working. Test email received with SPF/DKIM/DMARC all passing.
### 2. Poste.io webmail
Uses smarthost relay config in `/opt/email-data/server.ini`:
```
[routing]
smtp_routes = ":smtp.azurecomm.net;587|<user>|<pass>"
```
This path has a problem. Port 587 is blocked outbound from inside the Kubernetes pod by Calico CNI.
## Poste.io delivery problem
Haraka (the MTA inside Poste.io) queues messages but connections to smtp.azurecomm.net:587 time out from inside the pod.
Attempted fix: added iptables FORWARD rules on the host to allow pod subnet (10.1.0.0/16) outbound on port 587.
The rules were added to iptables (nft). But Calico uses iptables-legacy. The rules may not be taking effect.
## What still needs to be done
1. Add port 587 FORWARD rules to iptables-legacy (not iptables) so Calico sees them
2. Test from inside the Poste.io pod: `nc -w 10 smtp.azurecomm.net 587`
3. Confirm a test email sent from Poste.io webmail arrives in Gmail
4. Make the iptables-legacy rules persistent across reboots via `/etc/iptables/rules.v4`
## Azure resources
- Email Communication Service: `fetcherpay-email-prod` (rg: `rg-fetcherpay-email-prod`)
- Communication Services: `fetcherpay-comm-prod`
- Authorized senders: garfield, info, noreply, sales, contact @squaremcp.com
## Authorized MailFrom addresses
1. garfield@squaremcp.com
2. info@squaremcp.com
3. noreply@squaremcp.com
4. sales@squaremcp.com
5. contact@squaremcp.com
Full credentials and DNS records are in the Claude memory file `azure-acs-email-relay`.