Exim - Remove frozen emails.

Check mail que:

/usr/sbin/exim -bp

Remove frozen emails:

for i in `/usr/sbin/exim -bp | grep "frozen" | cut -d' ' -f4|grep "1M"`; do rm -f /var/spool/exim/input/$i*;done

Kudos howmun, cllee

//alak

Comments

Popular posts from this blog

SAP: Segregate Different SMTP Mail Server Based on Sender Domain

SAP Client Copy Error: Errors occurred during export of container object FINB-TR-DERIVATION

Quick Dirty Script for Checking Oracle Data Gurad Gap and Emailing it