Options
- qmailmrtg7
This
is a great tool for graphing your mail server's activity.
cd
/download/
mkdir /var/www/html/qmailmrtg tar -xzf tar/qmailmrtg7-4.2.tar.gz cd qmailmrtg7-4.2 patch -p0 < ../tar/qmailmrtg7-4.2-cfg.patch make make install
#
Edit qmail.mrtg.cfg and change all instances of FQDN to 'www.example.com'
and WorkDir to /var/www/html/qmailmrtg
vi qmail.mrtg.cfg :%s/\/var\/www\/html\/qmailmrtg/\/var\/www\/html\/qmailmrtg/ :%s/FQDN/www.example.com/
cp
qmail.mrtg.cfg /etc/
indexmaker --section=title /etc/qmail.mrtg.cfg > /var/www/html/qmailmrtg/index.html # now run mrtg 3 times to get rid of initial cron errors env LANG=C mrtg /etc/qmail.mrtg.cfg env LANG=C mrtg /etc/qmail.mrtg.cfg env LANG=C mrtg /etc/qmail.mrtg.cfg
o
Add the
following line to your crontab
0-55/5 * * * * env LANG=C /usr/bin/mrtg /etc/qmail.mrtg.cfg > /dev/null
Point
your browser to the following address;
http://10.1.1.161//qmailmrtg/
|
Thursday, September 19, 2013
Options - qmailmrtg7
Tuesday, September 17, 2013
Disable root ssh access
Disable root
ssh
access by editing#########################
vim /etc/ssh/sshd_config
to contain:PermitRootLogin no
Saturday, September 7, 2013
Tcpserver: fatal: unable to bind: address already used
@40000000522b62012f1e4374 tcpserver: fatal: unable to bind: address already used
@40000000522b62023056ea84 tcpserver: fatal: unable to bind: address already used
@40000000522b620331e86bac tcpserver: fatal: unable to bind: address already used
@40000000522b620432e4f034 tcpserver: fatal: unable to bind: address already used
@40000000522b62053451073c tcpserver: fatal: unable to bind: address already used
@40000000522b620635b05ca4 tcpserver: fatal: unable to bind: address already used
@40000000522b6207374953f4 tcpserver: fatal: unable to bind: address already used
@40000000522b620838caa0ac tcpserver: fatal: unable to bind: address already used
@40000000522b62093a3bb50c tcpserver: fatal: unable to bind: address already used
qmailctl stop
nmap localhost
show this, should be port 25 is running, then stop it.
and start
qmailctl start
tail -f /var/log/qmail/qmail-smtpd/current
Subscribe to:
Posts (Atom)