Deleting Mails From From Mail Queue

Discussion in 'Server Operation' started by lano, Jan 19, 2008.

  1. lano

    lano Member

    I'm trying to delete mail by instructions posted here: here
    I get message:
    OS is Etch
     
  2. falko

    falko Super Moderator ISPConfig Developer

    Try
    Code:
    mailq | tail [B][COLOR="Red"]-n +2[/COLOR][/B] | awk 'BEGIN { RS = "" } / [email protected]\.com$/ { print $1 }' | tr -d '*!' | postsuper -d -
    then.
     
  3. lano

    lano Member

  4. falko

    falko Super Moderator ISPConfig Developer

    Did you use the following command?

    Code:
    mailq | tail -n +2 | awk 'BEGIN { RS = "" } / [email protected]\.example\.com$/ { print $1 }' | tr -d '*!' | postsuper -d -
     
  5. lano

    lano Member

    That worked.
    Thanks again, Falko.

    David
     

Share This Page