Email Providers
Email Providers
Mailpilot works with any email provider that supports IMAP. This section covers setup guides for popular providers.
Supported Providers
mail
Gmail
Google Workspace and personal Gmail accounts
mail
Outlook / Microsoft 365
Outlook.com, Hotmail, and Microsoft 365 accounts
mail
Yahoo Mail
Yahoo Mail with app passwords
mail
iCloud Mail
Apple iCloud Mail accounts
mail
ProtonMail
ProtonMail Bridge for IMAP access
server
Generic IMAP
Any email provider with IMAP support
Quick Configuration Examples
Gmail
accounts:
- name: personal
imap:
host: imap.gmail.com
port: 993
username: ${GMAIL_USER}
password: ${GMAIL_APP_PASSWORD} # Not your regular password!Outlook / Microsoft 365
accounts:
- name: work
imap:
host: outlook.office365.com
port: 993
username: ${OUTLOOK_USER}
password: ${OUTLOOK_PASSWORD}Generic IMAP
accounts:
- name: custom
imap:
host: imap.example.com
port: 993
username: ${EMAIL_USER}
password: ${EMAIL_PASSWORD}
tls: trueCommon Requirements
Most email providers require:
- IMAP enabled in account settings
- App-specific password (not your regular password)
- "Less secure apps" or OAuth disabled for IMAP access
- TLS/SSL connection (port 993)
Testing Your Connection
After configuration, verify your IMAP connection:
- Start Mailpilot:
pnpm start - Check the dashboard at
http://localhost:8080 - Look for Health Status - IMAP should show as "Connected"
- Check logs for connection errors
Troubleshooting
Authentication Failures
If you see "Authentication failed" errors:
- Gmail: Use an app password, not your regular password
- Outlook: Enable IMAP in account settings
- Yahoo: Generate an app password
- Others: Check if app passwords or OAuth is required
Connection Timeouts
If IMAP connections timeout:
- Verify the hostname and port are correct
- Check firewall rules allow outbound connections to port 993
- Try increasing the
timeoutsetting in your configuration
SSL/TLS Errors
If you see SSL/TLS certificate errors:
imap:
host: imap.example.com
tls: true
tls_options:
rejectUnauthorized: false # Only for self-signed certificates!Only disable certificate verification for self-signed certificates on trusted servers.
Provider-Specific Guides
Select your email provider for detailed setup instructions:
- Gmail Setup - Google Workspace and personal accounts
- Outlook Setup - Microsoft 365 and Outlook.com
- Yahoo Mail - Yahoo Mail configuration
- iCloud Mail - Apple iCloud setup
- ProtonMail - Using ProtonMail Bridge
- Generic IMAP - Any other IMAP server
Next Steps
After configuring your email provider: