i have postfix queue full, as u can ses:
i have an handy script of one line that i use in my postfix servers to clean the queue, here it is:Code:$ mailq [snipped] -- 7290 Kbytes in 2551 Requests.
i need superuser privilges to run it and i need to be su as zimbra user to have his envCode:cat clean_queue mailq | tail -n +2 | grep -v '^ *(' | awk 'BEGIN { RS = "" } { if ($7 == "'$1'" ) print $1 } ' | tr -d '*!'| postsuper -d -
thsi is what i get:
how can i recode the small script to overcome thsi issue?Code:su - zimbra cd log/my_script ./clean_queue root@this.domain.it postsuper: fatal: use of this command is reserved for the superuser
tia
-m


LinkBack URL
About LinkBacks


