HomeMail Server Monitoring
Mail Server Monitoring

Mail Server (also known as a mail transfer agent or MTA, a mail transport agent, a mail router or an Internet mailer) is an application that receives incoming e-mail from local users (people within the same domain) and remote senders and forwards outgoing e-mail for delivery. A computer dedicated to running such applications is also called a mail server.

Metrics collected by Mail Server Integration
Postfix
Exim
Sendmail
Qmail
Zimbra
Postfix :

Postfix is a free and open-source mail transfer agent (MTA) that routes and delivers electronic mail, intended as an alternative to Sendmail MTA. Following Queue lengths are observed by Nodelizer:

Metric
– Description
Active Queue Length
– The number of mails in Active Queue.
Incoming Queue Length
– The number of mails in Incoming Queue
Deferred Queue Length
– The number of mails in Deferred Queue.
MailDrop Queue Length
– The number of mails in MailDrop Queue.
Exim :

Exim is a mail transfer agent (MTA) used in Unix like operating systems.

Metric
– Description
Queue Length
– The number of mails in Exim mail queue

By domain – The number of messages, the total kb/mb of mail queued and the oldest and newest messages queued.

Sendmail :

Sendmail is a general purpose internetwork email routing facility that supports many kinds of mail-transfer and delivery methods, including the SMTP used for email transport over the Internet.

Metric
– Description
Queue Length
– The number of messages in sendmail queue.
Qmail :

qmail is a secure, reliable, efficient, simple message transfer agent. It is designed for typical Internet-connected UNIX hosts.

Metric
– Description
Queue Length
– The number of messages in qmail queue.
Zimbra :

The Zimbra MTA (Mail Transfer Agent) receives mail via SMTP and routes each message, using Local Mail Transfer Protocol (LMTP), to the appropriate Zimbra mailbox server. Following Queue lengths are observed by Nodelizer:

Metric
– Description
Active Queue Length
– The active message queue holds messages that are ready to be sent.
Incoming Queue Length
– The incoming message queue holds the new mail that has been received.
Deferred Queue Length
– Message that cannot be delivered for some reason are placed in the deferred queue.
Hold Queue Length
– The hold message queue keeps mail that could not be processed.
Corrupt Queue Length
– The corrupt queue stores damaged unreadable messages.
Configuring

Note : Currently supported mail transfer agents – postfix, sendmail, exim, qmail, zimbra.

  1. Edit config.cfg file.

    • Uncomment the lines containing Mail Server config variables(remove # symbol) :

      • mail_server
      • mail_port
      • mail_agent

        ( mail_agent options – postfix, sendmail, exim, qmail, zimbra )

    • Change the default value(s) as required.
  2. Restart rptmonitor :

    • For deb/rpm package supported Linux distros :

      sudo /etc/init.d/rptmonitor restart
    • For openSUSE(11.4+) with systemd :

      sudo systemctl restart rptmonitor.service
    • For other Linux distro, FreeBSD8+, Mac OS X+ :

      sudo python /usr/local/bin/rptmonitor/monitor.py restart