- connecting email accounts
- testing the connection with your credentials (stored locally, encrypted with a key you own)
- creating or deleting email accounts
Connect an email account
Add a new IMAP account with interactive setup. The CLI will auto-detect your email provider and configure the appropriate settings.- Interactive Setup
- Non-Interactive Setup
- Account name (for reference)
- Email address
- Provider selection (auto-detected when possible)
- Password (with confirmation)
- Server settings (auto-configured for known providers)
Supported providers
Gmail
Automatically configures
imap.gmail.com:993Outlook
Automatically configures
outlook.office365.com:993Yahoo Mail
Automatically configures
imap.mail.yahoo.com:993iCloud Mail
Automatically configures
imap.mail.me.com:993For Gmail, you’ll need to use an App Password instead of your regular password. Generate one at myaccount.google.com/apppasswords.
Options
| Option | Short | Description |
|---|---|---|
--name | -n | Account name for reference |
--email | -e | Email address |
--provider | -p | Email provider (gmail, outlook, yahoo, icloud, custom) |
--imap-server | IMAP server address (for custom providers) | |
--imap-port | IMAP port (for custom providers) |
List email account connections
Display all configured email accounts in a formatted table.relay accounts ls
The output shows:
- Account name
- Email address
- Provider type
- IMAP server
- IMAP port
If no accounts are configured, the CLI will display a helpful message prompting you to add one.
Disconnect an email account
Remove an account and its stored credentials from your system.- With Confirmation
- Force Removal
This action is irreversible. You’ll need to re-add the account if you want to use it again.
Test a connection
Verify that your account credentials are working and the server is reachable.- Connect to the IMAP server
- Authenticate with your stored credentials
- Verify the connection is working
- Display success or error messages
Use this command to troubleshoot connection issues or verify your setup after adding an account.