Connect Apple Mail, Thunderbird or Outlook to LocalIMAP
Step-by-step settings for adding LocalIMAP to Apple Mail, Thunderbird, Outlook for Mac and any other IMAP mail client.
Updated · LocalIMAP 0.1.0
LocalIMAP is a standard IMAP server, so every mail client can use it. The dashboard's Setup Guide tab (press 7) shows these steps with your account name filled in, or print them in the terminal:
localimap setup personalThe settings
| Incoming (IMAP) | Outgoing (SMTP, optional) | |
|---|---|---|
| Server | 127.0.0.1 | 127.0.0.1 |
| Port | 1143 | 1025 |
| Security | None (or STARTTLS, or SSL on port 1993 with TLS enabled) | None |
| User name | your LocalIMAP account, e.g. personal | same |
| Password | the account password | same |
| Authentication | Normal password | Normal password |
The email address you enter is just a label; personal@localhost is fine. The outgoing server never sends anything to the internet: it only exists for mail clients that insist on one.
Is "no encryption" safe? Yes, by default. LocalIMAP only listens on 127.0.0.1, so the connection never leaves your computer. If you open it to your network, enable TLS in Settings first.
Apple Mail (macOS)
- Mail → Settings → Accounts → +, choose Other Mail Account… and click Continue.
- Enter any name, the email
personal@localhostand your LocalIMAP password, then Sign In. - Mail can't verify the account automatically and shows more fields. Set Account Type to IMAP, both servers to
127.0.0.1and the user name topersonal, then Sign In and Done. - Open Mail → Settings → Accounts → (new account) → Server Settings. Untick Automatically manage connection settings, set port
1143and untick Use TLS/SSL. Do the same for the outgoing server with port1025, then Save.
Thunderbird
- ☰ → Account Settings → Account Actions → Add Mail Account.
- Enter your name,
personal@localhostand the password, then click Configure manually. - Incoming: IMAP,
127.0.0.1, port1143, connection security None, authentication Normal password, user namepersonal. - Outgoing: SMTP,
127.0.0.1, port1025, None, Normal password,personal. - Click Re-test, then Done, and confirm the "no encryption" warning: the connection stays on your computer.
Outlook for Mac
- Outlook → Settings → Accounts → + → New Account.
- Enter
personal@localhostand choose IMAP/POP as the provider. - Type IMAP, user name
personal, incoming server127.0.0.1port1143with SSL unticked, outgoing server127.0.0.1port1025, same password, then Add Account.
Other clients
Evolution, Mailspring, Spark, Claws Mail, mutt and every other IMAP client work with the settings table above: choose plain or no security and password authentication, or enable TLS in LocalIMAP and choose STARTTLS or SSL.
Connecting a phone or another computer
In the dashboard's Settings, set Listen on to 0.0.0.0 and turn on TLS encryption. Then use your computer's address (for example yourmac.local) as the server and SSL on port 1993. Your device will ask you to trust LocalIMAP's self-signed certificate once.
Troubleshooting
- "Cannot connect": check the dashboard header says RUNNING, or run
localimap status. - Port already in use: the dashboard shows which port; pick another in Settings and update your mail client.
- Login fails: use the LocalIMAP user name (e.g.
personal), not the email address. Reset it withlocalimap account passwd personal. - Need details? Turn on protocol trace in Settings and watch the Logs tab (passwords are masked).