Help! Need to delete outgoing mail queue

Discussion in 'Mac OS X Server, Xserve, and Networking' started by tattwam, May 13, 2016.

  1. tattwam macrumors newbie

    Joined:
    May 13, 2016
    #1
    Hello All
    This is my first post in this forum.

    I am having issue with OS X Server 5.1
    There are Thousands of mails in mail queue due to some spam agent.
    I have got one command line from Apple discussions :

    sudo /Applications/Server.app/Contents/ServerRoot/usr/sbin//postsuper -d ALL

    But I am not sure it will work.
    Need urgent help.
     
  2. HenryAZ macrumors 6502

    HenryAZ

    Joined:
    Jan 9, 2010
    Location:
    South Congress AZ
    #2
    postsuper will work fine, but you don't need that long command line. postsuper is in /usr/sbin, which is in your PATH, so simply:
    sudo postsuper -d ALL (ALL has to be uppercase).

    If you want to try it first on a single message, run mailq, which will scroll all of those queued messages across the screen. Copy the Queue ID of the last message off the screen, and enter:
    sudo postsuper -d queue_id
    then run mailq again, and that last message should be gone.

    Before deleting the entire queue, make sure you don't have any legitimate pending mail.
     

Share This Page