[Raw Msg Headers][Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How I did integrate Virus Scanner to ZMailer

El 13 Mar 2003 a las 22:33, Eugene Crosser escribió:

> On Thu, 2003-03-13 at 21:48, Mariano Absatz wrote:
> > What would be helpful in zmailer (either for this or other kind of stuff you 
> > could eventually want to do in the queue) is that either smtpserver or router 
> > could be configured (either thru command line or config file) to use a 
> > different directory than "router" for output or input respectively.
> I think this is trivial to do by just specifying proper smtpserver
> arguments in zmailer.cf.
How would you do that? that is, making smtpserver write to a different 
directory than $POSTOFFICE/router or making router read from a different 

The options I saw only allowed me to change the whole postoffice path.

> Although, this approach would kill any high-traffic system.  Creating
> and then removing half dozen extra files for every accepted message is
> not an option.  I would rather see a contentfilter-like interface that
> would connect to a unix-domain socket instead of spawning a process, and
> a (possibly multithreaded) scanning server that would mmap() the queue
> file, parse its MIME structure in memory, creating temporary files
> *only* when it encounters a huge mime part, and scan decoded parts in
> memory or on disk with a virus scanner library (like that of clamav). 
> Thus, we will typically need to create zero or one extra file per
> message, rarely more.

That's right, but it's still a better approach than most of the ones I saw 
around... and I'm really far from a C hacker...

Mariano Absatz
El Baby
I don't suffer from insanity. I enjoy every minute of it.

To unsubscribe from this list: send the line "unsubscribe zmailer" in
the body of a message to majordomo@nic.funet.fi