Koozali.org: home of the SME Server

Clean mail log

Offline robol

  • *
  • 9
  • +0/-0
Clean mail log
« on: May 11, 2006, 12:08:59 AM »
How can I clean-up my mail log?

Since I was attacked my maillog exploded with a lot of fake accounts and unneeded history and now I believe 'problem is solved'. So I want to clean the log so I can quickly check every now and then if the problem is really solved.

Is there anyone who can coach me through this issue.

Please send me your full commands or scripts.

Thanks :cry:

Offline brianr

  • *
  • 990
  • +2/-0
Clean mail log
« Reply #1 on: May 11, 2006, 11:11:36 AM »
the maillog will rotate itself in the fullness of time.  Perhaps you can force it to rotate - try

signal-event email-update

or

signal-event post-upgrade

perhaps someone will noce along to confirm that this will rorate the logs?
Brian j Read
(retired, for a second time, still got 2 installations though)
The instrument I am playing is my favourite Melodeon.
.........

Offline robol

  • *
  • 9
  • +0/-0
Clean mail log
« Reply #2 on: May 11, 2006, 09:06:24 PM »
Thanks for your reply but I won't work.

"command not found"

Have you noticed with what frequency of time the logs rotate?

Sounds interesting.

Offline brianr

  • *
  • 990
  • +2/-0
Clean mail log
« Reply #3 on: May 11, 2006, 10:46:45 PM »
Is this an SMEServer Release 7?
Brian j Read
(retired, for a second time, still got 2 installations though)
The instrument I am playing is my favourite Melodeon.
.........

Offline robol

  • *
  • 9
  • +0/-0
Clean mail log
« Reply #4 on: May 12, 2006, 09:01:52 AM »
Unfortunately not. I'm just configuring my new server with SME 7 rc2.
My 5.6 version is still alive.

I have planned to migrate next month, then all the logs will be cleaned up anyway.

Still wondering how I can clean up the current logs.

Let me know if you have some more ideas.

Thanks.

Offline raem

  • *
  • 3,972
  • +4/-0
Clean mail log
« Reply #5 on: May 12, 2006, 10:00:56 AM »
robol

> My 5.6 version is still alive.

....but hacked ? You should have updated 2 years ago.

This should be similar in sme 5.6, but for sme 6.0 see
/etc/cron.daily/logrotate
which runs
/usr/sbin/logrotate /etc/logrotate.conf

You could run that manually.
...