filtering exim mail queue via shell
is there any way to filter out messages (have a cron for e.g.) that removes all messages from the mail queue that contain the phrase "denied by policy"?Seems i'm getting tons of rejected emails from a mail forwarder that receives spam, however it cannot deliver the message to the rejected address cause it doesn't exist, so just sits there in queue for 7 days. all messages have the above phrase in it.
thanks!