Skip to content

Simplify your life : Cleanup your Postfix mailqueue by sender or content [regex filtering]

Notifications You must be signed in to change notification settings

tisc0/cleanPostfixQ

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Tool of emergency to clean Postfix queues by Sender | email content

 ~ Usage : cleanPostfixQ [OPTIONS] [REGEX]

Options:
--------
# Options
-dbs |--deletebysender : Delete queued email when matching sender regex
-dbc |--delbycontent : Delete queued email when matching content regex
-y : Force 'yes' answer before deleting -  can by added on option -dbs while used in crontab or script

NOTES : 
- The option -dbc, if used with no regex, will use a default pattern included in the program.
- -dbc option include by default the deletion of MAILER-DAEMON email
- [REGEX] has the format interpreted by grep -E ''

Example of uses :
cleanPostfixQ -dbs -y MAILER-DAEMON
cleanPostfixQ -dbs 'MAILER-DAEMON|[email protected]|loveyou.cz'
cleanPostfixQ -dbc 
cleanPostfixQ -dbc 'sex|easy money|offshore|nice student'


About

Simplify your life : Cleanup your Postfix mailqueue by sender or content [regex filtering]

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published