[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re: How do i.....



According to VaibhaV Sharma:
> 
> hello,
> we have a Linux server as our gateway to the Internet using a dialup
> connection. We fetchmils using fetchmail and distribute them to diff
> accounts according to the pop3 accounts. And the machine acts as a mail
> server too....relaying mails to our VSNL server.
> 
> Everytime a mail client checks mails the system logs are filled with lots of
> messages. how do I prevent certain programs to make entries in the system
> logs....
> 
> e.g. popper, named, sendmail etc....
> 
> because in 2-3 days the system logs become so hefty that there is a lot of
> useless space occupied by the files in /var/log. esp. the messages.* files
> 
> May I be enlightened by some suggestions...
> 
> VaibhaV Sharma
> webmaster@xxxxxxxxx
> 
Hello,
Actually it is the messages file that is very useful when there is a problem
you can locate the problem immediately when you look at the messages file.
So what you can do is write a small script and put it in cron to run say 
every half an hour , it will check the size of the messages file and archive 
it when it exceeds 2MB. This way you can keep the last three and the archives 
can be zipped so they occupy less space and as the messages file is always 
less then 2MB you can anytime open it with vi if any problems occur.
nps 

- -- 
~~*~~*~~*~~*~~~~*~~*~~*~~*~~~~*~~*~~*~~*~~~~*~~*~~*~~*~~~~*~~*~~*~~*~~~~*~~*~~*
                           Mrs N P Salaria
                         System Administrator
                           TERA INFORMATICS
                          Tel: (022)-8290251
                          Res: (022)-5770472
                         Email: nps@xxxxxxxxxxx
~~*~~*~~*~~*~~~~*~~*~~*~~*~~~~*~~*~~*~~*~~~~*~~*~~*~~*~~~~*~~*~~*~~*~~~~*~~*~~*


- --------------------------------------------------------------------
For more information on Linux in India visit http://www.linux-india.org/
Linux India is NOT a forum for Microsoft/India/Pakistan/US/UK bashing.
Flame baits will not be tolerated.  If you can appreciate satire read
http://www.templetons.com/brad/emily.html

------------------------------