....
 

Guardian Digital Inc. > InfoCenter > Mailing List Archives > Amavis

Amavis Mailing List Archive

From: Matthias Keller (linux@matthias-keller.ch)
Date: Thu Dec 30 2004 - 13:22:54 EST


Jefferson Cowart wrote:

> I am running amavisd-new on my server as a Postfix content filter.
> (Version: 20030616p10) It detected a message sent to me as containing
> a virus. However I would like to be able to read that message as I
> know there is other legitimate content in it. How to I re-inject it
> into the mail queue?

Hi Jefferson

Had the same problem some time ago.
I solved it like that:
I changed quarantining to BSMTP format, this format has the advantage
that you can directly pipe it to a smtp server and it will send it as it
contains all the EHLO, RCPT FROM, MAIL TO, DATA commands with the . at
the end.

For checking the quarantine I just manually do a cat filename.bsmtp to
look into it.
I wrote a small script which accepts a .bsmtp file for release to the
mail queue, circumventing the amavis checker.
this just works like this for bsmtp:
cat "filename.bsmtp" | /usr/sbin/sendmail -bs

(remember, 'sendmail' is emulated by postfix...)
man sendmail
       -bs Stand-alone SMTP server mode. Read SMTP commands
              from standard input, and write responses to stan­
              dard output. In stand-alone SMTP server mode, UCE
              restrictions and access controls are disabled by
              default. To enable them, run the process as the
              mail_owner user.

Works like a charm...

Hope this helps

Matt

-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
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/



[ About Guardian Digital ] - [ Press Center ] - [ Contact Us ] - [ System Activation ] - [ Reseller Info ] - [ Online Store ] - [ Site Map ]
Copyright (c) 2000 - 2004 Guardian Digital, Inc. Linux Lockbox and EnGarde are Trademarks of Guardian Digital, Inc.