Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

tattwam

macrumors newbie
Original poster
May 13, 2016
1
0
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.
 
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.

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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.