Some one hack my email account of my dedicated server and send unauthorized mail so please help me and suggest me
how do I remove all the messages from the mail queue.
Which panel are you using for maintain you server?
If it is cPanel then direct go to "Email"
Then "Email Queue" and select all the unwanted email and then press the delete button.
and one more thing is change the server password also for protecting to schedule new email.
Exim All mails in the Mail Queue should be removed.
1. Type # exim -bp to print a list of the messages in the queue.
2. Enter # exim -Mrm message-id to remove a message from the queue.
3. Type # exim -bp | awk '/ *[0-9]+[mhd]/print "exim -Mrm " $3' | bash to clear all messages from the queue.
In Postfix, how can I remove a mail queue?
Read the examples below to learn how to clear/remove the mail queue in Postfix.
Scenario 1: Run postsuper -d mail queue id to remove a specific mail queue id (you'll receive it if you run mailq).
Scenario 2: Use postsuper -d ALL to remove ALL emails from the queue.