Some more articles reformatting
This commit is contained in:
parent
af1088fca1
commit
ed8e2b9e9e
31 changed files with 174 additions and 102 deletions
|
@ -1,13 +1,18 @@
|
|||
---
|
||||
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
|
||||
description: How to selectively purge a postfix queue based on email contents
|
||||
tags:
|
||||
- toolbox
|
||||
---
|
||||
|
||||
## The problem
|
||||
|
||||
Sometimes a lot of spam can acacumulate in a postfix queue.
|
||||
|
||||
## The solution
|
||||
|
||||
Here is a command that can search through queued emails for a certain character string (here XXX as an example) and delete the ones that contain it :
|
||||
{{< highlight sh >}}
|
||||
find /var/spool/postfix/deferred/ -type f -exec grep -li 'XXX' '{}' \; | xargs -n1 basename | xargs -n1 postsuper -d
|
||||
{{< /highlight >}}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue