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 = "" } / falko@example\.com$/ { print $1 }' | tr -d '*!' | postsuper -d -
    then.
     
  3. lano

    lano Member

    I didn't get error, but mail queue also wasn't deleted.
    postqueue -p shows, that the senders address is www-data@myhost.example.com (3 queues).
    Any other idea? :)

    David
     
  4. falko

    falko Super Moderator ISPConfig Developer

    Did you use the following command?

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

    lano Member

    That worked.
    Thanks again, Falko.

    David
     

Share This Page