Search

Blogroll

Meta:

Daily sendmail stats on Linux server

August 20th, 2007 by vicky

I always wanted to see mail stats on my server, who receives and sends the most mails, what are the busiest hours, etc.. to better track mail problems, catch spammers and to satisfy my admin’s ego ;-) . I found this little script that goes through senmail’s log and produces output. In my case I will send the output to root via email.

Here are the features that I receive from this little script:

SendmailStats reports:

  • Time/date of log beginning and end
  • Total bytes transferred and total MB transferred
  • Total bytes in and total MB in (locally delivered)
  • Number of messages sent out
  • Number of messages coming in
  • Messages per hour graph
  • Top 20 remote sending hosts
  • Total number of sending hosts and number of their attempted messages
  • Top 20 destination hosts
  • Total number of destination hosts and number of messages sent to them
  • Top 20 local deliveries
  • Total number of local accounts that received mail
  • Total number of messages delivered locally
  • Top 20 senders
  • Total number of senders and total number of messages sent Read the rest of this entry »

Posted in General linux admin | Comments Off

Remove FTP Login Delay With Proftpd

August 16th, 2007 by vicky

I have been noticing a very annoying delay when trying to log in via FTP on servers where I use proftpd. Everything works, but when I try to connect, 5 - 10 seconds pass by before I’m prompted for my login credentials. After long hour of searching on the internet I found a solution.

 All you need to do is edit the config file which should be /etc/proftpd/proftpd.conf  and place this line within <global> section:

 IdentLookups Off

 That should remove the delay and your ftp connection will be initialized very quickly.

Posted in General linux admin | 2 Comments »

How to restart ensim from shell

August 8th, 2007 by admin

During the time Ensim evolved it used to call its servrice either ‘webppliance’ or ‘epld’ (newer). So the command you need to run as root via shell to restart Ensim is:

If you use version older than 10.x.x

 # service webppliance restart  

If you use version EnsimX for Linux 10.x and higher

# service epld restart

I hope this helps :-)

Posted in Ensim | No Comments »

Import and Export MySQL database

August 6th, 2007 by admin

This tutorial section deals with mysqldump which is a tool to import and export MySQL databases.

It can be used to back up a database or to move database information from one server to another.

Read the rest of this entry »

Posted in Mysql | No Comments »