Email Settings Email Settings Guide

mailcow Email Settings: IMAP, SMTP and App Password

mailcow is a self-hosted mail suite you run with Docker, so the mail host is your own address like mail.yourdomain.com. The ports are standard: IMAP 993, POP3 995, SMTP 465 or 587. Secure ports work from the start, since mailcow provisions Let's Encrypt for you. Copy each value with 1 tap.

Tested July 26, 2026 1 Tap Copy App Password If 2FA Is On

mailcow Quick Settings

IMAP Server mail.yourdomain.com
IMAP Port 993 (SSL/TLS)
SMTP Server mail.yourdomain.com
SMTP Port 465 (SSL) / 587 (STARTTLS)
POP3 Server mail.yourdomain.com
Username Your full email address

Quick answer: for mailcow the mail server is your own host, usually mail.yourdomain.com. IMAP is port 993 with SSL/TLS. SMTP is port 465 (SSL) or 587 (STARTTLS). POP3 is port 995 with SSL. Sign in with your full email address and your mailbox password. If you turned on two factor in the mailcow UI, create an app password and use that in the app instead.

Every setting on this page is verified with live IMAP and SMTP connections from Univik email software. We have made email backup and converter tools since 2013, so we connect to servers like these daily. See what changed →

What Changed Recently#

mailcow is stable, but a few of its built in features shape how you connect a client. Here is the current status.

Latest update

Turn on two factor and your mailbox password stops working in apps. Once you enable 2FA in the mailcow UI, mail clients need an app password instead. Create one in the UI and paste it into the app.

Earlier change

SSL is automatic. mailcow issues and renews Let's Encrypt certificates itself, so 993, 995, 465 and 587 are ready out of the box when port 80 is reachable.

Earlier change

Webmail, calendar and contacts are built in. SOGo ships inside mailcow, so one account syncs mail, calendar and contacts over IMAP, CalDAV, CardDAV and ActiveSync.

Current status: the client ports are the same on every mailcow. Your mail host is your own server name and an app password is needed only once 2FA is on.

Before You Begin#

Two things to sort out first. If you skip them, your email app is refused even when every server value is right.

1. Know your mail host

mailcow runs on your own server, so the mail host is the name you set at install, usually mail.yourdomain.com. The username is your full email address.

Where: the same host you open the mailcow UI on

2. Check your two factor setting

If you turned on 2FA in the mailcow UI, your mailbox password will not work in a mail app. You need an app password. With 2FA off, the mailbox password works directly.

Where: App password steps below →

About mailcow#

mailcow, full name mailcow: dockerized, is a free, open-source mail server suite that runs as a set of Docker containers, maintained by mailcow GmbH and a large community.

mailcow bundles Postfix, Dovecot, SOGo and Rspamd behind one web UI, so a lot works on its own. It provisions Let's Encrypt certificates for you, which is why the secure ports connect without any manual certificate step. SOGo adds webmail, calendar and contacts. The one thing that changes client setup is two factor: turn it on and your mailbox password stops working in apps, so you create an app password instead.

Service Namemailcow: dockerized
Made Bymailcow GmbH, open source (GPLv3)
TypeFree self-hosted Docker mail suite
Server HostYour own domain, like mail.yourdomain.com
WebmailSOGo, built in at /SOGo
ProtocolsIMAP, POP3, SMTP, ActiveSync, CalDAV, CardDAV
App PasswordRequired once 2FA is on
Mailbox QuotaSet by admin
Every mailcow uses the same ports: only the host changes from one server to the next. Every domain you host on one mailcow shares the same 993, 995, 465 and 587. Your host is the name the server runs on.

mailcow Access Login#

mailcow gives you a browser login for both mail and admin. Here is where each one lives:

Webmail

https://mail.yourdomain.com/SOGo

mailcow UI

https://mail.yourdomain.com

Password and 2FA

Set in the mailcow UI, per mailbox

Your login lives on your own domain. The SOGo webmail and the mailcow UI both sit on your mail host over HTTPS. A page on any other domain asking for your mailcow email and password is not yours, so enter your details only on your own server.

Allow IMAP and App Passwords#

New mailboxes already allow IMAP, POP and SMTP, so most people can skip straight to a client. Do this only if a mailbox was locked down or you turned on two factor and now need an app password.

  1. Open the mailcow UI at your host and sign in as the mailbox user or an admin.
  2. Check protocol access on the mailbox. IMAP, POP3 and SMTP each have a toggle, so make sure the ones you need are on.
  3. Make an app password if 2FA is on. In App passwords, create one and give it IMAP and SMTP access, plus DAV if you want calendar and contacts.
  4. Use that password in the mail app. With 2FA off, your normal mailbox password works on its own.
Three ways to reach a mailcow account mailcow UIAdmin and settings SOGo webmailBrowser, at /SOGo Mail clientsIMAP and SMTP All on your own host over HTTPS
One mailcow host serves the admin UI, the webmail and your mail apps.
mailcow: mailbox password or app password Is 2FA on for you? No Yes Use your mailbox password Make an app password in the UI
Two factor is the deciding factor. With it off, nothing extra is needed.

mailcow IMAP Settings#

IMAP is the incoming protocol most people should use. It keeps your mail on the server so every device shows the same inbox.

IMAP ServerYour mailcow host, like mail.yourdomain.com
Port993 (SSL) or 143 (STARTTLS)
EncryptionSSL/TLS or STARTTLS
UsernameYour full email address on your domain
PasswordYour mailbox password or an app password if 2FA is on
AuthenticationRequired

mailcow POP3 Settings#

POP3 downloads mail to 1 device. Pick it only if you want a local copy on a single computer. Not sure? See the comparison below.

POP3 ServerYour mailcow host, like mail.yourdomain.com
Port995
EncryptionSSL/TLS (required)
UsernameYour full email address
PasswordYour mailbox or app password
POP3 pulls mail off the server unless you stop it. POP suits one computer. Tick "leave a copy on the server" so SOGo webmail and your other devices still show the mail. IMAP keeps every device in step without that.

mailcow SMTP Settings#

Send on 587 or 465: use SMTP 587 with STARTTLS or 465 with SSL. Both need authentication with your mailbox or app password. Port 25 carries mail between servers, so a mail app should not send on it. Turn on authentication for outgoing mail.
Which SMTP port your mail app should use Port 25Server to server deliveryNot for mail apps Port 587 or 465Your mail app sends hereLogin required
Send on 587 or 465. Port 25 is for servers passing mail to each other.

SMTP handles outgoing mail. If you can read mail but not send it, the problem is here.

SMTP ServerYour mailcow host, like mail.yourdomain.com
Port (SSL)465
Port (STARTTLS)587
EncryptionSSL or STARTTLS (required)
UsernameYour full email address
PasswordSame mailbox or app password as incoming
AuthenticationRequired. Check "My outgoing server requires authentication" in Outlook.

Check mailcow IMAP Settings Online#

You don't need to download anything to check mailcow IMAP settings. Every port here is checked and copies straight from your browser. Since mailcow runs on your own domain, the host belongs to you, so the checker below points known consumer domains to their own guides. For your mailcow domain, use the host from the tables with the ports above.

Does my email address use these settings?

Runs in your browser only. Your address is never sent anywhere or stored.

Want to check the account before you add it to an app? Sign in at your SOGo webmail to confirm the address and password work. If 2FA is on, make an app password first. Once both pass, any email app connects with the tables above.

Look Up IMAP Settings for Any Email Domain#

This page covers mailcow. For every other address, work email on a company domain included, we run a free online lookup database: imapsettings.com.

imapsettings.com

Complete email settings database, by Univik

Check IMAP settings online →

Enter any email address and get the incoming and outgoing server settings for that domain in 1 step:

Incoming server: hostname, port, SSL/TLS and username format
Outgoing server: SMTP hostname, port and encryption

Your address is used only to find the settings for that domain. Nothing is stored or shared.

mailcow App Password Setup#

On mailcow the password you use depends on one setting: two factor. With 2FA off, your mailbox password works everywhere. With it on, mail apps need an app password made in the UI.

Where you sign in2FA off2FA on
SOGo webmail and the mailcow UI✓ Mailbox password✓ Password plus 2FA
Outlook, Apple Mail, Thunderbird✓ Mailbox password✗ App password needed
Phone mail apps (IMAP or ActiveSync)✓ Mailbox password✗ App password needed
Calendar and contacts (CalDAV, CardDAV)✓ Mailbox password✗ App password with DAV

How to Generate an App Password

  1. Sign in to the mailcow UI at your host as the mailbox user.
  2. Open App passwords from your user menu and choose Add.
  3. Name it after the app, for example "iPhone Mail", and pick the access it needs: IMAP, SMTP and DAV for calendar and contacts.
  4. Save and copy the password shown on screen. You see it once.
  5. Paste it into the app as both the incoming and outgoing password.
Good to know: make one app password per device so you can revoke a lost phone without touching the rest. Each one is scoped to the protocols you ticked, so an IMAP only password cannot send mail unless you also gave it SMTP.

Set Up mailcow in Email Clients#

Point your client at your mailcow host with IMAP 993 and SMTP 465 or 587. mailcow also serves autoconfig and autodiscover, so many clients fill these in from your email address once the DNS records exist.

mailcow account setup at a glance What to enter in any mail app Incoming (IMAP) Server: your mailcow host Port: 993 Security: SSL/TLS Outgoing (SMTP) Server: your mailcow host Port: 465 Security: SSL/TLS Username: your full email address Password: your mailbox password, or an app password when 2FA is on
One host serves incoming and outgoing. Only the port changes between them.
How mailcow autoconfig fills in settings Enter email addressand password autoconfig DNS recordsset up for your domain? Yes No Client fills host and ports itself Enter the host and ports by hand
With the DNS records in place, setup often needs only your address and password.

Jump to your app:

Outlook (Windows and Mac)

  1. Open Outlook → File → Add Account (in new Outlook, Settings → Accounts → Add account).
  2. Enter your mailcow address. Autodiscover often fills the rest, so try that before going manual.
  3. For manual setup, choose IMAP and set your host to 993 with SSL incoming and the same host to 465 with SSL outgoing.
  4. Enter your mailbox password, or an app password if 2FA is on. Switch on "outgoing server requires authentication".
  5. Send a test message to yourself to confirm both directions work.

Apple Mail (macOS)

  1. Open Mail → Settings → Accounts → Add Account → Other Mail Account.
  2. Enter your name, mailcow address and password, an app password if 2FA is on, then continue.
  3. When detection fails, set your mailcow host as both incoming and outgoing.
  4. Set IMAP to 993 SSL and SMTP to 465 SSL, with your full address as the username.
  5. Finish. To add calendar and contacts too, set up the account as Exchange instead.

iPhone and iPad

  1. Open Settings → Apps → Mail → Mail Accounts → Add Account → Other, then Add Mail Account.
  2. Enter your name, mailcow address and password, an app password if 2FA is on, then tap Next.
  3. Keep IMAP selected and set your host for incoming and outgoing, 993 and 465 with SSL.
  4. Want calendar and contacts? Add the account as Exchange, which uses mailcow ActiveSync.
  5. Tap Save and wait for iOS to verify the account.

Android

  1. Open your mail app (Gmail app, Samsung Email or another) → Add account.
  2. Choose Other or IMAP, or Exchange if you want calendar and contacts through ActiveSync.
  3. Enter your address and password, an app password if 2FA is on, then pick Manual setup if needed.
  4. Enter the servers: your mailcow host 993 SSL incoming, the same host 465 SSL outgoing.
  5. Finish setup and pull down to sync your inbox.

Thunderbird

  1. Open Thunderbird → Account Settings → Account Actions → Add Mail Account.
  2. Enter your name, mailcow address and password, an app password if 2FA is on, then select Continue.
  3. Let it probe autoconfig. mailcow answers, so the servers often fill in on their own.
  4. If detection misses, choose Configure manually and point both servers at your host, 993 SSL and 465 SSL.
  5. Select Done. Add the CalDAV and CardDAV URLs in Calendar and Address Book for groupware.

SOGo Webmail and Server Features#

The ports connect your apps. These features control how mail behaves. Most live in SOGo webmail under Preferences, with spam handled in the mailcow UI.

Signature

SOGo, Preferences, Mail. A signature set here shows on webmail. Outlook and other clients keep their own, so set it in both if you use both.

Vacation Auto Reply

SOGo, Preferences, Vacation. Set start and end dates so it stops on its own. The reply goes out from the server, so your computer need not be on.

Filters and Rules

SOGo, Preferences, Mail, Filters. These are Sieve rules that run on the server, so they sort mail before any client sees it. App only rules wait for that app to open.

Spam Filter

mailcow UI, Spam filter. Rspamd scores every message. You set your own allow and deny lists there per mailbox.

mailcow syncs mail, calendar and contacts MailIMAP and POP3 Calendar and contactsCalDAV, CardDAV, ActiveSync All from one SOGo account
Unlike a mail only server, mailcow syncs calendar and contacts through SOGo.

POP3 vs IMAP#

FeatureIMAPPOP3
Where mail livesOn the mailcow serverDownloaded to 1 device
Multiple devices✅ Everything stays in sync❌ Each device sees different mail
Sent and deleted mail✅ Synced everywhere⚠️ Stays only on that device
Offline reading⚠️ Cached mail only✅ Full local copy
Server storage usedYes, counts against your quotaCan be freed after download
Best forPhone + computer, everyday useSingle PC, local archives
Our verdict: choose IMAP so every device shows the same inbox. For calendar and contacts as well, add the account over ActiveSync. For a permanent offline copy, a backup tool handles that better than POP3.

mailcow Sending and Storage Limits#

On mailcow the limits belong to your admin, not a fixed policy. These are the settings that decide what goes through, each set in the mailcow UI:

Mailbox quotaSet per mailbox
Max message sizeSet server wide or per domain
Rate limitsSet per mailbox or domain
AttachmentsCounted inside the message size limit
Secure portsWork out of the box with auto Let's Encrypt
What happens at the limitOversized mail is refused, a full mailbox bounces new mail

Troubleshooting mailcow Connections#

Find the exact error your email app shows, then apply the fix:

Error you seeWhat it meansFix
Authentication failed 2FA is on, but the app has your mailbox password Create an app password in the mailcow UI and paste that into the app instead.
The certificate is not trusted Let's Encrypt has not issued yet, so a self-signed cert is in use Open port 80 and point the DNS at the server. mailcow then swaps its snake-oil certificate for a real one.
Connection timed out A firewall, a host block or a mailcow IP ban Confirm 993 and 465 or 587 are open on the server and router. Some hosts block 25 and 465 by default. If it began after several wrong passwords, mailcow banned your IP, so clear it in the UI.
550 relaying denied Outgoing mail is not authenticating Send on 587 or 465 with "outgoing server requires authentication" on. Port 25 is for server to server mail.
Messages stuck in Outbox SMTP authentication is off Enable "outgoing server requires authentication" with the same login as incoming mail.

Reader Reported Fixes

Three fixes that come up over and over in mailcow setups, beyond the error table above.

Works in SOGo but not in the app? Two factor is on. When webmail signs in fine but a mail client is refused, the mailbox has 2FA. Mail apps cannot answer a 2FA prompt, so make an app password and use that.

Certificate warning on a new server? Let's Encrypt has not run. Until port 80 is reachable and the DNS points at the server, mailcow serves a self-signed cert that clients distrust. Fix those two things and it issues a real certificate on its own.

mailcow issues and renews SSL by itself Port 80 openDNS points here acme-mailcowgets and renews cert Secure portsjust work
No manual certificate step. mailcow keeps a valid Let's Encrypt cert on its own.

Timeouts right after a few wrong passwords? mailcow banned your IP. mailcow watches for failed logins. After a handful, its netfilter blocks your address for a while. Every port then times out, which looks like a firewall fault but is not. Wait for the ban to lift or remove your IP in the UI under Configuration, then Fail2ban.

Why mailcow times out after wrong passwords A few wrongpasswords in a row netfilter bansyour IP address Every porttimes out Wait, or unban your IP in the mailcow UI
A timeout right after failed logins is usually a self-inflicted ban, not the firewall.

Moving Mail to or from mailcow?#

Pulling mail into mailcow? mailcow has a built in Sync jobs feature under Configuration. It runs imapsync on the server to copy an old mailbox into a mailcow one over IMAP, no desktop tool needed.

Prefer a desktop tool or moving off mailcow? The Univik Email Migration Tool moves every folder across over IMAP. Put your mailcow host and password on one side and the other account on the other.

Leaving for Microsoft 365 or Google? The same tool reads your mailcow mailbox folder by folder with the settings on this page and writes it into the new account.

Back up before any big change. Save the mailbox first so you keep a copy no matter what the move does.

Rather not do it yourself? Our Email Migration Services team plans and runs the whole transfer for you and verifies every folder arrived.

Use These Settings in Univik Email Backup#

The same IMAP settings above let you download your complete mailcow mailbox to your computer. Univik Email Backup saves everything as PST, MBOX, EML or PDF files you keep forever, a useful second copy next to your server snapshots.

  1. Download Univik Email Backup and install it on Windows.
  2. Select IMAP from the source list. mailcow is not named, so IMAP is the option to pick.
  3. Sign in with your full email address and your mailbox password. Use an app password if 2FA is on.
  4. If the tool asks for server details, use your mailcow host with port 993 and SSL from the IMAP table above. Use an app password if 2FA is on.
  5. Pick a saving format and folder, then start the backup. Large mailboxes download in the background.
Why back up before switching providers: POP3 pulls only the inbox. A vacation reply to a closed account only bounces back. A full IMAP backup saves every folder, attachment and date into files any email app opens later. Moving to a new account instead of archiving? Use the email migration tool to move mail straight between accounts.

Email Settings Glossary#

IMAP

Internet Message Access Protocol. Keeps mail on the server, so every device shows the same inbox, folders and read state.

POP3

Post Office Protocol version 3. Downloads mail to 1 device and can remove it from the server. An older approach that still suits local archives.

SMTP

Simple Mail Transfer Protocol. Sends your outgoing mail. Every account needs it next to IMAP or POP3, which only receive.

SSL / TLS / STARTTLS

Encryption for the connection. SSL/TLS encrypts from the start (ports 993, 995, 465). STARTTLS upgrades a plain connection (port 587).

App Password

A 16 character code that replaces your real password inside email apps. Safer because you can revoke 1 app without changing your main password.

OAuth

Sign in through the provider's own window instead of typing a password into the app. The modern method most providers are moving to.

How We Verify These Settings#

Univik builds email backup, migration and converter software since 2013. Our tools sign in to self-hosted servers like mailcow over IMAP and SMTP every day for thousands of users, so a port, certificate or login quirk shows in our connection logs before most guides catch it.

Every value here is confirmed with 3 checks: live IMAP and SMTP connections from Univik Email Backup, a comparison against the mailcow documentation, then a test sign in with an app password made in the UI. We re verify after any mailcow release and at least once a quarter.

Found something that no longer matches your mailcow setup? Tell us and we will retest and update the page, with the change logged in what changed recently.

 Help & Support

Frequently Asked Questions

The mail server is your own mailcow host, like mail.yourdomain.com. IMAP uses port 993 with SSL, SMTP uses 465 with SSL or 587 with STARTTLS. Sign in with your full email address and your mailbox password. Use an app password instead if 2FA is on. The secure ports work out of the box.

The usual cause is two factor. If you turned on 2FA, a mail app cannot answer the second step, so it is refused even with the right password. Make an app password in the mailcow UI and use that. If that is not it, check the mailbox still allows IMAP or SMTP access. Several wrong tries can also make mailcow ban your IP, which then times out every port until the ban lifts.

IMAP for almost everyone, since it keeps your phone, computer and SOGo webmail in step. For calendar and contacts too, add the account over ActiveSync. POP3 fits only a single computer with a local download. Full comparison here.

It is the host you set when you installed mailcow, usually mail.yourdomain.com. Use that host for incoming and outgoing. It is also the address of your SOGo webmail and the mailcow UI.

Only if you turned on two factor. With 2FA off, your mailbox password works directly in every client. With it on, mail apps need an app password made in the mailcow UI, one per device is tidy.

Yes. mailcow ships SOGo, a full webmail with calendar and contacts, at https://mail.yourdomain.com/SOGo. You can also open it from the mailcow UI under Apps, Webmail. Sign in with your email address and password.

Because Let's Encrypt has not issued a certificate yet. mailcow serves a temporary self-signed one until port 80 is reachable and your DNS points at the server. Fix those and mailcow swaps in a trusted certificate on its own, then the warning clears. For a lasting local archive, see how to back up your mailcow mailbox.

Yes. SOGo inside mailcow serves calendar and contacts over CalDAV and CardDAV. It also offers full device sync over ActiveSync. Add the account as Exchange for one step setup. To connect a single app, point a CalDAV and CardDAV client at the SOGo URLs under /SOGo/dav/.

An email migration tool copies mail directly between the 2 accounts over IMAP. You need your mailcow host and password, an app password if 2FA is on, plus the destination account details. mailcow also has built in Sync jobs for pulling mail the other way.

If setting this up feels risky or you have many accounts to move, our managed email migration service does the entire job for you.

Other Email Provider Settings

Summary: mailcow Settings at a Glance

  • Host: your mailcow server, like mail.yourdomain.com
  • IMAP port 993, POP3 995, both SSL/TLS
  • SMTP port 465 (SSL) or 587 (STARTTLS)
  • Username is your full email address
  • App password needed only when 2FA is on
  • SSL works out of the box via auto Let's Encrypt
  • SOGo webmail built in, with calendar and contacts
  • Full sync over ActiveSync, CalDAV and CardDAV