Re: [exim] Scan outgoing messages for viruses with ClamAV?

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Stephen Gran
Datum:  
To: exim-users
Betreff: Re: [exim] Scan outgoing messages for viruses with ClamAV?
On Tue, Jul 15, 2008 at 11:46:48AM -0400, Eric A. Bonney said:
> Is it possible to configure exim to scan the outgoing messages with
> ClamAV like it does with inbound messages?


There is no 'inbound' and 'outbound'.  There are messages that are
destined to be handled locally, and messages that are destined to be
handled remotely.  Assuming you use the standard:
  deny  
        malware        = *
        message        = This message contains a virus: ($malware_name)


Type block, that will scan all messages seen by exim, regardless of
destination.  You can use something like:
       add_header      = X-Scanned-By: \
         ${extract{1}{/}{${readsocket{inet:localhost:3310}{VERSION}{1s}{}{unscanned}}}}\
         on $primary_hostname; $tod_full


To add the header for you. Adjust the socket path as necessary.
--
--------------------------------------------------------------------------
|  Stephen Gran                  | The health of a democratic society may  |
|  steve@???             | be measured by the quality of functions |
|  http://www.lobefin.net/~steve | performed by private citizens.   --     |
|                                | Alexis de Tocqueville                   |

--------------------------------------------------------------------------