DANEGO.NET
Op deze site staan een aantal hulpmiddelen voor de helpdesk van Danego BV. [JUN-2012]
linux move/rename file content based
find . -type f -exec grep -il 'searchword' {} \; -exec mv {} {}.bogus \;
/var/spool/postfix/maildrop
list messages : postqueue -p
delete messages : pfdel
get processes irc : netstat -p | grep 6667
get processes don't resolve names add -n
To delete all email in the queue from a domain run this command as root:
postqueue -p | tail -n +2 | awk 'BEGIN { RS = "" } /@example\.com/ { print $1 }' | tr -d '*!' | postsuper -d -
To delete all email in the queue From: a specific email address run this command as root:
postqueue -p | tail -n +2 | awk 'BEGIN { RS = "" } /username@example\.com/ { print $1 }' | tr -d '*!' | postsuper -d -