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
 
Latest Threads
Replies
1
Views
24
Replies
0
Views
179
Replies
1
Views
39
Replies
2
Views
81
Recommended Threads
Replies
2
Views
1,602
Replies
0
Views
2,233
Replies
8
Views
1,527

Latest postsNew threads

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