[exim-dev] [Bug 746] New: Proposed change to allow specifica…

Etusivu
Poista viesti
Vastaa
Lähettäjä: Grant Gordon
Päiväys:  
Vastaanottaja: exim-dev
Aihe: [exim-dev] [Bug 746] New: Proposed change to allow specification of multiple av_scanners
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=746
           Summary: Proposed change to allow specification of multiple
                    av_scanners
           Product: Exim
           Version: N/A
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: wishlist
          Priority: medium
         Component: Content Scanning
        AssignedTo: tom@???
        ReportedBy: grant.gordon@???
                CC: exim-dev@???



Created an attachment (id=260)
--> (http://bugs.exim.org/attachment.cgi?id=260)
Diff of files modified for proposed change

I was advised to post the proposed change here.

I was chatting to our mail admin the other day and he commented on the fact
that you couldnt specify more than one av_scanner in exim, for failovers/load
sharing etc. I decided to take a look at the source of Exim and see if I could
sort that out for him. He suggested that I submit it for possible inclusion in
a future release of Exim. Detailed below is a summary of the changes I've made
and attached is the relevant diff of the source files I've modified.

/* Allows specifying multiple av_scanners seperated by ;
eg. av_scanner = clamd:address port; clamd:address2 port2
if av_random is set to 1, then an av_scanner will be randomly picked rotating
the virus scanning between machines and failing over to another server if one
is down
if av_random is set to 0, then it will always use the first av_scanner
specified
and fail over to the next av_scanner in the list should the first be down. */

I'm not sure if anyone else will find this useful, but I thought I'd share it
anyways. Its been a long time since I've coded in c so the code might need a
little cleaning up. But I've tested it on an Ubuntu install and it seems to
work quite well without any noticable additional overhead.


--
Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email