KMail is the mail component of the KDE PIM suite — often the default on KDE Plasma desktops. Together with KOrganizer (calendar) and KAddressBook (contacts) it forms the KDE take on an Outlook-style suite. All three together are called Kontact.
From our experience: stable with IMAP, good with CalDAV/CardDAV. That’s all you need with us — we don’t offer Exchange protocols, IMAP plus CalDAV/CardDAV covers everything.
Requirements
- KMail / Kontact installed
- Debian/Ubuntu:
sudo apt install kmail kontact - Fedora:
sudo dnf install kmail kontact - Usually preinstalled on KDE Plasma
- Debian/Ubuntu:
- Mailbox exists
- App password if 2FA is enabled
Setting up the account
-
Start KMail (or Kontact, then switch to the Mail tab).
-
First launch: the account setup wizard appears. Otherwise: Settings → Configure KMail → Accounts → Add.
-
Select IMAP E-Mail Server → Add.
-
General tab:
| Field | Value |
|---|---|
| Account name | your choice |
| Username | full email address |
| Password | mailbox / app password |
| Incoming server | mail.xaweho.de |
- Advanced tab (or “Filtering”, depending on the version):
| Field | Value |
|---|---|
| Security | SSL/TLS |
| Port | 993 |
| Authentication | plain text |
- OK → the account is created.
SMTP / outgoing server
KMail uses a separate SMTP setup:
- Settings → Configure Accounts → Sending → Add.
- Select SMTP.
- Fields:
| Field | Value |
|---|---|
| Name | your choice |
| Server | mail.xaweho.de |
| Port | 587 |
| Encryption | TLS / STARTTLS |
| Authentication method | Plain |
| Username | full email address |
| Password | mailbox / app password |
-
Enable Server requires authentication.
-
OK.
Linking an identity
KMail separates identity (who you are when sending) from account (which server). In Settings → Identities → Add or Modify:
- Name: display name
- Email address: full email address
- Signature: optional
- Advanced: the associated outgoing server (the SMTP account you just created)
KOrganizer — calendar via CalDAV
- Open KOrganizer (or Kontact → Calendar tab).
- Settings → Configure → General → Calendars → Add.
- Select DAV groupware resource.
- Fields:
| Field | Value |
|---|---|
| Display name | ”Mailcow calendar” |
| Username | full email address |
| Password | mailbox / app password |
| DAV server URL | https://mail.xaweho.de/SOGo/dav/<deine-mailadresse>/ |
- Connect → KOrganizer fetches the calendar list.
KAddressBook — contacts via CardDAV
Same pattern:
- Open KAddressBook.
- Settings → Add file → DAV groupware resource.
- Same connection data as for CalDAV.
CalDAV and CardDAV share the same DAV account in KDE PIM — so you don’t have to set it up twice.
Quirks of KMail / Kontact
Akonadi cache: KDE PIM uses Akonadi as the backend database for all data — mail, calendar, contacts. Powerful, but occasionally moody. For sync problems:
akonadictl stop
akonadictl restart
For very stubborn problems you can reset the Akonadi cache completely:
rm -rf ~/.local/share/akonadi
On the next start, KMail/Akonadi rebuilds the cache — mails are fetched again from the server.
Local filters: KMail has very powerful local filters — complex rules are possible. But: local filters only run while KMail is open. For server-side filtering: Sieve in webmail.
KMail’s Sieve editor: KMail even has a built-in Sieve editor under Settings → KMail → Filters → Manage Sieve scripts. That lets you edit server-side Sieve filters straight from KMail — nice feature.
HTML mail rendering: KMail doesn’t render HTML by default (security). You can enable HTML display per mail or globally in the settings.
Known problems
Akonadi freezes on startup: common after distro updates. Fix: akonadictl restart or rebuild the whole cache.
Sync progress display: KMail can feel slow during large sync operations — Akonadi indexes the data locally, which takes time. It keeps running in the background.
HTML layout broken in some newsletters: KDE’s QtWebKit renderer isn’t on par with Chromium-based renderers. If a newsletter really doesn’t fit: view it in an external browser.
Frequently asked questions
KMail or Thunderbird on KDE? KMail integrates better with KDE Plasma (notifications, KAddressBook, KOrganizer). Thunderbird is a standalone app, but more stable in cross-distro day-to-day use. KDE fan: KMail. Cross-platform consistency: Thunderbird.
Akonadi annoys me — is there a KMail without it? Akonadi is deeply integrated into modern KMail. There is no current KMail without Akonadi. If you absolutely want to avoid Akonadi: Thunderbird or Evolution.
Encryption with OpenPGP / S/MIME? Fully supported. Settings → Identities → Cryptography — store your PGP keys or S/MIME certificates there.
Memory usage?
Akonadi caches everything locally. With large mailboxes that can grow to several GB. Cache directory: ~/.local/share/akonadi/db_data.
Backing up KMail?
Back up the ~/.local/share/akonadi/ directory and ~/.config/kmail* for the configuration. Restore on the new machine, restart Akonadi — accounts and mails are back.
Can KMail be themed? Yes, via KDE System Settings → Appearance → Global Theme. KMail follows the Plasma look. Custom KMail themes are possible too.
Kontact vs KMail — what’s the difference? Kontact is the integrating shell (tabs for mail, calendar, contacts, tasks, notes). KMail is just the mail component. You can open KMail standalone or as a tab inside Kontact.
What’s next
First login as domain admin in the Mailcow GUI
After ordering your mail server plan, you get access to the Mailcow GUI. Here's an overview of what you see as domain admin and where to find what.
Creating and editing mailboxes, setting quotas
How to create new mail addresses as domain admin, assign storage quotas, change passwords and delete mailboxes again.
Setting up aliases and a catchall
Route several mail addresses into one mailbox — info@, kontakt@, presse@ all in a single inbox. Plus a catchall for every typo address.
Creating app passwords for mail clients
With 2FA active, Outlook, Apple Mail and friends need an app password instead of your main password. How to create them, revoke them and avoid password chaos.