Subject: Re: clamav-milter under CURRENT
To: Mike M. Volokhov <firstname.lastname@example.org>
From: None <email@example.com>
Date: 01/30/2004 09:12:57
On Fri, Jan 30, 2004 at 10:06:02AM +0200, Mike M. Volokhov wrote:
> On Thu, 29 Jan 2004 18:31:45 +0100
> firstname.lastname@example.org wrote:
> > I could make a rc.d script for clamd, but i have no idea how the milter thing
> > works. Does it involve a daemon to be launched, too? If so, should
> > clamav-milter be launched with clamd altogether, from the same rc.d script
> > (through an option, of course), or should there be two rc.d scripts?
> The sendmail has some pass-trough filter hooks inside. That API known as Milter.
> Any message depending on sendmail configuration may be "filtered" by number
> of such filters. There are some notes for starting sendmail filters:
> - all filters must (should?) be started *before* sendmail;
> - if filters will communicate within some another parts (such as clamd)
> they should be started *after* that parts;
> - The filters can leave they Unix socket files after unclean shutdown.
> Thus, on each filter start that stale files must be deleted.
> - When all parts uses TCP sockets, the sendmail, filters, and other
> parts may be each located on it's own system. For example:
> [AV daemon, Solaris] <-> [Milter filter, MacOS X] <-> [sendmail, BSD]
> Please take a look to wip/drweb/files/drwebd-rcd.src (just like clamd), and
> wip/drweb-clients-shared/drweb-smf.sh (just like clamav-milter) for examples.
> They were created for DrWeb antivirus suite.
> In file wip/drweb-clients/files/sendmail.mc.addon you can found few lines for
> addition to sendmail.mc file. That is how inject Milter filters in sendmail.
Thanks for the pointers. There are a few issues with the clamav package that
I need to sort out first, then I'll have a look at this.