• 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

Resolved Delete mails from specific sender or specific subject

Stergios G

Basic Pleskian
Server operating system version
CentOS Linux 7.9.2009 (Core)
Plesk version and microupdate number
Version 18.0.56
Hi all,
i want to delete all emails from info@domain.com, from specific sender or better with specific subject.
i have over 150.000 + emails with subject "Undelivered Mail Returned to Sender" and i want to clean. (the problem solved, the emails stay)

Any idea?
 
You could use the doveadm command line utility for this if you have Dovecot installed as your POP/IMAP server with Plesk. For example you could run:

Code:
sudo doveadm expunge -u info@example.com mailbox INBOX subject "Undelivered Mail Returned to Sender"

Which should delete all messages from the INBOX of the info@example.com email account. I haven't tested this, so use with caution.
 
Back
Top