pymailq – Simple Postfix queue management

The pymailq package makes it easy to view and control Postfix mails queue. It provide several classes to store, view and interact with mail queue using Postfix command line tools. This module is provided for automation and monitoring.

The pymailq package defines the following attribute:

pymailq.DEBUG = False

Boolean to control activation of the debug() decorator.

The pymailq package defines the following decorators:

pymailq.debug(function)[source]

Decorator to print some call informations and timing debug on stderr.

Function’s name, passed args and kwargs are printed to stderr. Elapsed time is also print at the end of call. This decorator is based on the value of DEBUG. If True, the debug informations will be displayed.

The pymailq package provides the following submodules: