www/content/blog/miscellaneous/purge-postfix-queue-based-content.md

14 lines
356 B
Markdown
Raw Normal View History

2020-04-28 17:29:52 +02:00
---
title: "Purge postfix queue based on email contents"
linkTitle: "Purge postfix queue based on email contents"
date: 2009-04-27
description: >
Purge postfix queue based on email contents
---
{{< highlight sh >}}
find /var/spool/postfix/deferred/ -type f -exec grep -li 'XXX' '{}' \; | xargs -n1 basename | xargs -n1 postsuper -d
{{< /highlight >}}