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 personal

The settings

Incoming (IMAP)Outgoing (SMTP, optional)
Server127.0.0.1127.0.0.1
Port11431025
SecurityNone (or STARTTLS, or SSL on port 1993 with TLS enabled)None
User nameyour LocalIMAP account, e.g. personalsame
Passwordthe account passwordsame
AuthenticationNormal passwordNormal 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)

  1. Mail → Settings → Accounts → +, choose Other Mail Account… and click Continue.
  2. Enter any name, the email personal@localhost and your LocalIMAP password, then Sign In.
  3. Mail can't verify the account automatically and shows more fields. Set Account Type to IMAP, both servers to 127.0.0.1 and the user name to personal, then Sign In and Done.
  4. Open Mail → Settings → Accounts → (new account) → Server Settings. Untick Automatically manage connection settings, set port 1143 and untick Use TLS/SSL. Do the same for the outgoing server with port 1025, then Save.

Thunderbird

  1. ☰ → Account Settings → Account Actions → Add Mail Account.
  2. Enter your name, personal@localhost and the password, then click Configure manually.
  3. Incoming: IMAP, 127.0.0.1, port 1143, connection security None, authentication Normal password, user name personal.
  4. Outgoing: SMTP, 127.0.0.1, port 1025, None, Normal password, personal.
  5. Click Re-test, then Done, and confirm the "no encryption" warning: the connection stays on your computer.

Outlook for Mac

  1. Outlook → Settings → Accounts → + → New Account.
  2. Enter personal@localhost and choose IMAP/POP as the provider.
  3. Type IMAP, user name personal, incoming server 127.0.0.1 port 1143 with SSL unticked, outgoing server 127.0.0.1 port 1025, 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 with localimap account passwd personal.
  • Need details? Turn on protocol trace in Settings and watch the Logs tab (passwords are masked).