tuimail/config.toml.example
Shautvast fba2623f15 Add SMTP send with TLS mode support and timeouts
- Add smtp.rs with send_email using lettre; supports none/starttls/smtps
- Replace use_tls: bool with TlsMode enum in SmtpConfig for explicit port 465 (SMTPS) support
- Add SMTP_IO_TIMEOUT (15s) for socket I/O and SMTP_WALL_TIMEOUT (30s) covering DNS + connect
- Spawn SMTP send on a dedicated thread so the IMAP worker thread is never blocked
- Update config.toml.example with tls_mode documentation

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-19 20:07:17 +01:00

18 lines
No EOL
458 B
Text

[imap]
host = "localhost"
port = 143
username = "test@example.com"
password = "password123"
use_tls = false
[smtp]
host = "localhost"
port = 25
username = "test@example.com"
password = "password123"
# tls_mode options:
# none — plain text (port 25 or unencrypted 587)
# starttls — upgrades mid-session (port 587, most providers)
# smtps — TLS from first byte (port 465, Gmail "SSL")
tls_mode = "none"
from = "Test User <test@example.com>"