Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Delete specific messages from postfix

Status
Not open for further replies.
Nov 24, 2004
159
GB
Hi

I want delete only messages from the mailq that are in the format :

Firstname_lastname@domain.com

all the others are fine.
 
Unfortunately, I don't know of any easy way to do what you are after.

This will likely take a multistep process. First, you would need to list the queue to identify the messages. Use a tool of choice (e.g. SED, AWK, GREP) to pattern match the ones in the right format and then extract the Postfix ID (AWK) and create a list. Use the list to call postsuper on to delete the messages from the queue.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top