• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

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 user@domain.li "messages vsize" inbox*
Delete all with subject undelivered
Code:
doveadm expunge -u user@domain.li mailbox inbox\* subject Undelivered

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