IMGate

 Home

 Introduction

 Requirements

 Get Files

 Library Compilation

 MRTG Compilation

 Postfix MRTG Files

 Editing Crontab

 Running Postfix MRTG

 Running at Startup

 Credits

 Extras

 
Postfix MRTG Files

We do not need to setup anything else on the basic MRTG. We will tell it to use the postfix configuration file: postfix.cfg.

Now we will be working with the following 3 files:

Save all the files above in the " /usr/local/bin " directory.

Make sure you mark them executable.

chmod 755 update-mailstats.pl
chmod 755 mailstats.pl
chmod 755 mrtg-mailstats


Now here is a problem I ran into. It kept telling me I need a Perl script called "Tail." So poking around I found one. Download the file below:

File-Tail-0.95.tar.gz

Extract the file

tar -xvzf File-Tail-0.95.tar.gz

Change to the new directory

cd File-Tail-0.95

Type the following:

perl Makefile.PL
make
make install


Now you need to copy the postfix.cfg file to your " /usr/sbin/ " directory

cp postfix.cfg /usr/sbin/

You may want to customize this file a little bit. Here you can name your machine and domain name. I have domain.com in there for an example.


Now create a directory for your MRTG html files. 

cd /usr/local/www/data
mkdir stats
mkdir stats/postfix

 

 

 
Copyright © 2000 - THE MATTCAVE Online - All Rights Reserved