Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 30

Thread: [SOLVED] Releasing quarantined emails

  1. #11
    AnthonyBurton is offline Junior Member
    Join Date
    Oct 2008
    Location
    Santa Clara, CA
    Posts
    7
    Rep Power
    6

    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!

  2. #12
    drizzt's Avatar
    drizzt is offline Intermediate Member
    Join Date
    Nov 2008
    Location
    Pavia (Italia)
    Posts
    19
    Rep Power
    6

    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

  3. #13
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,566
    Rep Power
    57

    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


    Acompli: A new adventure for Co-Founder KevinH.

  4. #14
    ewilen's Avatar
    ewilen is offline Moderator
    Join Date
    Jun 2008
    Location
    Berkeley, CA
    Posts
    1,474
    Rep Power
    9

    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.

  5. #15
    jefft@iri.columbia.edu is offline Senior Member
    Join Date
    Aug 2007
    Location
    New York
    Posts
    57
    Rep Power
    8

    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.2.7_GA_2942.RHEL5_64_20140314190109 RHEL5_64 NETWORK edition.

  6. #16
    jefft@iri.columbia.edu is offline Senior Member
    Join Date
    Aug 2007
    Location
    New York
    Posts
    57
    Rep Power
    8

    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.2.7_GA_2942.RHEL5_64_20140314190109 RHEL5_64 NETWORK edition.

  7. #17
    Cheakamus is offline Active Member
    Join Date
    Mar 2007
    Location
    Vancouver, Canada
    Posts
    34
    Rep Power
    8

    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";
    }

  8. #18
    sangamc is offline Special Member
    Join Date
    Aug 2009
    Location
    florida
    Posts
    132
    Rep Power
    5

    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?

  9. #19
    ewilen's Avatar
    ewilen is offline Moderator
    Join Date
    Jun 2008
    Location
    Berkeley, CA
    Posts
    1,474
    Rep Power
    9

    Default

    In the AV options you can turn off the option to quarantine encrypted attachments.

  10. #20
    sangamc is offline Special Member
    Join Date
    Aug 2009
    Location
    florida
    Posts
    132
    Rep Power
    5

    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.

Page 2 of 3 FirstFirst 123 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Errors because of Deffered emails
    By mansuper in forum Administrators
    Replies: 0
    Last Post: 11-20-2006, 04:08 PM
  2. Deleting emails before a particular date
    By mansuper in forum Zimbra in Education
    Replies: 6
    Last Post: 11-16-2006, 02:57 PM
  3. Not receiving emails
    By koby in forum Installation
    Replies: 2
    Last Post: 08-28-2006, 03:29 AM
  4. how to manage quarantined emails.?
    By demanl in forum Administrators
    Replies: 5
    Last Post: 06-24-2006, 01:27 PM
  5. emails don't show up in inbox in browser
    By pstelzer in forum Installation
    Replies: 10
    Last Post: 12-13-2005, 10:21 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •