Current time: 05-30-2025, 03:37 PM Hello There, Guest! (LoginRegister)


Post Reply 
Howto delete postfix queue
Author Message
linuxerita Offline


Posts: 3
Joined: Dec 2009
Reputation: 0
Post: #1
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
Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
Howto delete postfix queue - linuxerita - 03-29-2010 11:12 PM
RE: Howto delete postfix queue - rbtux - 03-29-2010, 11:37 PM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)