# Connect a mailbox

> Connect Gmail and Google Workspace with an app password, Microsoft 365 and Outlook with sign-in, or any mailbox over SMTP and IMAP. Step by step.

Canonical: https://ballast.to/docs/connect-mailbox
Last updated: 2026-12-03

Start

Ballast sends from your own mailboxes and reads their replies, so it needs to log in to each one. Pick your provider in Mailboxes, Add mailbox. Ballast tests sending and reading before it saves anything.

## Google Workspace or Gmail (app password)

Google refuses your normal password over SMTP and IMAP. An app password is a separate 16-character password for one app, and you can revoke it any time.

1. Turn on 2-Step Verification for the account you send from, at [myaccount.google.com/signinoptions/twosv](https://myaccount.google.com/signinoptions/twosv). App passwords only exist once it's on.
2. Create an app password at [myaccount.google.com/apppasswords](https://myaccount.google.com/apppasswords). Name it Ballast.
3. Copy the 16 characters Google shows you. You won't see them again.
4. In Ballast, open Mailboxes, Add mailbox, Google Workspace or Gmail. Enter the email address, the sender name your leads will see, and paste the app password. Spaces are fine.
5. Press add. Ballast logs in to `smtp.gmail.com` and `imap.gmail.com`, and shows "login works" or Google's error for each.

If the app passwords page says the setting isn't available, 2-Step Verification is still off, or a Google Workspace admin has turned app passwords off for your organisation. Changed the Google password later? Google revokes app passwords with it: make a new one and paste it in the mailbox's settings.

## Microsoft 365 or Outlook (sign in)

Microsoft is retiring password logins for SMTP, so Ballast connects through Microsoft sign-in instead. Open Mailboxes, Add mailbox, Microsoft 365 or Outlook and press Continue with Microsoft.

- Sign in with the mailbox you want to send from, not your admin account.
- Allow Ballast to send and read mail for that mailbox. Ballast stores a token, never a password, and you can revoke it in your Microsoft account any time.
- If your company blocks third-party apps, an admin has to approve Ballast once.

Ballast sends through Microsoft Graph and reads replies from every folder, Junk included. If Microsoft refuses the sign-in later, the mailbox shows Reconnect.

## Any other provider (SMTP and IMAP)

Zoho, Fastmail, Yahoo, iCloud, cPanel hosting, Mailcow, Mailreef and anything else that speaks SMTP and IMAP. Open Mailboxes, Add mailbox, Any other provider and enter the email address, username (usually the same address) and password.

When Ballast recognises the provider from the domain's MX records, it fills in the server details for you. Change anything that differs.

| Provider | SMTP (sending) | IMAP (replies) |
| --- | --- | --- |
| Google Workspace | `smtp.gmail.com` 587, STARTTLS | `imap.gmail.com` 993, SSL/TLS |
| Microsoft 365 | `smtp.office365.com` 587, STARTTLS | `outlook.office365.com` 993, SSL/TLS |
| Zoho Mail | `smtp.zoho.com` 465, SSL/TLS | `imap.zoho.com` 993, SSL/TLS |
| Zoho Mail (EU) | `smtp.zoho.eu` 465, SSL/TLS | `imap.zoho.eu` 993, SSL/TLS |
| Fastmail | `smtp.fastmail.com` 465, SSL/TLS | `imap.fastmail.com` 993, SSL/TLS |
| GoDaddy | `smtpout.secureserver.net` 465, SSL/TLS | `imap.secureserver.net` 993, SSL/TLS |
| Yahoo Mail | `smtp.mail.yahoo.com` 465, SSL/TLS | `imap.mail.yahoo.com` 993, SSL/TLS |
| iCloud Mail | `smtp.mail.me.com` 587, STARTTLS | `imap.mail.me.com` 993, SSL/TLS |
| Yandex | `smtp.yandex.com` 465, SSL/TLS | `imap.yandex.com` 993, SSL/TLS |

Unknown provider? Ask your host for the SMTP and IMAP server, port and security. Port 465 is usually SSL/TLS and 587 STARTTLS. Ballast connects only to public addresses, so a server on a private network won't work.

## Providers that need an app password

These providers refuse your normal password over SMTP and IMAP. Ballast shows the same hint in the form when it detects them.

| Provider | What to do |
| --- | --- |
| Zoho Mail | Zoho needs an app password when 2-factor is on, and IMAP turned on in Mail settings. The free plan has no SMTP or IMAP. [Open settings](https://accounts.zoho.com/home#security/app_password) |
| Zoho Mail (EU) | Zoho needs an app password when 2-factor is on, and IMAP turned on in Mail settings. The free plan has no SMTP or IMAP. [Open settings](https://accounts.zoho.eu/home#security/app_password) |
| Fastmail | Fastmail needs an app password with IMAP and SMTP access: Settings, Privacy & Security, App passwords. [Open settings](https://app.fastmail.com/settings/security) |
| Yahoo Mail | Yahoo needs an app password, not your normal one: Account security, Generate app password. [Open settings](https://login.yahoo.com/account/security) |
| iCloud Mail | iCloud needs an app-specific password, not your Apple ID password: Sign-In and Security, App-Specific Passwords. [Open settings](https://account.apple.com/account/manage) |

## Mailboxes you bought from Zapmail, InboxKit, Mailforge, Infraforge or Primeforge

Bring every mailbox in with the vendor's API key, without a CSV. Owners and admins open Mailboxes, From a vendor, pick the vendor and paste its key (or connect it first under Integrations, Inbox vendors).

1. We list every mailbox the key reaches, across all of the vendor's workspaces, and mark the ones already in Ballast.
2. Pick some or all of them. The import runs in the background, so you can close the window.
3. For each mailbox we read its password from the vendor at that moment, test SMTP and IMAP, and save it with ramp-up on, like Add mailbox.

| Mailbox | How it connects |
| --- | --- |
| Google Workspace | With the app password the vendor holds (Zapmail, InboxKit, Primeforge). A mailbox the vendor has no app password for fails with that reason: create one at the vendor (or ask them to), then Try failed ones again. |
| Microsoft 365 | With Microsoft sign-in (Zapmail, InboxKit, Primeforge). Each waits with a Sign in button that opens Microsoft with the address filled in; sign in with the password from the vendor's dashboard and you come back to the import. |
| Mailforge, Infraforge and Primeforge | With the SMTP and IMAP servers and password the vendor gives. |

With Zapmail, InboxKit and Primeforge the import can also add each imported domain's link domain CNAME (`links.<domain>`) in the DNS the vendor hosts. The box is ticked when you pick the mailboxes; untick it to add the records yourself. It only adds that record and never changes another one. See [Link domains](https://ballast.to/docs/domains#link-domains).

If the vendor changes a mailbox's password later, the mailbox stops with a login error and we pick up the new password from the vendor within a few hours. Disconnecting the vendor keeps the mailboxes connected; only that pickup stops.

Using InboxKit? You can also go the other way: add your Ballast workspace API key once inside InboxKit and export Google Workspace and Microsoft 365 mailboxes straight to Ballast via sign-in links, without app passwords.

## Sign-in links for Google and Microsoft (API)

Inbox vendors and scripts can connect mailboxes by sign-in instead of a password. Ask for a link per mailbox with an API key from an owner or admin, open it in a browser, sign in as that mailbox and approve. The mailbox is tested and saved in the workspace that made the link.

Create a link

```
curl -X POST https://ballast.to/api/v1/mailboxes/oauth-sessions \
  -H "Authorization: Bearer bl_..." \
  -H "Content-Type: application/json" \
  -d '{"provider": "google", "email": "ana@acme.com"}'
```

- The answer has an `id` and a `url`. The link works once, only for that address, for 24 hours. Signing in as any other account fails with the reason. One mailbox sends from one workspace: an address already connected in another workspace you belong to gets a `409`, and one connected in any other workspace ends the session `failed` once the sign-in shows the mailbox is yours. The same rule applies when you add a mailbox in the dashboard or import a file.
- Read `GET /api/v1/mailboxes/oauth-sessions/{id}` for the result: `pending`, `completed` with `mailboxId`, `failed` with `error`, or `expired`. A failed or expired link stays that way; make a new one.
- Microsoft: tenants that block third-party apps need an admin to consent to Ballast's app for the whole tenant first.
- Google: works only on Google Workspace domains whose admin marks Ballast's Google client as trusted (Admin console, Security, Access and data control, API controls). Other Google accounts connect with an app password as above. A Google mailbox signed in this way replaces an app-password mailbox with the same address and keeps its history.

Ask us for the Google and Microsoft client IDs. Both endpoints are in the [API reference](https://ballast.to/docs/api/mailboxes), and as the MCP tools `create_mailbox_sign_in_link` and `get_mailbox_sign_in_link`.

## Many mailboxes at once (CSV)

In Mailboxes, choose Import CSV. Exports from Instantly, Smartlead, Zapmail and InboxKit are recognised as they are. Without SMTP and IMAP columns we find the servers from each domain: Google Workspace rows need the 16-letter app password, and Microsoft 365 rows connect with Microsoft sign-in instead. Each row is tested like a single mailbox, and the result shows which were added, which already existed and which failed with the reason.

Minimal CSV

```
email,name,password,smtp_host,smtp_port,imap_host,imap_port,daily_limit
ana@acme.com,Ana Popescu,app-password,smtp.acme.com,465,imap.acme.com,993,30
```

Optional columns: `smtp_security`, `imap_security`, `smtp_user`, `imap_user`. Leave out `daily_limit` to get the default of 30.

## Need domains and mailboxes?

Ballast does not sell domains or mailboxes itself. If you need secondary domains and sending inboxes set up with SPF, DKIM and DMARC for outreach, you can provision them with a dedicated infrastructure provider and connect them directly via API key or CSV import.

| Provider | What it offers | How to connect |
| --- | --- | --- |
| [Mailforge](https://mailforge.ai/?via=ballast) | Shared cold email infrastructure for secondary domains and mailboxes. | Connect via API key (Mailboxes, From a vendor) or SMTP/IMAP CSV import. |
| [Infraforge](https://infraforge.ai/?via=ballast) | Private cold email infrastructure with dedicated IPs and custom DNS setup. | Connect via API key (Mailboxes, From a vendor) or SMTP/IMAP CSV import. |
| [Primeforge](https://primeforge.ai/?via=ballast) | Google Workspace and Microsoft 365 mailboxes provisioned for outreach. | Connect via API key (Mailboxes, From a vendor) or Google/Microsoft/CSV import. |
| [Zapmail](https://zapmail.ai/?via=ballast) | Google Workspace and Microsoft 365 mailboxes for cold email infrastructure. | Connect via API key (Mailboxes, From a vendor) or Zapmail CSV import. |

The links above are partner links: Ballast may earn a commission if you sign up through them, at no extra cost to you. For Mailforge, Infraforge, Primeforge and Zapmail, paste your API key under Mailboxes, From a vendor or Integrations, Inbox vendors.

## What happens after you connect

A new mailbox starts at 5 emails a day and adds 2 a day until it reaches its daily limit. Its domain appears in Domains with a deliverability grade. Ballast logs in again once a day to catch expired passwords. Details in [Mailboxes](https://ballast.to/docs/mailboxes).

Connect as many mailboxes as you like, from day one. Gmail and Outlook.com addresses work as mailboxes, but their domains never get a deliverability grade: you don't control their DNS.
