aboutsummaryrefslogtreecommitdiff
path: root/content/blog/miscellaneous/purge-postfix-queue-based-content.md
diff options
context:
space:
mode:
Diffstat (limited to 'content/blog/miscellaneous/purge-postfix-queue-based-content.md')
-rw-r--r--content/blog/miscellaneous/purge-postfix-queue-based-content.md13
1 files changed, 13 insertions, 0 deletions
diff --git a/content/blog/miscellaneous/purge-postfix-queue-based-content.md b/content/blog/miscellaneous/purge-postfix-queue-based-content.md
new file mode 100644
index 0000000..2db52ac
--- /dev/null
+++ b/content/blog/miscellaneous/purge-postfix-queue-based-content.md
@@ -0,0 +1,13 @@
+---
+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 >}}
+