Updated: 28 September 2026 · Applies to: cPanel & WHM 138 (eximstats in SQLite)
cPanel's eximstats keeps statistics about delivered, deferred and failed email, which WHM shows in its mail reports. Older guides emptied a MySQL database called eximstats. On current cPanel & WHM versions (such as 138) the data is stored in an SQLite file instead, /var/cpanel/eximstats_db.sqlite3, so those MySQL commands no longer apply.
Check the size
ls -lh /var/cpanel/eximstats_db.sqlite3
Keep it small
- In WHM, open Server Configuration › Tweak Settings and go to the Stats and Logs tab.
- Find the setting for how many days to keep Exim stats in the database (the default is 10 days) and lower it if needed.
- Save. cPanel removes older entries during its regular maintenance.
Find the cause of a large database
A fast-growing eximstats database usually means a lot of mail, often spam from a compromised account or script:
- Check the queue in WHM › Email › Mail Queue Manager, or run
exim -bpcfor the number of queued messages. - Look for the sender in
/var/log/exim_mainlog, for example the accounts or scripts sending the most mail. - Change passwords of affected email accounts, remove malicious scripts, and see "How to control mail spam in WHM / cPanel?".
Note: Do not delete or edit the SQLite file by hand while cPanel is running. If it has become very large or damaged, contact our support team.