Howto delete postfix queue
|
Author |
Message |
linuxerita
Posts: 3
Joined: Dec 2009
Reputation: 0
|
Howto delete postfix queue
Hi!
(beforehand, sorry by my bad english)
I have installed ispCP 1.0.3 OMEGA in a Debian SO.
My problem is that i have now on my server 6000 mails on the queue, and i need to delete them, but i want to delete only the "from=specific@mail.com".
Reading the "postsuper" man i find this script to use:
mailq | tail +2 | grep -v '^ *(' | awk 'BEGIN { RS = "" }
# $7=sender, $8=recipient1, $9=recipient2
{ if ($7 == "specific@mail.com")
print $1 }
' | tr -d '*!' | postsuper -d -
But, when i run this script the server responds:
"tail: cannot open `+2' for reading: No such file or directory"
Can somebody please helpme with this scripts to work?
Thanks a lot!!
|
|
03-29-2010 11:12 PM |
|
linuxerita
Posts: 3
Joined: Dec 2009
Reputation: 0
|
RE: Howto delete postfix queue
(03-29-2010 11:37 PM)rbtux Wrote: try
Code:
... | tail -n +2 | ...
Thank you!!!!
It works!!!
Thank you very very much
|
|
03-29-2010 11:57 PM |
|
User(s) browsing this thread: 1 Guest(s)