Linux Sandbox

Trunet's Place - Portfolio
Jump to: navigation, search

How to extract an RPM package

rpm2cpio file.rpm | cpio -idmv

Clean zimbra postfix queue from determined user

/opt/zimbra/postfix/sbin/mailq | tail -n +2 | grep -v '^ *(' | awk 'BEGIN { RS = "" }
# $7=sender, $8=recipient1, $9=recipient2
{ if ($7 == "email@domain.com" )
print $1 }
' | tr -d '*!' | /opt/zimbra/postfix/sbin/postsuper -d -

SRPMS Links