To remove a message from the queue, enter
exim -Mrm {message-id}
To remove all messages from the queue, enter:
exim -bp | awk '/^ *[0-9]+[mhd]/{print "exim -Mrm " $3}' | bash
To remove a message from the queue, enter
exim -Mrm {message-id}
To remove all messages from the queue, enter:
exim -bp | awk '/^ *[0-9]+[mhd]/{print "exim -Mrm " $3}' | bash
First, ssh into your server and add the domain name to a new file called /etc/blockeddomains
echo “domain.com” > /etc/blockeddomains
Next, set the right ownership/permissions:
chown root.mail /etc/blockeddomains && chmod 640 /etc/blockeddomains
ext, load up a web browser, log into WHM and go to:
WHM –> Service Configuration –> EXIM Configuration Manager –> Advanced Editor
Scroll down within that box about 1/4 of the way, and you’ll see something similar to:
Click on “Add additional configuration setting” and fill it out :
domainlist blocked_domains = lsearch;/etc/blockeddomains
Next, search for the string “ROUTERSTART”:
Add the following into it:
reject_domains:
driver = redirect
domains = +blocked_domains
allow_fail
data = :fail: Connection rejected: SPAM source $domain is manually blacklisted.
Run
crontab -e
Add this line
0 */5 * * * /usr/sbin/exim -bpu |/bin/awk ‘{print $3}’|/usr/bin/xargs /usr/sbin/exim -Mrm
it will clear it every 5 hours
Login to mysql
mysql
mysql> use eximstats
mysql> delete from sends;
mysql> delete from smtp;
mysql> delete from failures;
mysql> delete from defers;
You can also drop and recreate it
mysqladmin drop eximstats mysqladmin create eximstats mysql eximstats < /usr/local/cpanel/etc/eximstats_db.sql
– For cPanel & WHM version 11.38 and earlier, you can generate an installation file with the Install File Generator form.
– For cPanel & WHM version 11.40 and later, you can generate an installation file with the cPanel Plugin Generator interface in WHM.
/usr/local/cpanel/bin/
directory./usr/local/cpanel/bin/register_cpanelplugin FULL_PATH_TO_INSTALLATION_FILE
/usr/local/cpanel/bin/unregister_cpanelplugin FULL_PATH_TO_INSTALLATION_FILE