The Sysadmin’s Daily Grind: Mail and Queuegraph

MAIL HELP

Article from Issue 55/2005
Author(s):

Worms, mail bombs, and users who send multiple megabyte Powerpoint files across the wire give Postfix administrators plenty of reasons to view their charges with a critical eye from time to time.

Mailgraph has been giving me useful information for a long while now [1]. It is time to turn the spotlight on this visualization tool for Postfix logfiles and to introduce the related Queuegraph project. Mailgraph [2] is a small footprint daemon that continuously reads the Postfix logfile and shovels the data it gathers into a round robin database (RRD). The front-end is a CGI script that generates a graph based on the RRD data. The program requires the ubiquitous Perl interpreter, RRDTool [3] for the database, and the File::Tail Perl module, which you can obtain from the CPAN archive. The heart of Mailgraph is a Perl script called mailgraph.pl; the daemon I referred to earlier. You can launch the daemon manually, but it makes more sense to add the init script provided by the distribution to run the daemon when you boot your machine. I use the following command to launch Mailgraph:

Buy this article as PDF

Express-Checkout as PDF
Price $2.95
(incl. VAT)

Buy Linux Magazine

SINGLE ISSUES
 
SUBSCRIPTIONS
 
TABLET & SMARTPHONE APPS
Get it on Google Play

US / Canada

Get it on Google Play

UK / Australia

Related content

  • Charly's Column

    A partly overloaded DNS server can slow down all the workstations on the network. Dnsgraph is an early warning system that gives administrators a graph of critical values. Your Dnsgraph charts will help you keep your systems serving names.

  • Brave GNU World

    This column looks into projects and current affairs in the world of free software from the perspective of the GNU Project and the FSF. In this issue, we focus on AmavisdNew, a new daemon that operates as a spam filter.

  • Charly's Column

    The Postfix Policyd plugin fights spam using techniques such as greylisting, source detection, volume measurements, blacklisting, and HELO rotation detection.

  • Charly's Column

    Corporate policies prohibit the unauthorized connection of hardware to the company network, threatening dire consequences in the case of non-compliance. Fair enough, but how do you actually go about catching somebody trying to plug an illegal laptop into your Ethernet?

  • Charly's Column

    Leafnode is a Usenet server for small sites where just a few users need access to a large number of groups. The Leafnode server is designed to recover from errors autonomously and needs very little attention.

comments powered by Disqus

Direct Download

Read full article as PDF:

Charly_Column.pdf (227.58 kB)

News

njobs Europe
What:
Where:
Country:
Njobs Netherlands Njobs Deutschland Njobs United Kingdom Njobs Italia Njobs France Njobs Espana Njobs Poland
Njobs Austria Njobs Denmark Njobs Belgium Njobs Czech Republic Njobs Mexico Njobs India Njobs Colombia