HostOnNet Blog

eximrm – delete mails in exim queue

Looking for Linux Server Admin or WordPress Expert? We can help.

Create file /usr/local/bin/eximrm

/usr/local/bin/eximrm

with following content

#!/bin/bash

exim -bpu | awk '{print $3}' | xargs exim -Mrm

chmod 755 the file

chmod 755 /usr/local/bin/eximrm

Now running the command “eximrm” will delete mails in Exim mail queue.

[root@server12 ~]# eximrm
Message 1RORpm-001oWx-SL has been removed
Message 1RORrq-001paP-Ug has been removed
Message 1RORut-001rEc-LY has been removed
Message 1RORvN-001rdN-Gs has been removed
Message 1RORvT-001rem-R9 has been removed
Message 1RORvZ-001rgb-Dc has been removed
Message 1RORvi-001rih-M4 has been removed
Message 1RORw8-001rpr-Lp has been removed
Message 1ROS0o-001uNy-Jl has been removed
Message 1ROS3l-001w1j-Dt has been removed
Message 1ROS3u-001w4P-NV has been removed
Message 1ROS5r-001x5m-4Q has been removed
Message 1ROS67-001x8O-Q6 has been removed
Message 1ROS6T-001xBu-N8 has been removed
Message 1ROS9Q-001zAP-VW has been removed
Message 1ROSA7-001zd3-1Y has been removed
Message 1ROSFa-0022T3-Fl has been removed
Message 1ROSFb-0022TM-Ch has been removed
Message 1ROSJz-0024wf-W1 has been removed
Message 1ROSRU-0029FD-L2 has been removed
Message 1ROSRc-0029IB-JX has been removed
Message 1ROSS2-0029PJ-BC has been removed
Message 1ROSSA-0029Rk-Un has been removed
Message 1ROSTg-002APg-ER has been removed
Message 1ROSU9-002Ap8-Oe has been removed
Message 1ROSVH-002BRX-6x has been removed
Message 1ROSVj-002BZP-2E has been removed
Message 1ROSX8-002CTN-DZ has been removed
[root@server12 ~]# cat  /usr/local/bin/eximrm
#!/bin/bash

exim -bpu | awk '{print $3}' | xargs exim -Mrm

[root@server12 ~]#

Posted in Cpanel Server

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.