Log In

Postfix monitoring

Monitor email queues, detect delivery issues instantly, and keep your email infrastructure running smoothly.

Start 30-day free trial Try now, sign up in 30 seconds

What is Postfix?

Postfix is a powerful open-source mail transfer agent (MTA) that routes and delivers email on Unix-like operating systems. It’s designed for reliability, security, and high performance. Postfix manages message queues; handles incoming and outgoing emails; and provides tools for filtering, logging, and access control—making it ideal for managing email traffic in both small and large environments.

Monitor the health and performance of your Postfix email servers

kubernetes monitor

Track and analyze key queue metrics like total messages in mailq, active, and deferred queues to ensure smooth email flow and reduce delivery delays.

website uptime icon

Gain visibility into bounce, corrupt, hold, and incoming email queues to troubleshoot issues faster and maintain the reliability of your email server.

vdi versatile alerting

Set threshold-based alerts for sudden spikes in deferred or bounce messages so you can take immediate action and avoid email delivery disruptions.

vdi dashboards and reports

Visualize all your Postfix metrics on custom dashboards, alongside data from your broader infrastructure, to stay informed and manage email server performance proactively.

Start 30-day free trial Try now, sign up in 30 seconds

Get started with Site24x7's Postfix monitoring

Performance Metrics

The following metrics are tracked by the plugin integration:

Metric name Description
mailq_count Total number of deferred messages present in Postfix
deferred_count Total number of deferred messages present in Postfix
active_count Total number of active messages present in Postfix
hold_count Total number of hold messages present in Postfix
incoming_count Total number of incoming messages present in Postfix
bounce_count Total number of corrupted messages present in Postfix
corrupt_count Total number of corrupted messages present in Postfix

Setup

  • Supported Platforms: linux icon

Prerequisites

  • Download and install the Site24x7 Linux server monitoring agent on the server where you plan to run the plugin.
  • Ensure you have Python 3 or a higher version running in your server.
  • The plugin uses the mailq command to get the count in mailq and qshape to get the counts of each queue name.

Plugin installation

  • Create a folder named postfix_mailq_count..
  • Download the postfix_mailq_count.py file from our GitHub repository and place it in the postfix_mailq_count folder.
    wget https://raw.githubusercontent.com/site24x7/plugins/master/postfix_mailq_count/postfix_mailq_count.py && sed -i "1s|^.*|#! $(which python3)|" postfix_mailq_count.py.py
  • Move the postfix_mailq_count folder to the Site24x7 server monitoring plugins directory: For Linux: /opt/site24x7/monagent/plugins/
The agent will automatically execute the plugin within five minutes and display the performance data in Site24x7.
To view the plugin monitor and associated performance charts:
  • Log in to Site24x7.
  • Navigate to Plugins and click the required monitor.
  • Create a folder named aerospike_namespace_monitoring.
  • Download the aerospike_namespace_monitoring.py and aerospike_namespace_monitoring.cfg files from our GitHub repository and place them in the aerospike_namespace_monitoring folder.
    wget https://raw.githubusercontent.com/site24x7/plugins/master/aerospike_monitoring/aerospike_namespace_monitoring/aerospike_namespace_monitoring.py && sed -i "1s|^.*|#! $(which python3)|" aerospike_namespace_monitoring.py
    wget https://raw.githubusercontent.com/site24x7/plugins/master/aerospike_monitoring/aerospike_namespace_monitoring/aerospike_namespace_monitoring.cfg
  • To check if the plugin is working, execute the command below with appropriate arguments and check for a valid JSON output with applicable metrics and their corresponding values.
    python3 aerospike_namespace_monitoring.py --hostname=<name of the host> --port=<port> --tls_enable=<true/false> --tls_name=<tls name> --cafile=<cafile path> --username=<username> --password=<password> --node_id=<node id> --namespace=<namespace>
  • Add the applicable configurations in the aerospike_namespace_monitoring.cfg file.
    [Aerospike Namespace Monitoring]
    hostname=<HOSTNAME>
    port=<PORT>
    tls_enable=false
    tls_name=None
    cafile=None
    username=<USERNAME>
    password=<PASSWORD>
    node_id=<NODE ID>
    namespace=<NAMESPACE>
    logs_enabled=False
    log_type_name=<LOG TYPE NAME>
    log_file_path=<LOG FILE PATH>
  • Follow the steps in this article to learn how to run the Python script on a Windows server. This isn't needed for Linux.
  • Move the aerospike_namespace_monitoring folder to the Site24x7 server monitoring plugin directory.

    For Linux: /opt/site24x7/monagent/plugins/

    For Windows: C:\Program Files (x86)\Site24x7\WinAgent\monitoring\plugins/

The agent will automatically execute the plugin within five minutes and display performance data in Site24x7.
To view the plugin monitor and associated performance charts:
  • Log in to Site24x7.
  • Navigate to Plugins and click the required monitor.

Plugin Contribution

Feel free to contribute to our existing plugin and come up with suggestions or feedback on our Community.

Was this document helpful?

Over 13,000 customers trust Site24x7

Brand logos of our various customers

Check out our 100+ plugin integrations or build your own

Choose from our list of more than 100 ready-to-use plugins and monitor your full stack of applications across web servers, databases, load balancers, and more.

See all plugin integrations
Start 30-day free trial Try now, sign up in 30 seconds
Request Demo
  • Request Demo
  • Get Quote
  • Get Quote