Skip to content

Email (IMAP/SMTP)

lynox connects to any email account that supports IMAP and SMTP. Add your Gmail, iCloud, Fastmail, Outlook, Yahoo, or any custom mail server — lynox handles triage, search, reading, sending, and follow-up tracking.

This is a standalone integration that works with any LLM provider. It’s separate from the Google Workspace Gmail integration (which uses OAuth).

Go to Settings → Integrations → Mail. Click Add Account and:

  1. Select your email provider (or “Custom” for any IMAP/SMTP server)
  2. Enter your email address — lynox auto-discovers server settings for known providers
  3. Generate an app password (required for Gmail, iCloud, Outlook, Yahoo — links provided in the UI)
  4. Choose an account type (personal, business, support, etc.)
  5. Test the connection
Terminal window
# Account credentials are stored in the vault.
# Use the Web UI for multi-account setup — env vars work for single-account bootstrapping.
export LYNOX_MAIL_ADDRESS=you@example.com
export LYNOX_MAIL_PASSWORD=your-app-password
export LYNOX_MAIL_PRESET=gmail # gmail | icloud | fastmail | yahoo | outlook | custom

Most providers require an app-specific password instead of your regular login. This is a security feature — the app password grants only mail access, not full account access.

Provider2FA requiredWhere to generate
GmailYesGoogle Account → App Passwords
iCloudYesApple ID → App-Specific Passwords
FastmailRecommendedSettings → Security → App Passwords
YahooYesAccount Security → App Passwords
OutlookYesMicrosoft Account → App Passwords
CustomVariesCheck your provider’s documentation
ProviderIMAPSMTPAuto-configured
Gmailimap.gmail.com:993smtp.gmail.com:587Yes
iCloudimap.mail.me.com:993smtp.mail.me.com:587Yes
Fastmailimap.fastmail.com:993smtp.fastmail.com:587Yes
Yahooimap.mail.yahoo.com:993smtp.mail.yahoo.com:587Yes
Outlookoutlook.office365.com:993smtp-mail.outlook.com:587Yes
CustomYour serverYour serverAutodiscover via Thunderbird ISPDB

For custom servers, lynox tries autodiscovery first (using Mozilla’s ISPDB). If that fails, enter host, port, and TLS settings manually.

Each account has a type that controls how lynox interacts with it — tone, send permissions, and auto-reply behavior.

TypeToneBehavior
personalCasual, warm, first-personFull agent capability
businessProfessional, directDraft-first (never auto-send)
supportShort, polite, action-orientedAcknowledge issue + state next steps
salesWarm professional, benefit-ledReferences CRM touchpoints
helloFriendly, briefFirst contact with prospects

These types cannot send — lynox only reads and triages incoming mail.

TypePurpose
infoGeneral information inbox
newsletterSubscriptions and digests
notificationsAutomated system alerts
abuseAbuse reports (compliance)
privacyPrivacy requests (compliance)
securitySecurity reports (compliance)
legalLegal notices (compliance)

Compliance types (abuse, privacy, security, legal) always escalate to you — lynox never auto-responds to these.

  • “What’s new in my inbox?”
  • “Triage my unread emails”
  • “Show me anything important from today”

lynox filters noise automatically (newsletters, no-reply senders, List-Unsubscribe headers) and groups messages by thread.

  • “Find emails from Sarah about the Q1 report”
  • “Show me flagged emails from last week”
  • “Search for invoices with attachments”

Searches across all configured accounts by default, or specify one: “Search my support inbox for refund requests”.

  • “Read the latest email from [name]”
  • “Show me the full thread about [topic]“
  • “Draft a reply to the contract email”
  • “Send a follow-up to Sarah about the proposal”
  • “Reply all to the team update”
  • “Track this — I’m expecting a reply by Friday”
  • “Remind me if Sarah doesn’t respond within 3 days”

lynox tracks follow-ups and reminds you when expected replies don’t arrive. Follow-ups can be created automatically when sending, or manually for any message.

lynox supports multiple email accounts simultaneously. Each account has its own type, persona, and credentials.

  • Triage and search fan out across all accounts when no specific account is named
  • Smart reply-from — when replying, lynox automatically selects the sending account if one of the original recipients matches a registered account
  • Default account — the first account added becomes the default for sending
  • App passwords stored AES-256-GCM encrypted in the lynox vault
  • Credentials are never cached in memory — re-read from vault on every connection
  • Env vars override vault (same priority as all other secrets)
  • Implicit TLS enforced (IMAPS :993, SMTPS :465) — preferred over STARTTLS
  • Minimum TLS 1.2, strict certificate validation
  • Connection timeouts: 10s connect, 60s idle with exponential backoff
  • All email bodies are wrapped in <untrusted_data> tags before the LLM sees them — defense against prompt injection via email content
  • Hidden HTML elements (display:none, font-size:0) are detected and stripped
  • Scripts, styles, and HTML comments removed before text extraction
  • Interactive confirmation required for every send
  • Mass-send guard: >5 recipients forces explicit confirmation with full recipient list
  • Receive-only account types hard-blocked from sending (non-overrideable)
  • Auto-reply loop protection (RFC 3834) — prevents responding to autoresponders

lynox is designed to minimize LLM cost for email operations:

  • Triage prefilter — deterministic noise filter skips ~60% of mail with zero LLM tokens (newsletters, no-reply, List-Unsubscribe)
  • Envelope-only search — ~100 tokens per message (subject, from, date, 500-char snippet)
  • Thread grouping — related messages shown as a single thread, not individual items
  • Body cleaning — quoted history and signatures stripped, reducing token count by 30–70%
ErrorCauseFix
”Authentication failed”Wrong password or 2FA not set upGenerate a new app password (see table above)
“TLS handshake failed”Server doesn’t support TLS 1.2+Check your mail server’s TLS configuration
”Connection timed out”Firewall or wrong server addressVerify host/port, check if IMAP is enabled in your provider settings
”Connection refused”Wrong port or server downCommon: Gmail needs IMAP enabled in Gmail Settings → Forwarding and POP/IMAP
”Rate limited”Too many connection attemptsWait a few minutes, then retry

lynox has two ways to access Gmail:

Email (IMAP/SMTP)Google Workspace
AuthApp passwordOAuth 2.0
Setup time2 minutes5 minutes
Gmail accessRead + sendRead + send
Calendar, Drive, Sheets, DocsNoYes
Works with non-GmailYesNo
Best forGmail-only users, multi-provider setupsFull Google Workspace users

You can use both — they don’t conflict. The IMAP integration is simpler if you only need email.