Deprecated: Hook custom_css_loaded is deprecated since version jetpack-13.5! Use WordPress Custom CSS instead. Jetpack no longer supports Custom CSS. Read the WordPress.org documentation to learn how to apply custom styles to your site: https://wordpress.org/documentation/article/styles-overview/#applying-custom-css in /srv/www/srvfail.com/public_html/wp-includes/functions.php on line 6078 Exim Archives ⋆ SysAdminStuff
Eximstats, on WHM/cPanel servers, is used to maintain statistics and information about email messages processed by Exim mail service.
If the data in it is not cleared often enough it can grow, and cause issues with disk space, or MySQL resource usage, as the size of the database can cause higher memory and disk consumption.
Disabling eximstats
If you do not have any need for Exim statistics, which are used for Mail Delivery Reports on Home »Email »Mail Delivery Reports, gathering exim statistics can be disabled from WHM or command line.
In WHM it can be disabled by going to Home »Service Configuration »Service Manager, and unchecking the service, and then clicking on the Save button on the bottom.
This will stop the database from being populated with new data.
From command line, you can disable the database from being populated by running a following command: /usr/local/cpanel/bin/tailwatchd --disable=Cpanel::TailWatch::Eximstats
Lowering Eximstats retention time
Database is periodically cleaned, and by default Exim stats are retained in database for 10 days, which can be changed in WHM by going to Home »Server Configuration »Tweak Settings and changing the “The interval, in days, to retain Exim stats in the database” setting on the “Stats and Logs” tab.
Setting can also be changed by altering the “exim_retention_days” value in “/var/cpanel/cpanel.config” file.
Empty eximstats database
Database can be cleared either by deleting from its four tables, defers, failures, sends and smtp, or by dropping the database completely, and creating a fresh one with empty tables from “/usr/local/cpanel/etc/eximstats_db.sql” file.
To delete all of the data from the tables following command can be used:
mysql -e "use eximstats;delete from defers;delete from failures;delete from sends;delete from smtp;delete from smtp;"
To drop the database and recreate it again, following commands can be used:
mysqladmin drop eximstats
mysqladmin create eximstats
mysql eximstats < /usr/local/cpanel/etc/eximstats_db.sql
If you make an SMTP test on http://mxtoolbox.com you might be getting a following error shown in the test results “Reverse DNS does not match SMTP Banner”.
This error is showing because your SMTP greeting message is not matching the PTR records for the IP of the SMTP server used in test.
Following files need to be used and configured properly, for SMTP banner to match reverse DNS records.
Go to WHM to Home »Service Configuration »Exim Configuration Manager and in Basic Editor on Domains and IPs tab set following settings:
Send mail from account’s dedicated IP address: OFF Reference /etc/mailhelo for outgoing SMTP HELO: ON Reference /etc/mailips for outgoing SMTP connections: ON
Configure necessary values in configuration files
Edit or create /etc/mail_reverse_dnsfile and set the following in it for needed IPs.
x.x.x.x: rdns of the IP x.x.x.x
y.y.y.y: rdns of IP y.y.y.y
Edit or create /etc/mailhelo file and set following in it for the domains that you want to setup SMTP banner for.
example.com: reverse dns of the IP used for example.com domain
*: default SMTP HELO for unconfigured domains
Edit or create /etc/mailips file and set following in it:
example.com: x.x.x.x #x.x.x.x is the IP used for outgoing mail for domain example.com
*: y.y.y.y #y.y.y.y is the default IP that will be used for unconfigured domains
Configure exim.conf to use correct SMTP Banner
Following values need to be configured in exim.conf for SMTP Banner to be set to rDNS values set in /etc/mail_reverse_dns.
smtp_banner will probably look like this on your cPanel server.
"${primary_hostname} ESMTP Exim ${version_number} \#${compile_number} ${tod_full} \n We do not authorize the use of this system to transport unsolicited, \n and/or bulk e-mail."
Configure values in exim.conf over shell
Locate the line smtp_banner and change its value so it looks like following: