killeximq (Kill Exim Queue)

maxihost2

Well-Known Member
PartnerNOC
Feb 28, 2005
55
0
156
Is it possible to kill exim queue through shell ?
What is the command line ?
 

maverick23

Well-Known Member
Feb 23, 2005
92
0
156
cPanel Access Level
DataCenter Provider
try /usr/sbin/exim -bp |awk '{print $3}' | xargs -n 1 -P 80 /usr/sbin/exim -v -M
this will force your queue....

or try doing :- (remove all your queue)

make a script :-

fname=`/usr/sbin/exim -bp |grep \$1|awk {'print $3'}`
for i in $fname
do
/usr/sbin/exim -Mrm $i >>/dev/null
echo $i
done

and then say sh script name '<'

this will remove all ur queue
 

maxihost2

Well-Known Member
PartnerNOC
Feb 28, 2005
55
0
156
maverick23 said:
try /usr/sbin/exim -bp |awk '{print $3}' | xargs -n 1 -P 80 /usr/sbin/exim -v -M
this will force your queue....

or try doing :- (remove all your queue)

make a script :-

fname=`/usr/sbin/exim -bp |grep \$1|awk {'print $3'}`
for i in $fname
do
/usr/sbin/exim -Mrm $i >>/dev/null
echo $i
done

and then say sh script name '<'

this will remove all ur queue
Thank you very much, worked perfectly