Reaching out to others! Free & Open Source Software, Kannada, L10n, L18n Data Science, Cloud Computing & more…

Quick Hint: Clear emails from exim queue using a pattern

General | 0 comments

You might be knowing this solutions already. Here it is just for the record.

To clear Mail-Daemon failure emails from queue on an server, you can use this command.

grep -lr ‘Mailer-Daemon’ /var/spool/exim/input/ | sed -e ‘s/^.*\/\([a-zA-Z0-9-]*\)-[DH]$/\1/g’ | xargs exim -Mrm

Tags:

Related Articles

Related