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
  #21 (permalink)  
Old 06-01-2010, 09:01 AM
Loyal Member
 
Posts: 93
Default

A quick way to release mail direct to user inboxes (requires a bit of setup but its a one liner after that) using amavisd-release

Release quarantined banned mail from zimbra one-liner! | SubVS.co.uk

Please vote for Bug 47625 – Include amavisd-release with amavisd (include amavisd-release in zimbra packages)
Reply With Quote
  #22 (permalink)  
Old 07-13-2010, 01:43 PM
Moderator
 
Posts: 1,405
Default

I found what I think is a better way of releasing quarantined emails (at least until bug 47625 is fixed), using zmlmtpinject.

/opt/zimbra/bin/zmlmtpinject -s <envelope_sender> /opt/zimbra/data/amavisd/quarantine/virus-whatever -r <recipient>

Note that <recipient> can be a list.

Full documentation on zmlmtpinject is here: how can I use zmlmtpinject? - Zimbra :: Forums

Shouldn't be too hard to script a solution that just takes the filename and then parses it for the envelope sender and recipient list. (Or envelope sender can just default to postmaster@<your_domain>.)
__________________
Elliot Wilen
Berkeley, CA

Don't forget to enter your Zimbra version in your forum profile.
Reply With Quote
  #23 (permalink)  
Old 08-13-2010, 04:33 AM
Junior Member
 
Posts: 8
Default

If using the sendmail method, Adding the "offending" sender address to the white list doesnt help either
__________________
lunarhotel.co.uk
Reply With Quote
  #24 (permalink)  
Old 08-27-2010, 02:02 PM
Junior Member
 
Posts: 8
Default

Quote:
Originally Posted by ewilen View Post
/opt/zimbra/bin/zmlmtpinject -s <envelope_sender> /opt/zimbra/data/amavisd/quarantine/virus-whatever -r <recipient>
Excellent. That works nicely.
Reply With Quote
  #25 (permalink)  
Old 09-06-2010, 11:47 PM
Junior Member
 
Posts: 5
Default

Quote:
/opt/zimbra/bin/zmlmtpinject -s <envelope_sender> /opt/zimbra/data/amavisd/quarantine/virus-whatever -r <recipient>
That worked for me too.
In addition I created a webmin custom command with variables for <virus-whatever> and <recipient> so my administrators can easily release messages in the future without having to drop to the command line.

Surely this should be something available from the admin interface...???
Reply With Quote
  #26 (permalink)  
Old 09-28-2010, 12:26 PM
Intermediate Member
 
Posts: 18
Default Extracting banned email

  1. Go to the mail server's desktop
  2. Navigate to /yourZimbraRoot/zimbra/data/amavisd/quarantine
  3. Copy the banned email in question to a directory accessible on the network.
  4. Navigate to the network folder you saved the file on
  5. Change the extension type of the file to .eml
  6. You can just double click on the EML file if you have Thunderbird installed and get to the email and attachment that way.
Reply With Quote
  #27 (permalink)  
Old 10-19-2010, 09:12 PM
Active Member
 
Posts: 38
Default

I'm using the zmlmtpinject method to release quarantined incoming messages successfully.

Is there a method for using zmlmtpinject on outgoing messages that are quarantined?

I try it and receive an error

Code:
Injecting 1 message(s) to 1 recipient(s).  Server localhost, port 7025, using 1 thread(s).
[warn] Recipient `recipient@emaildomain.com' rejected
[] WARN: Delivery failed for /opt/zimbra/data/amavisd/quarantine/banned-tumLvfjD0A4G:
com.zimbra.cs.lmtpserver.LmtpProtocolException: 503 5.5.1 No recipients
        at com.zimbra.cs.lmtpserver.utils.LmtpClient.sendMessage(LmtpClient.java:195)
        at com.zimbra.cs.lmtpserver.utils.LmtpInject$LmtpInjectTask.run(LmtpInject.java:227)
        at java.lang.Thread.run(Thread.java:619)
Seems to only work on inbound mail. Its only very occasionally that we send firmware updates out that trigger the attachment policy. At the moment I have to remove exe from the banned attachments get the user to send email, and reenable the exe as a banned attachment.
Reply With Quote
  #28 (permalink)  
Old 10-20-2010, 01:43 PM
Moderator
 
Posts: 1,405
Default

I doubt that lmtpinject will work since LMTP is intended for local delivery.

What you'd like to do, I suppose, is inject the message directly into the outbound mail queue, bypassing amavis. How to do this, I'm afraid I don't know.
__________________
Elliot Wilen
Berkeley, CA

Don't forget to enter your Zimbra version in your forum profile.
Reply With Quote
  #29 (permalink)  
Old 03-07-2011, 09:08 PM
Intermediate Member
 
Posts: 22
Default

Quote:
Originally Posted by shorvath View Post
That worked for me too.
In addition I created a webmin custom command with variables for <virus-whatever> and <recipient> so my administrators can easily release messages in the future without having to drop to the command line.

Surely this should be something available from the admin interface...???
This sounds interesting. Would be good to have a admin zimlet for this stuff. Anyone have the time to make this happen?
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.