Current time: 12-24-2024, 05:33 AM 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
rbtux Offline
Moderator
*****
Moderators

Posts: 1,847
Joined: Feb 2007
Reputation: 33
Post: #2
RE: Howto delete postfix queue
try

Code:
... | tail -n +2 | ...
03-29-2010 11:37 PM
Visit this user's website Find all posts by this user Quote this message in a reply
linuxerita Offline


Posts: 3
Joined: Dec 2009
Reputation: 0
Post: #3
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 Wink
03-29-2010 11:57 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


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