Step 1) Become zimbra user
su - zimbra
Step 2) Get quarantine account
zmprov gcf zimbraAmavisQuarantineAccount (RETURNS: zimbraAmavisQuarantineAccount: virus-quarantine.randomstring@mymail.mydomain.com)
Step 3) Get mailbox id for quarantine user
zmprov gmi <quarantine_user>
(e.g. zmprov gmi virus-quarantine.randomstring@mymail.mydomain.com)
(RETURNS: mailboxId: 42)
Step 4) Change to quarantine user message store
cd /opt/zimbra/store/0/<mailbox id>/msg/0
(e.g. cd /opt/zimbra/store/0/42/msg/0)
Step 5) Identify message by searching for recipient, message content, etc. You can use the quarantine webmail from above to view for some identifiers
grep -l someuser@mydomain.com *
(RETURNS: 123-45.msg)
Step 6) Send message to recipient using LMTP re-injection (bypasses virus checks)
zmlmtpinject -r <recipient email> -s <sender email> <message filename>
(e.g. zmlmtpinject -r someuser@mydomain.com -s admin@mydomain.com 123-45.msg)