title: Mailcow: Usage per Mailbox, Quota and Number of Messages
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 mailbox, e.g. number of messages and quota.
 The check will raise WARN/CRIT if quota usage is above the configurable levels.
 The check will raise WARN/CRIT if number of messages is above the configurable levels. 
item:
 mailboxname
inventory:
 one service is created for each mailbox