I use postfix.

I have retrieved the mails which have all the header info in them that is not 
in the original is:

Delivered-To: virus-quarantine


apart from that the to and X-Envelope-To are all as they should be.

So what I really need to do is feed them back to postfix, The question is how.

Also if anyone knows how to cp files from today only that would be handy.

Does the delivered to need to be removed?

Kind regards




Benedict White
[EMAIL PROTECTED]

Computer Systems Engineering Ltd
tel (44) 1444 441351
fax (44) 1444 441414

>>> Gary V <[EMAIL PROTECTED]> 08/02/05 07:05pm >>>
Benedict wrote:

> I had a problem with clamav failing so leading to all mails being quarantined 
> from 11 today.
> Is there an easy way to release them all, and get them rescanned if possible. 
> (If not they can be scanned elsewhere)
> I am using an old version of amavisd that has been patched.
> Kind regards
> Benedict White

One way to do it might be:
download and install mini_sendmail from:
http://www.acme.com/software/mini_sendmail/ 

cd /path/to/quarantine
zcat -f virus-5cayrWf0uy1Q | mini_sendmail [EMAIL PROTECTED] [EMAIL PROTECTED] 
for example.

You would have to edit each one to find out who the recipient is.
It's best to use X-Envelope-To:
If every mail contains X-Envelope-To:, you could:
zgrep X-Envelope-To: *

You could also use the X-Envelope-From: address in the -f parameter
for mini_sendmail if desired.
 
Also, many of the items may end up back in the quarantine,
so you would have to be careful to only send stuff within 
the appropriate time period.

If you use Postfix, and you want this stuff scanned, make
sure you do not have:
 -o content_filter=
after the 'pickup' service.

Gary V




-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click
_______________________________________________
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/

Reply via email to