Page 8 of 8
Installing QmailMRTG
QmailMRTG is an analysis tool that enables us to evaluate our mail server.
Installing QmailMRTG:
# cd /usr/src/qmail/
# mkdir /var/www/qmailmrtg
# tar -xzf qmailmrtg7-4.2.tar.gz
# cd qmailmrtg7-4.2
Running the patch:
# patch -p0 < ../qmailmrtg7-4.2-cfg.patch
Compiling:
# make
# make install
# mkdir /etc/qmailmrtg
# cp qmail.mrtg.cfg /etc/qmailmrtg/
Now open the file /etc/qmailmrtg/qmail.mrtg.cfg and change the first line as stated bellow.
WorkDir: /var/www/qmailmrtg
Save and exit.
Adding your domain name on the graphics.
# sed -i s/FQDN/yourdomain.com/g /etc/qmailmrtg/qmail.mrtg.cfg
Creating the index.html:
# indexmaker --section=title /etc/qmailmrtg/qmail.mrtg.cfg > /var/www/qmailmrtg/index.html
Now we need to run MRTG at least 3 or 4 times in order to create all the images.
# mrtg /etc/qmailmrtg/qmail.mrtg.cfg
And add this to crontab:
echo "*/5 * * * * /usr/bin/mrtg /etc/qmailmrtg/qmail.mrtg.cfg 2>&1 > /dev/null
" >> /etc/crontab
All right! QmailMRTG is ready to go and can be accessed at: http://your_server_IP/qmailmrtg/
<< Prev - Next
Last Updated (Wednesday, 02 June 2010 03:57)



Comments
i type
#telnet localhost 110
+OK
That thing make courier and squiremail didn't work properly,how do i change it
with something like
+OK Hello there. or anything?
#!/bin/sh
yes " | head -4000 | tr '\n'
i don't undestand this code. what is it made for ?
i'am testing, and all seem to work, i'am at courier-imap stage
just this point
cat /service/clear/run
#!/bin/sh
yes " | head -4000 | tr '\n'
what this code made for ?
I've made another guide with the same subject. If you are interrested, take a look to http://qmailrocks.thibs.com
To use it with authlib with MySQL support :
1° Adapt authdaemonrc like this
authmodulelist=" authmysql" AND
2° Adapt authmysqlrc as described on http://en.gentoo-wiki.com/wiki/Courier-authlib_with_MySQL
By the way, if you use this solution, you can use standard Debian packages for Courier
You can install it like that :
aptitude install courier-base courier-authdaemon courier-authlib courier-authlib-mysql courier-imap courier-imap-ssl courier-maildrop
The other solution is to compile vpopmail (I advice version 5.4.30 available on http://garr.dl.sourceforge.net/sourceforge/vpopmail/vpopmail-5.4.30.tar.gz) with following option :
./configure --enable-logging=p --enable-auth-module=mysql --disable-passwd --enable-clear-passwd --enable-many-domains --enable-auth-logging --enable-sql-logging --enable-valias --disable-mysql-limits --enable-incdir=/usr/include/mysql --enable-libdir=/usr/lib/
Sincerely,
Andre Mosin
I get errors
please help in this regard..
2010-05-28 17:10:22: ERROR: Target[spamd][_ IN_] ' $target->[3]{$mode} ' did not eval into defined data
2010-05-28 17:10:22: ERROR: Target[spamd][_ OUT_] ' $target->[3]{$mode} ' did not eval into defined data
2010-05-28 17:10:22: ERROR: Target[eth0][_I N_] ' $target->[12]{$mode} ' did not eval into defined data
2010-05-28 17:10:22: ERROR: Target[eth0][_O UT_] ' $target->[12]{$mode} ' did not eval into defined data
2010-05-28 17:10:22: ERROR: Target[eth0p][_ IN_] ' $target->[13]{$mode} ' did not eval into defined data
2010-05-28 17:10:22: ERROR: Target[eth0p][_ OUT_] ' $target->[13]{$mode} ' did not eval into defined data
RSS feed for comments to this post.