CLI mode deleting email from zimbra user account

Some other way of accessing the user mailbox to delete unwanted email or accidentally email send to wrong person. As admin you have extra access through cli mode of the server. Below are simple step to delete it. You may access the zimbra server through ssh.

You must know which user you wanted to delete the email and which email base on from and subject that you wanted to delete. Below command will display the email content with 8 email in the list base on the date selected. So you wont have all email to be display in your console.

Ensure that you are using zimbra user before starting to check on the email list.
[[email protected] ~]# su – zimbra

Then run this command to list through the email
[[email protected] ~]$  zmmailbox -z -m [email protected] s -t message -l 8 “in:inbox date:12/27/2018”

Below are the result

To delete one of the email just run below command by referring the email ID to delete.

[[email protected] ~]$  zmmailbox -z -m [email protected] deleteMessage 36100

Once complete run above command, you may recheck again by running same command to list the email.

[[email protected] ~]$  zmmailbox -z -m [email protected] s -t message -l 8 “in:inbox date:12/27/2018”

Loading…

Comments

comments

Winners train and losers complain – Spartan

What i’ve done in 2018