How do I clear the exim sendmail statistics on CPanel / WHM ?

If the size of your eximstats database is getting large ( you can check the DB space usage using du )
  • du -s -h /var/lib/mysql/eximstats
then you can clean the database entries. You may also wish to blank the current exim log files at /var/log/exim*

If you want to clean the eximstats MySQL database, from an SSH prompt type...

  • mysql eximstats
Then from with the MySQL application type...
  • delete from sends;
  • delete from smtp;

If you want to remove the existing log entries, from an SSH prompt type...

  • cd /var/log
  • rm -fr exim*.1
  • rm -fr exim*.2
  • rm -fr exim*.3
  • rm -fr exim*.4
  • rm -fr exim_mainlog ; touch exim_mainlog ; chown mailnull.mail exim_mainlog
  • rm -fr exim_paniclog ; touch exim_paniclog ; chown mailnull.mail exim_paniclog
  • rm -fr exim_rejectlog ; touch exim_rejectlog ; chown mailnull.mail exim_rejectlog
Then restart the exim service ...
  • service exim restart
  • 6 Users Found This Useful
Was this answer helpful?

Related Articles

How do I stop Cpanel reporting /usr/bin/crontab permissions are wrong. Please set to 4755.

If you get this message in CPanel when adding/ediiting/viewing the cron jobs ......

How do I force Statistics (Webalizer and AWstats) to run on Plesk Servers ?

Updating Webalizer and AWStats on Linux Plesk Servers from SSH The plesk control panel is...

How much is HELM ? What Helm licences do you offer ?

Web Host Automation (HELM Authors) sold the control panel rights and code some years ago to...

How much is CPanel ? What CPanel licences do you offer ?

We work with a CPANEL authorised NOC partner, able to offer you discounted CPanel licences for...

How much is Plesk ? What Plesk licences do you offer ?

We are a PLESK authorised sales partner, able to offer you discounted Plesk licences for both...

Powered by WHMCompleteSolution