Zionetrix::Git
Repositories
Help
Report an Issue
postfix_scripts
Code
Commits
Branches
Tags
Search
Tree:
774e0ce
Branches
Tags
master
postfix_scripts
scripts
drop_mail_from
Initial commit
Benjamin Renard
commited
774e0ce
at 2016-01-19 19:51:30
drop_mail_from
Blame
History
Raw
#!/bin/bash [ ! -n "$1" ] && echo "Usage : $0 mail" && exit 1 for mail in $( mailq|egrep '^[A-Z0-9]'|grep "$1"|awk '{print $1}'|sed 's/^\([0-9A-Z]*\).*$/\1/' ) do /usr/sbin/postsuper -d $mail done