Recently I was presented with a problem where mail server was dying because of 100K+ mails in queue.
Due to spool overload it was necessary to identify a pattern and delete it from the /var/spool/postfix/incoming/ and later this needed to be applied for certain inboxes that were filled with spam. Continue reading “Grep pattern in files if found delete the file”