Exim: Removing frozen mails
So i want to do some frozen mail cleanups in exim. referred to my previous post here but then, found out its not working. Improvised, and came out with this: for i in `/usr/sbin/exim -bp | grep frozen | awk '{print $3}'`; do rm /var/spool/exim/input/`ayam=$i && echo ${ayam:5:1}`/$i*; done; Nope. That's not the solution just yet. Why? Because sifu Kenji gave us these: Useful exim command Check mail queue /usr/sbin/exim -bp check number of mail queue /usr/sbin/exim -bpc flush mail queue /usr/sbin/exim -qff -d -C /etc/exim.conf Check frozen mail /usr/sbin/exim -bpr | grep frozen | wc -l Remove frozen mail /usr/sbin/exim -bpr | grep frozen | awk {‘print $3′} | xargs /usr/sbin/exim -Mrm Go check out his blog : blog.keanchih.co.cc kudos kclee //alak