List emails in queueexim -bpc
Forcefully send the emails and if it cant delete that.exim -bp
Delete full emails in queueexim -qff -v
exim -bp | awk '/^ *[0-9]+[mhd]/{print "exim -Mrm " $3}' | sh
Delete all mails more than 2 days old
Number of frozen emails :exim -bp | awk '/2d|3d|4d|5d|6d|7d|8d|9d|10d|frozen|<>/ {if ($2 ~ /^1F/) prin t $2; else print $3}' |xargs exim -Mrm
Delete only frozenexim -bpr | grep frozen | wc –l
Delete emails send FROM a particular email.exim -bp | awk '$6~"frozen" {print $3}' | xargs exim -Mrm
Delete emails send to a particular email addressexim -bpr|grep root@| awk '{print $3}'|xargs exim -Mrm
Command to remove emails that are more than 20 hours old.exiqgrep -ir [email protected] | xargs exim -Mrm
To print message ID you can use the below command :exiqgrep -o 70000 | grep "<" | awk '{print $3}' | xargs exim -Mrm
Change the value "5000" above in such a way that it yields the result you need.exiqgrep -o 5000 | grep "<" | awk '{print $3}'
Get details of scripts that are used to send out spam emails :
grep "cwd=" /var/log/exim_mainlog|awk '{for(i=1;i<=10;i++){print $i}}'|sort|uniq -c|grep cwd|sort -n