Koozali.org: home of the SME Server
Obsolete Releases => SME Server 7.x => Topic started by: robol 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:
-
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?
-
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.
-
Is this an SMEServer Release 7?
-
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.
-
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.