This plugin collects the number of messages in the processing queue of MTAs. Exim, Postfix and qmail are supported.
mackerel-plugin-mailq -M <mta> [-metric-key-prefix <prefix>] [-metric-label-prefix <prefix>]
-M Name of MTA: exim, postfix, or qmail (mandatory)
-c Path to queue-printing command, such as postqueue for postfix and qmail-qstat for qmail.
Give this option if the command has non-standard name. Usually it can be guessed from the -M option
[plugin.metrics.mailq]
command = "/usr/local/bin/mackerel-plugin-mailq -M postfix"