exim -bpc
How to list emails in queue
   exim -bp
Forcefully send the emails and if it can`t, delete that.
   exim -qff -v
Delete full emails in queue.
   exim -bp | awk '/^ *[0-9]+[mhd]/{print "exim -Mrm " $3}' | sh
         or
When number of emails are too large
   Stop exim
   rm -rf /var/spool/exim/input
   Start exim
 Delete all mails more than 2 days old
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 emails send FROM a particular email.
exim -bpr|grep root@| awk '{print $3}'|xargs exim -Mrm
Delete emails send to a particular email address
exiqgrep -ir email@domain.com | xargs exim -Mrm
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
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 emails send FROM a particular email.
exim -bpr|grep root@| awk '{print $3}'|xargs exim -Mrm
Delete emails send to a particular email address
exiqgrep -ir email@domain.com | xargs exim -Mrm
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