• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Clear Mail Queue using SSH

bradz

Regular Pleskian
With Plesk 10.4, can one clear the Mail Queue using SSH without installing software?
The control panel is responding very slowly.
Thanks for any help!
Sincerely,
Brad
 
Look at available options for /usr/local/psa/admin/sbin/mailqueuemng utility.
 
And how do I look at the options of the command? Typing the command puts out the queue, -h, --help, -help or something similar doesn’t work…
 
# /usr/local/psa/admin/sbin/mailqueuemng --help | grep 'delete all messages in the queue'
-D : delete all messages in the queue (local and remote)
 
~# /usr/local/psa/admin/sbin/mailqueuemng --help

/usr/local/psa/admin/sbin/mailqueuemng: unrecognized option `--help'
 
confirming: -h and --help do not work.
Also, would be great to be able to delete by sender or recipient not only by subject.
 
If you have Postfix as MTA, you can use following command:

postsuper -d ALL
 
Back
Top