secure.mail

DocsWelcome

Welcome to Secure Mail-Share

Rule-based Gmail sharing without exposing tokens. Connect Gmail accounts, grant scoped access by Discord ID, and let viewers read only the messages your rules allow — never the raw mailbox.

Security model

What stays on the server, and what the browser is allowed to see.

Token encryption

Refresh tokens stored only as AES-256-GCM ciphertext with per-row IV + auth tag.

Server-side filtering

Gmail `q` filters run first; a second pass sanitizes every payload before it leaves the server.

Scoped sharing

Each rule targets one Gmail connection and one Viewer Discord ID. Empty allow rules return nothing.

API surface

Server-only endpoints. Tokens never leave the host.

POST/api/gmail/connect
GET/api/gmail/accounts
DELETE/api/gmail/accounts/:id
GET/api/rules
POST/api/rules
PATCH/api/rules/:id
GET/api/view/shares
GET/api/view/emails

Access rules

Owners create rules from the dashboard. Each rule binds one Gmail connection to one Viewer Discord ID, with allowed senders / domains and keyword filters.

Sign in to manage