Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack (2) Thread Tools Display Modes
  2 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 06-10-2007, 06:06 AM
Junior Member
 
Posts: 6
Default [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.
Reply With Quote
  #2 (permalink)  
Old 06-10-2007, 08:57 AM
Moderator
 
Posts: 2,017
Default

Hello, welcome.

AFAIK, there's not "quarantine" function currently implemented in Zimbra...

Are you sure your amavisd is quarantining some mails ?
Reply With Quote
  #3 (permalink)  
Old 06-11-2007, 06:25 AM
Junior Member
 
Posts: 6
Default

Quote:
Originally Posted by Klug View Post
Hello, welcome.

AFAIK, there's not "quarantine" function currently implemented in Zimbra...

Are you sure your amavisd is quarantining some mails ?
I tested the AV system by sending a test email with a test EICAR virus signature.

It results in a hit during AV checking and the following email:
Quote:
VIRUS ALERT

Our content checker found
virus: Eicar-Test-Signature

in an email to you from unknown sender:
?@access.mail.your-site.com
claiming to be: <eicar@aleph-tec.com>

Our internal reference code for your message is 02121-01/ZLtSlORn0JcT

First upstream SMTP client IP address: [38.96.163.30]
access.mail.your-site.com
According to a 'Received:' trace, the message originated at: [38.96.163.30],
b411.your-site.com (access.mail.your-site.com [38.96.163.30])

Return-Path: <eicar@aleph-tec.com>
Message-ID: <20070610123255.11282440C@b121.your-site.com>
Subject: EICAR anti-virus test file:
The message has been quarantined as: virus-ZLtSlORn0JcT

Please contact your system administrator for details.
a file along the name of ZLtSlORn0JcT now sits in one of amavisd's directories. cat the file will reveal that it is the original email in its entirety, with the "virus" attachment in its BASE64 SMTP form. This is of course a little useless if you wish to retrieve any attachment caught in this manner.

I am just thinking this through because I enabled protected archive blocking knowing that we do get the occational valid password-protected zip files.
Reply With Quote
  #4 (permalink)  
Old 07-03-2007, 08:57 PM
mbd mbd is offline
Senior Member
 
Posts: 58
Default

Curious to know the answer to this as well. I can access the email directly in the /opt/zimbra/amavisd/quarantine folder of the filesystem, but would like to know if there are zimbra specific steps to take to release the quarantined email to the recipient.
Reply With Quote
  #5 (permalink)  
Old 07-06-2007, 05:24 AM
Active Member
 
Posts: 26
Default

Yeah, i'd like to know the answer to this too.

You'd have thought in the network edition (at least) there would be functionality from the admin GUI to do this.
Reply With Quote
  #6 (permalink)  
Old 08-10-2007, 06:11 PM
Starter Member
 
Posts: 1
Default Workaround to get messages out of the quarantine

Hi guys,
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
3. mutt

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..
Reply With Quote
  #7 (permalink)  
Old 08-27-2007, 04:33 AM
Senior Member
 
Posts: 67
Default

The workaround didn't work for me, formail just doesn't responds.

I found this script: http://www.amavis.org/contrib/furio.infect

I had to add this lines at the top of the quarantined mail
X-Quarantined-From: <sender@domain.com>
X-Quarantined-To: <recipient@domain.com>

and then

./infect /opt/zimbra/amavisd/quarantine/virus-?????

this works for me
Reply With Quote
  #8 (permalink)  
Old 12-13-2007, 05:14 PM
Starter Member
 
Posts: 1
Default

Quote:
Originally Posted by telv View Post
I don't know of any attachment extracting utils, as I generally deal with windows not linux.
I use uudeview for this. It's probably not installed by default though


UUDEVIEW(1) UUDEVIEW(1)

NAME
UUDeview - a powerful decoder for binary files

SYNOPSIS
uudeview [options] [@file] file(s)

DESCRIPTION
UUDeview is a smart decoder for attachments that you have received in
encoded form via electronic mail or from the usenet. It is similar to
the standard uudecode(1) command, yet with more comfort and flexibil‐
ity. UUDeview supports the uuencoding, xxencoding, Base64, yEncoding
and BinHex encoding methods, and is able to handle split-files (which
have been sent in multiple parts) as well as multiple files at once,
thus greatly simplifying the decoding process. Usually, you will not
have to manually edit files to prepare them for decoding.

After invoking uudeview, it will scan all given files for encoded data,
sort them and their parts and then present you with the list of files
that seem like they can be decoded properly. You can then pick files
individually for decoding.

...
Reply With Quote
  #9 (permalink)  
Old 12-04-2008, 04:11 AM
Intermediate Member
 
Posts: 19
Default

I released all bad-header messages in this simple way:
Quote:
zimbra@smtp:~/data/amavisd/quarantine$ for FILE in `ls badh-*`; do
> cat $FILE | sendmail -t -i
> done
Reply With Quote
  #10 (permalink)  
Old 02-27-2009, 01:48 AM
Starter Member
 
Posts: 1
Default

Thanks a lot !

Cedric
Reply With Quote
Reply


Thread Tools
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com