---
title: 'Mailcow application stack'
url: 'https://info.srv.kowal.co/docs/mail/mailcow'
markdown: 'https://info.srv.kowal.co/docs/mail/mailcow.md'
lang: en
date: '2026-11-30'
description: 'Follow delivery from the MX record to the IMAP mailbox.'
---

# Mailcow application stack

## Services

CWPpro manages the host. On an MX server the mail applications run in Mailcow containers managed by Docker Compose. In Mailcow the administrator assigns domains, creates mailboxes and sets alias destinations. Clients read mail over IMAP or through SOGo webmail.

## Message path

1. The sending server resolves the recipient domain’s MX and connects to Postfix. Check the SMTP response and queue ID in its log.
2. Rspamd evaluates the message. After SMTP acceptance, check the filtering result and final address after alias expansion.
3. Dovecot handles mailbox delivery and IMAP access. If webmail shows the message, check the folder and synchronization in the client.

## Sending and recovery

Check the actual sending address’s PTR and resolve the returned hostname via A or AAAA back to that address. SPF identifies authorized sending sources, DKIM verifies a signature and DMARC specifies policy for the domain visible in From.

Mail recovery requires messages, a consistent account and alias database, configuration, encryption and DKIM keys, and the queue. After a test restore, verify login, read an older message and deliver mail through an alias.

---

## Navigation

- Parent: [Mail servers](https://info.srv.kowal.co/docs/mail.md)
- Next: [Domains, mailboxes and aliases](https://info.srv.kowal.co/docs/mail/domains-mailboxes.md)
