title: Mailcow: Mailboxes, Aliases and Storage used by Email Domain
agents: linux
catalog: unsorted
license: GPL
distribution: check_mk
description:
 Tested with Mailcow versions 2022-07a and higher (use at your own risk with lower versions).
 Tested only with fully dockerized Mailcow instances.
 You have to provide at least the hostname/IP of your Mailcow server and an API key.
 Got to configuration settings and create a new API key (read-only access is sufficient).
 Allow API access to at least your CheckMK server IP address.
 Shows several information about a Mailcow email domain, e.g. number of configured mailboxes/aliases, used space for all messages etc.
 The check will raise WARN/CRIT if quota usage is above the configurable levels.
 The check will raise WARN/CRIT if number of configured mailboxes is above the configurable levels. 
 The check will raise WARN/CRIT if number of configured aliases is above the configurable levels. 
 The check will raise WARN/CRIT if number of total messages is above the configurable levels. 
item:
 domainname
inventory:
 one service is created for each domain