Commands to use Exim on Control Panel DirectAdmin

Kal K

Member
Registered
Joined
Feb 2, 2015
Messages
37
Points
0
Exim is a good SMTP Server, but sometimes you have to perform to manage the queue in the case, users send too many emails, or spam making overload on your mail server.

Show list of email in Mail Queue:
Code:
exim -bp
Code:
Delete a mail in Queue:
Code:
exim -Mrm {message-id}
Delete all emails in Queue:
Code:
exim -bp | awk '/^ *[0-9]+[mhd]/{print "exim -Mrm " $3}' | bash
Send all emails in Queue:
Code:
/usr/sbin/exim -bp |awk '{print $3}' | xargs -n 1 -P 40 /usr/sbin/exim -v -M
Just watch list status emails are Frozen:

Code:
exim -bpr | grep frozen | wc -l
Delete all emails in the Frozen status:
Code:
exim -bpr | grep frozen | awk {'print $3'} | xargs exim -Mrm
or
Code:
exiqgrep -z -i | xargs exim -Mrm
Just delete the email with Frozen status has more than 1 day:
Code:
exiqgrep -zi -o 86400
 
Recommended Threads
Replies
19
Views
7,268
Replies
6
Views
2,329

Latest Hosting OffersNew Reviews

Sponsors

Tag Cloud

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top