Hello.
clamav-milter says:
        fprintf(stderr, "When using Localsocket in %s\nyou may improve
performance if you use the --quarantine_dir option\n", cfgfile);

Ok, it's good, but i don't need quarantine files at all.
Well, i could make it this way:

[snip]
--- clamav-milter.c.orig        2004-05-20 19:30:48.000000000 +0400
+++ clamav-milter.c     2004-05-20 19:31:03.000000000 +0400
@@ -2478,8 +2478,10 @@
                         * delete the file that we wish to keep because
                         * it
                         * is infected
                         */
+                       /*
                        free(privdata->filename);
                        privdata->filename = NULL;
+                       */
                }
 
                if(quarantine) {
[/snip]

so files will be unlinked after processing.

But, the question is: 
        Will it be same for performance, if i use in /etc/clamav.conf:
TemporaryDirectory /tmp
StreamSaveToDisk

I use sendmail on one box, clamd and clamav-milter on second box.
clamd listens for local on /tmp/clamd socket, clamav-milter connects to
clamd via that socket, sendmail connectes to clamav-milter by TCP/IP to
second box, port 46736(on which clamav-milter listens).

        +----------+ TCP/IP, milter    +------------------+
        | sendmail | --------------->  | clamav-milter-+  |
        +----------+                   |  unix socket->|  |
                                       | clamd <-------+  |
                                       +------------------+

As i understand, in case of quarantine-dir clamav-milter saves data to
file into quarantine dir/, then ask clamd to check this file.

Without quarantine dir, clamav-milter sends stream to clamd, then clamd
checks it for virus. But clamd save stream to TemporaryDirectory.

I guess it same, right?

ps. I'll scan source code of clamav-milter to understand it. But it
could take some time for me :-)

pps. 
        fprintf(stderr, "When using Localsocket in %s\nyou may improve
        performance if you use the --quarantine_dir option\n", cfgfile)
maybe should be
        fprintf(stderr, "When using Localsocket in %s\nyou may improve
        performance if you use the --quarantine-dir option\n", cfgfile);
right?

-- 
 Alex V. Kovirshin <alexk at ss dot rgs dot ru>


-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
Clamav-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/clamav-users

Reply via email to