delete message from all emails
I want to do the following: delete messages from the sender "spam@hotmail.com", from all email accounts, and from all hosting accounts.
Example: I continually receive email from: spam1@hotmail.com, spam2@hotmail.com, etc., so I want to delete these messages from my clients' mailboxes: email1@domain1.com, email2@domain2.com, email3@domain3.com, what would be the script or command to perform this recursive action?
-
Hey there! With the way modern email is stored there isn't going to be a good SSH command to accomplish this, and even if there were I'm usually hesitant to post any type of recursive command that delete data to the Forum.
I'd recommend doing some additional research on what the doveadm command can handle with their tool at https://doc.dovecot.org/main/core/man/doveadm-search-query.7.html but even with those types of queries you have to get the mailbox ID to perform any actions.
0
Please sign in to leave a comment.
Comments
1 comment