• We value your experience with Plesk during 2025
    Plesk strives to perform even better in 2026. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2025.
    Please take this short survey:

    https://survey.webpros.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