Track incoming or outgoing email in zimbra
How to search sent/received e-mails from a particular email id through command line(CLI)
Solution
- If you have a multi-server installation – do this on the logging server
- Search for up to 1000 emails UserA@example.com has from UserB@example.com
$ zmmailbox -z -m UserA@example.com s -t message -l 1000 "in:Inbox From:UserB@example.com"
3. Search for up to 1000 emails UserA@example.com has sent to UserB@example.com
$ zmmailbox -z -m UserA@example.com s -t message -l 1000 "in:Sent TO:UserB@example.com"
4. Search by subject:
$zmmailbox -z -m UserA@example.com s -t message -l 1000 "in:Inbox subject: <subject that you want to search>"
Note: The max number of results to return (1-1000, default=25), mailbox search shows only 1000 results.