• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

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