• Dear Pleskians! The Plesk Forum will be undergoing scheduled maintenance on Monday, 7th of July, at 9:00 AM UTC. The expected maintenance window is 2 hours.
    Thank you in advance for your patience and understanding on the matter.

Issue Having 87k mails in inbox

sCHween

New Pleskian
Hi there

as it seems a customer shared his password with the wrong people. Now we have a lot of outgoing mails - which I was able to remove by clearing the queue. But a few 10000 were already out and now most of them were rejected. How can i remove all messages came in the last 24h for the inbox?

Thanks for the fish
 
You can delete the messages from the account. Here are the directory locations

New messages:
Code:
/var/qmail/mailnames/example.com/mailname/Maildir/new/

Current Messages:
Code:
/var/qmail/mailnames/example.com/info/Maildir/cur/
 
solved this issue like this.
Get size and number of messages:
Code:
doveadm -f table mailbox status -u [email protected] "messages vsize" inbox*
Delete all with subject undelivered
Code:
doveadm expunge -u [email protected] mailbox inbox\* subject Undelivered

now working to get unblocked on some blacklists like google :S
 
Last edited:
Back
Top