> -----Original Message-----
> From: Joe Talbott [mailto:[EMAIL PROTECTED]
> Sent: Thursday, May 22, 2003 7:25 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [clamav-devel] buffer mbox vs. tmp files
>
>
> On Thu, May 22, 2003 at 08:06:28PM +0200, Thomas Lamy wrote:
> > Joe Talbott wrote:
> > >What are your ideas on having the mbox scanning code handle
> > >attachments in-line rather than writing to/reading from the
> > >filesystem?  Due to the size of our mail system (~ 1 million messages
> > >per day) it seems disk access will be a bottleneck.
> > >
> > >Thanks,
> > >Joe
> > >
> > Why scan mail when it's already delivered? We handle ~750k mails/day,
> > using amavisd-new and clamd, coming in through load-balanced mail
> > exchangers, which deliver mail to the mbox servers after content
> > scanning. Runs like a charm, and, because of load balancing,
> it's easily
> > extendible. Plus amavisd-new enables us to run spamassassin on mail for
> > selected domains...
> >
> > Thomas
> >
>
> We want to reject viruses before they're delivered.  We are looking
> for a milter based solution to virus scanning.  We would prefer to
> avoid using Perl and temporary files.
>
> Joe
>

I'm working on something that does half of what you want. An alpha version
of clamdmail is available at http://roberthogan.net/clamav/. The idea is to
avoiding using a perl wrapper to scan for spam (using spamd) and
viruses(using clamd). It does, however, use temp files. Keeping it all in
RAM is an excellent idea but a big job. Worth a go, though..

Here is the readme for clamdmail:

How clamdmail works
-------------------

Clamdmail is designed for use with qmail but it will work with any MTA (e.g.
zmailer) that can be persuaded to pass mail to it on stdout.

If clamdmail finds an infected message it can do one of two things:

        - Quarantine the infected mail and forward a warning to the mail's
recipient. (With --quar flag)
        - Attach the infected message to a warning to the mail's recipient.
(Default)

Before checking for viruses, clamdmail can pass input to SpamAssassin's
spamd. This is done using the --spam flag.

Clamdmail can scan files encapsulated by Exchange and Outlook using the TNEF
format if you install
verdammelt's tnef package (http://sourceforge.net/projects/tnef). See
INSTALL for more details.

You can tag mail as scanned by using clamdmail with the --tag flag. If you
want to change the message
used to tag mails open up clamdmail.c, change the default message in
printtag() and recompile.

When you use the --quar=/my/quarantine/dir flag be sure to chown the
directory to the clamav user.

Naturally, you will need to have clamd up and running before clamdmail can
be of any use.

To view all options, type:

                clamdmail -h


>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to