Add an email account to Mailloft: servers and ports
Add iCloud, Gmail, Fastmail, Yahoo, Outlook or any IMAP account to Mailloft, with the exact server, port and security settings each preset uses.
Updated 7 min read
On this page
This page shows you how to add an email account to Mailloft and which server settings each provider preset fills in, so you can check your own settings line by line.
The short version: click Add Account at the bottom of the sidebar (or the + button in Settings ▸ Accounts). Enter your name and address, then paste an app password. Mailloft tests the connection, and you click Add Account.
Before you start
- Most providers need an app password, not your normal password. Gmail, iCloud, Fastmail and Yahoo all work this way. See Create an app password for Gmail, iCloud, Fastmail or Yahoo.
- Gmail and Google Workspace: you need a 16-letter app password, which requires 2-Step Verification on your Google account. IMAP must be on in Gmail ▸ Settings ▸ Forwarding and POP/IMAP. Mailloft has no "Sign in with Google".
- Outlook, Hotmail and Microsoft 365: read Outlook, Hotmail and Microsoft 365 accounts in Mailloft first. Microsoft sign-in may not be available in your copy, and not every Microsoft account still accepts app passwords.
- Mailloft must be in its trial or licensed. While the license is locked, nothing syncs or sends.
Accounts that work in Mailloft
Mailloft reads mail over IMAP and sends over SMTP. Any provider that offers both should work, including iCloud, Gmail, Google Workspace, Fastmail, Yahoo and custom-domain hosts. Outlook.com and Microsoft 365 work over IMAP too, with the sign-in caveats above.
Mailloft does not support:
- POP3
- Exchange ActiveSync or EWS
- Microsoft Graph
- the Gmail API
- JMAP
Connections must be encrypted with SSL/TLS or STARTTLS. None (insecure) is offered only for servers on your own Mac (localhost, 127.0.0.1, ::1).
Add an email account with the wizard
The Add a Mail Account sheet has four steps: You → App Password → Servers → Finish. For Microsoft accounts where sign-in is available, the second step is Sign In instead of App Password.
You can open the wizard from any of these places:
- Add Account in the sidebar footer
- the + button in Settings ▸ Accounts
- the welcome window ("Set Up
<Provider>…" or "Set Up Account…") - Add Account… in the empty reader when you have no accounts yet
To add an account:
- Under You, enter Your name and Email address. Mailloft picks the provider card (iCloud, Gmail, Fastmail, Yahoo, Outlook or Other) from the address. Click a different card if the guess is wrong.
- Click Continue.
- On the App Password step, follow the numbered steps for your provider. Click Open
<Provider>'s App-Password Page to create the password in your browser. For Gmail the button reads Open Google's App-Password Page. For Other, use the password your provider gives mail apps. - Paste it into App password.
- For Gmail, spaces are fine because Mailloft removes them.
- A live hint warns you if the length is wrong, for example "That's 15 letters. Google app passwords have 16."
- Click Continue. On the Servers step, Mailloft runs Test Connection automatically.
- When you see "Signed in to IMAP and SMTP.", click Continue.
- On Finish, choose a colour and click Add Account.


The password is stored only in your Mac's Keychain. It is never logged and never sent anywhere except your mail server.
Server settings for each provider preset
These are the values the wizard fills in. Security is shown where the preset sets it. As a rule, ports 993 and 465 use SSL/TLS and port 587 uses STARTTLS.
| Provider | Detected from | Incoming (IMAP) | Outgoing (SMTP) | Server saves sent messages | Sign-in |
|---|---|---|---|---|---|
| iCloud | icloud.com, me.com, mac.com | imap.mail.me.com : 993 SSL/TLS | smtp.mail.me.com : 587 STARTTLS | Off | App-specific password |
| Gmail | gmail.com, googlemail.com, Google Workspace (by MX) | imap.gmail.com : 993 SSL/TLS | smtp.gmail.com : 465 SSL/TLS | On | App password only |
| Fastmail | fastmail.com, fastmail.fm, messagingengine.com | imap.fastmail.com : 993 | smtp.fastmail.com : 465 | Off | App password |
| Yahoo | yahoo.com, ymail.com, rocketmail.com, regional Yahoo domains | imap.mail.yahoo.com : 993 | smtp.mail.yahoo.com : 465 | Off | App password |
| Outlook | outlook.com, hotmail.com, live.com, msn.com and regional variants | outlook.office365.com : 993 | smtp-mail.outlook.com : 587 STARTTLS | On | Microsoft sign-in if available, otherwise app password |
| Microsoft 365 (shown as Outlook) | custom domains with MX mail.protection.outlook.com | outlook.office365.com : 993 | smtp.office365.com : 587 STARTTLS | On | Microsoft sign-in if available; your organisation must allow IMAP and SMTP |
| Other | anything else | imap.<domain> : 993 SSL/TLS (guessed) | smtp.<domain> : 465 SSL/TLS (guessed) | Off | Password or app password |
The Username is usually your email address.
Turn on Server saves sent messages automatically for providers that file sent mail themselves, such as Gmail. That avoids duplicate copies in Sent.
How Mailloft recognises a custom domain
If your address uses your own domain (for example you@yourcompany.com), the wizard picks Other. When you click Continue, Mailloft does one DNS lookup of your domain's MX record.
- When it runs: only when you click Continue, never while you type.
- Timeout: 3 seconds.
- What it detects: Google Workspace, Microsoft 365, iCloud, Fastmail and Yahoo hosting.
If it finds one of these, the caption reads "Your domain's mail is hosted by <Provider>." and the matching preset is used. A Workspace domain, for example, gets the Gmail servers and app-password steps.
If the host isn't recognised, Mailloft guesses imap.<domain> and smtp.<domain>, and you review them on the next step.
Review servers and run Test Connection
The Servers step shows summary lines for Incoming, Outgoing and Username. Click Edit… to change:
- Username
- IMAP server, port and security
- SMTP server, port and security
- Server saves sent messages automatically
Test Connection does a real check, not just a format check:
- It logs in to IMAP and lists your mailboxes.
- It connects to SMTP and authenticates.
It runs automatically when you reach this step. Click it again after any change.
For Other domains, if the test fails, Mailloft offers Try mail.<domain> instead. If that fails too, copy the exact server names and ports from your host's help pages into Edit….


Pick an account colour
On Finish ("Make it yours"), pick a ring colour:


- Ink Blue
- Terracotta
- Sage
- Plum
- Ochre
- Teal
- Rose
- Slate
The ring marks this account's mail in All Inboxes, the sidebar and the compose From menu. To change it later, open the account's menu in the sidebar and choose Colour, or right-click the account in Settings ▸ Accounts.
If the Screener is on (it is by default), Finish also tells you that new senders will wait in the Screener. See Screen first-time senders with The Screener.
After you add it: push or polling
Settings ▸ Accounts shows how each account receives new mail:
- Push: new mail arrives instantly (IMAP IDLE).
- Checks every 5 min: the server doesn't support push, so Mailloft checks every 5 minutes.
Each account uses up to 3 connections to the server. Mailloft syncs the newest 200 messages per mailbox. Older mail loads as you scroll to the end of the list.
Edit or remove an account
To edit an account:
- Open Edit Account… from the account's … menu in the sidebar, or click Edit… in Settings ▸ Accounts.
- Change the fields you need. The form has Provider, Name, Email, Username, App Password, and Server, Port and Security for both IMAP and SMTP.
- Click Test Connection. Success reads "Connected to IMAP and SMTP successfully."
Password-based Outlook accounts also show Use Microsoft Sign-In Instead. Accounts signed in with Microsoft show Sign In Again… instead of a password field.
To manage extra send-from addresses, Reply-To and Always Bcc, use Addresses… in Settings ▸ Accounts.
To remove an account:
- The − button in Settings ▸ Accounts asks first: "Mailloft forgets the account, its password and cached mail. Nothing is deleted on the server."
- Remove Account in the sidebar account menu acts immediately, with no confirmation. Use the Settings route if you want the prompt.
If the account won't connect
- Orange "Password needed" (or "Sign in again") badge: the Keychain read is waiting or was denied, or the server rejected the password. Click the badge, or use Enter Password… or Try Keychain Again from the account menu.
- "Google wants an app password here, not your Google account password." Create an app password and paste it instead.
- "Google didn't accept this app password." Check the email address or create a new app password. Old ones stop working when you change your Google password.
- "IMAP is turned off for this account." Turn on IMAP in Gmail ▸ Settings ▸ Forwarding and POP/IMAP, or ask your Workspace admin.
- "Microsoft sign-in isn't set up in this copy of Mailloft." Click Use an App Password. See the Outlook page linked above for details.
- "The server's security certificate is for a different server name." The server name doesn't match. Enter your host's exact IMAP and SMTP names.
- "Mailloft only connects without encryption to this Mac (localhost)." Choose SSL/TLS or STARTTLS.
For more errors, see Troubleshoot Mailloft: sign-in, sending and sync.