← Back to Docs

Email — User Guide

Electric Monk email is powered by Stalwart Mail Server with authentication through Authentik. Your email address is you@electricmonk.io.

Features

Quick Settings Reference

Setting Value
Server mail.electricmonk.io
Username Your Authentik username
Password Your Authentik password
IMAP Port 993 (SSL/TLS)
SMTP Port 465 (SSL/TLS)

Setting Up Email on iPhone / iPad

  1. Open SettingsMailAccountsAdd Account
  2. Tap OtherAdd Mail Account
  3. Fill in:
    • Name: Your display name
    • Email: you@electricmonk.io
    • Password: Your Authentik password
    • Description: Electric Monk (or whatever you like)
  4. Tap Next — iOS may try to auto-detect settings. If it fails:
  5. Select IMAP (not POP)
  6. Under Incoming Mail Server:
    • Host Name: mail.electricmonk.io
    • User Name: Your Authentik username
    • Password: Your Authentik password
  7. Under Outgoing Mail Server:
    • Host Name: mail.electricmonk.io
    • User Name: Your Authentik username
    • Password: Your Authentik password
  8. Tap Next — iOS will verify the settings
  9. Toggle on Mail (and optionally Notes), then tap Save

Verifying SSL/TLS on iOS

After setup, go to SettingsMailAccounts → your account → AccountAdvanced:

Setting Up Email on macOS Mail

  1. Open MailSettingsAccounts → click +
  2. Select Other Mail AccountContinue
  3. Enter your name, email (you@electricmonk.io), and Authentik password
  4. macOS may auto-detect settings. If prompted for manual config:
    • Account Type: IMAP
    • Incoming: mail.electricmonk.io port 993 SSL
    • Outgoing: mail.electricmonk.io port 465 SSL

Setting Up Email on Thunderbird

  1. Add Account → enter name, email, password
  2. Thunderbird will try autoconfig — settings should be detected automatically
  3. If manual config is needed, enter the settings from the Quick Reference above
  4. Authentication method: Normal password

Setting Up Email on Android

  1. Open your mail app (Gmail, K-9 Mail, FairEmail, etc.)
  2. Add AccountOther / IMAP
  3. Enter you@electricmonk.io and your Authentik password
  4. Incoming: mail.electricmonk.io, port 993, security SSL/TLS
  5. Outgoing: mail.electricmonk.io, port 465, security SSL/TLS

Using the Webmail

Two web interfaces are available:

The Bulwark webmail supports Sieve filter management and password changes through Stalwart.

App Passwords

If a client or automation tool doesn't support your Authentik password directly (e.g., some older SMTP relay scripts), app-specific passwords can be created. Contact an administrator to generate one using the manage-app-passwords.sh script.

How Authentication Works

Your email credentials are your Authentik credentials — the same username and password you use for all Electric Monk services. Stalwart authenticates against Authentik's LDAP directory in real time:

  1. You enter your username/email and password in your mail client
  2. Stalwart searches the Authentik LDAP directory for your account
  3. Stalwart verifies your password by binding to LDAP as you
  4. If successful, you're authenticated — no separate email password needed

This means if you change your Authentik password, your email password changes too.

How Encryption Works (TLS)

All connections to mail.electricmonk.io are encrypted:

Your device (TLS) ──→ Traefik (terminates TLS) ──→ Stalwart (internal network)

The TLS certificate is a wildcard cert for *.electricmonk.io managed by Let's Encrypt. You should never see certificate warnings.

Note: Do not use port 587 with STARTTLS — it is not exposed externally. Always use port 465 with implicit SSL/TLS.

Troubleshooting

"Authentication failed"

"Cannot connect to server"

Emails not sending

Email Aliases