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 Thread Tools Search this Thread Display Modes
  #11 (permalink)  
Old 02-27-2009, 09:05 PM
Junior Member
 
Posts: 7
Default Why is this marked as solved?

This most certainly does not solve this problem. Why has Zimbra chosen to not include amavisd-release? *That* is the correct solution.

If you have a message that is marked as being a virus (becuase it includes an encrypted attachment), not only does Zimbra not allow you to release this file, but it incorrectly identifies it as being a virus.

Lame lame lamity Lame!
Reply With Quote
  #12 (permalink)  
Old 02-28-2009, 03:52 AM
Intermediate Member
 
Posts: 19
Default

There are many reasons to release quarantined messages.

At that time I had lot of messages in quarantine just because they contained UTF-8 chars in subject, but they were good messages so, first, I found a way to tell amavis to not quarantine them.
Second, I looked for a way to send them in the right recipients, and I used the solution I suggested.

If you are looking to a way to solve the second problem, you are in the right place...
__________________
Giorgio Salluzzo - Sviluppatore Python / Django
Reply With Quote
  #13 (permalink)  
Old 02-28-2009, 04:52 AM
Zimbra Consultant & Moderator
 
Posts: 19,653
Default

Quote:
Originally Posted by AnthonyBurton View Post
This most certainly does not solve this problem. Why has Zimbra chosen to not include amavisd-release? *That* is the correct solution.

If you have a message that is marked as being a virus (becuase it includes an encrypted attachment), not only does Zimbra not allow you to release this file, but it incorrectly identifies it as being a virus.

Lame lame lamity Lame!
Feel free to vote on any RFEs in bugzilla for this enhancement, that would be the appropriate place.
__________________
Regards


Bill
Reply With Quote
  #14 (permalink)  
Old 04-05-2009, 09:37 PM
Moderator
 
Posts: 1,405
Default

For example the ones collected here.

But, couldn't two or all three of these RFEs be combined into a single one? Right now there are probably people who don't care so much about the details, they just want better quarantine handling, and their votes are split across related RFEs.
__________________
Elliot Wilen
Berkeley, CA

Don't forget to enter your Zimbra version in your forum profile.
Reply With Quote
  #15 (permalink)  
Old 06-10-2009, 02:12 PM
Senior Member
 
Posts: 55
Default

How does that bypass the filter? It still goes through zimbra and is then quarantined a second time.
__________________
Jeffrey Turmelle
International Research Institute for Climate and Society
Earth Institute at Columbia University


Release 7.1.1_GA_3196.RHEL5_64_20110527001604 RHEL5_64 NETWORK edition.
Reply With Quote
  #16 (permalink)  
Old 06-10-2009, 02:17 PM
Senior Member
 
Posts: 55
Default

I agree. This is not solved. There is still no real way to forward quarantined messages. The sendmail workaround doesn't work because the message is just quarantined again, and the other solution just isn't workable unless your mail queue is TINY.
__________________
Jeffrey Turmelle
International Research Institute for Climate and Society
Earth Institute at Columbia University


Release 7.1.1_GA_3196.RHEL5_64_20110527001604 RHEL5_64 NETWORK edition.
Reply With Quote
  #17 (permalink)  
Old 01-09-2010, 02:49 PM
Active Member
 
Posts: 32
Default

lindworm's link gave me an idea for an improved script that reflected the needs of my system. Here it is for those who are interested:

Code:
#!/usr/bin/perl -w
#
# send_quarantine.pl
#
# Script to send message caught by Amavis quarantine. Feed the raw message
# into STDIN: ./send_quarantine.pl < virus-EHzL3YEPv56N
#
# Assumptions:
#
#   Amavis has added an X-Envelope-From header listing original From address.
#     Use it as the From in the SMTP call.
#
#   Amavis has added an X-Envelope-To header that breaks out the original To,
#      Cc, Bcc, etc. Use it as the To in the SMTP call.
#
#   The first Received header marks the beginning of the good RFC822 message
#      that will be fed into the SMTP call.
#
#   Script is NOT responsible for removing the quarantined message. It just
#      feeds it to and SMTP handler, that's it.
#
# Inspired by infect script at http://www.amavis.org/contrib/furio.infect
#
# Jay MacDonald - ThinkTek Solutions
#
# Licensing information: do whatever you want with this script.
# There is no warranty.  The author brings no responsibility for
# any problem or damage related with the use of this script.
#

use Net::SMTP;

my $mailhost = "localhost";
my $port = 25;

my $inTo=0;
my $inFrom=0;
my $inMsg=0;
my $From='';
my $ToList='';
my $Subject='';

while ( <> ) {
  if ( $inFrom && /^\S/ ) {
    # No longer reading an X-Envelope-From header
    $inFrom=0;
  }
  if ( $inTo && /^\S/ ) {
    # No longer reading an X-Envelope-To header
    $inTo=0;
  }

  if ( /^X-Envelope-From:\s*(.*)\s*$/ ) {
    # Found X-Envelope-From header, start building $From
    $inFrom=1;
    $From=$1;
  }
  elsif ( $inFrom && /^\s/ ) {
    # Still in X-Envelope-From, keep building $From
    s/\s//g;
    $From .= $_;
  }
  elsif ( /^X-Envelope-To:\s*(.*)\s*$/ ) {
    # Found X-Envelope-To header, start building $ToList
    $inTo=1;
    ($ToList=$1) =~ s/\s//g;
  }
  elsif ( $inTo && /^\s/ ) {
    # Still in X-Envelope-To, keep building $ToList
    s/\s//g;
    $ToList .= $_;
  }
  elsif ( /^Received:\s/ ) {
    # Assuming first Received header is where we start the real message
    # Start building $msg
    $msg=$_;
    $inMsg=1;
  }
  elsif ( $inMsg ) {
    if ( /^Subject:\s/ ) {
      # A nice to have. Note: doesn't capture multi line header
      $Subject = $_;
      chomp ($Subject);
    }
    $msg .= $_;
  }
}

if ( $From && $ToList ) {
  print "===> From = $From\n";
  print "===> ToList = $ToList\n";
  print "===> Subject = $Subject\n";
  print "\n";

  print "===> Sending message:";

  # Split the recipients into a list for passing to recipient function
  @recipients = split(/,/, $ToList);

  # Define the smtp object, build it out and send the message
  $smtp = Net::SMTP->new($mailhost, Port => $port);
  $smtp->mail($From);
  $smtp->recipient(@recipients, { SkipBad => 1 });
  $smtp->data();
  $smtp->datasend($msg);
  $smtp->dataend();
  $smtp->quit;

  # I never had anything fail, so not sure what would happen. Just send OK.
  print " OK\n";
} else {
  print "Error: From and ToList not set. Check the message and edit if required\n";
}
Reply With Quote
  #18 (permalink)  
Old 02-15-2010, 01:16 PM
Loyal Member
 
Posts: 99
Default

what does one do when all them emails going through my zimbra server have encrypted attachments. I am in the medical profession and some of our equipment auto-sends emails to relevant doctors with encrypted attachments.

if the virus scanning is broken, how do i simply disable it?
Reply With Quote
  #19 (permalink)  
Old 02-16-2010, 01:46 AM
Moderator
 
Posts: 1,405
Default

In the AV options you can turn off the option to quarantine encrypted attachments.
__________________
Elliot Wilen
Berkeley, CA

Don't forget to enter your Zimbra version in your forum profile.
Reply With Quote
  #20 (permalink)  
Old 02-16-2010, 07:29 AM
Loyal Member
 
Posts: 99
Default

I did that. and the attachments were still flagged as virus.zip, not even the <filename>.pdf that they were being sent as. I nwould never have known this was happeneing if i didnt try and cc my self. the emails never actually made it to the testr accounts setup for our doctors.

i ended up shutting down the entire AV module, which i didnt want to do.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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




 

SEO by vBSEO ©2011, Crawlability, Inc.