[SOLVED] Releasing quarantined emails
What's the proper procedure for releasing emails caught in amavisd's quarantine in zimbra?
I had a look at amavisd's documentation and it mentions a amavisd-release, but this util is not present in the zimbra package.
Manually copying the file does not seem to be the proper solution either. amavisd saves the entire email, not just the attachment.
I don't know of any attachment extracting utils, as I generally deal with windows not linux.
Workaround to get messages out of the quarantine
There are two bugs/enhancement requests for this problem.. (11061 and 14614). I came across the same problem..and I believe I have a workaround, it's not the cleanest.. but it works..
Here is the quick rundown of what you need to do..
0. Make sure you've turned off the encrypted mail check for the anti virus.
1. Find the specific file you want to recover
2. Run formail on the file, and convert it to mbox.
3. View the message as root using mutt/pine/elm and save the attachment to your shell on the server.
4. Download the file to your computer.
5. Email the file to the intended recipient.
6. When the recipient gets the message, he'll get the message with the subject saying UNCHECKED .. but the zip file is indeed there.
-- Slightly more detailed Tips --
1. To convert the quarantined file into mbox format
formail -ds <virus-XXXXXXX > cleanmbox
2. cat cleanmbox >> /var/spool/mail/root
Mutt/Pine/Elm are fairly easy to use text only mail readers.. if you need help with mutt/pine please let me know.. I haven't personally used elm in over 12 years.. and I doubt it comes on many distros..