Re: [exim] Exim before-queue filtering?

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Tomasz Chmielewski
Fecha:  
A: W B Hacker
Cc: exim users
Asunto: Re: [exim] Exim before-queue filtering?
W B Hacker wrote:
> Tomasz Chmielewski wrote:
>> Chris Laif wrote:
>>> On Tue, Jun 30, 2009 at 10:23 PM, Tomasz Chmielewski<mangoo@???> wrote:
>>>> OK, could you give me some examples here? Or point me to documentation
>>>> which deals with it?
>>>>
>>> http://www.exim.org/exim-html-current/doc/html/spec_html/ch41.html
>> Thanks for the link, but it's still a unclear for me how to do it?
>>
>> Perhaps I'm thinking too much in a Postfix way, but I'm unable to
>> produce a working setup to pass the message to amavis _before_ it's
>> accepted by Exim.
>
> Read up on Exim's use of the 'acl'.
>
> Look at examples on acl_smtp_data wherein mime checking is done and messages are
> handed-off to ClamAV, Kaspersky, F-prot, Sophos, and/or SpamAssassin, their
> 'opinion' awaited, then the messages either passed clean, passed with 'demerits'
> and potential quarantine, or rejected as malware / spam.


"av_scanner = clamd:..." is passing through a virus scanner, clamd in
this case. It has lots of other virus scanners, but no amavis option.

The only thing which comes close is "cmdline", but amavis can be set up
on a different host, so it's also not this.


"spamd_address = ..." passed the message to spamd - also not what I want.


amavisd will pass the message to clamdscan and spamassassin itself, and
offer some more goodies.


> I can't personally tell you where to fit Amavisd, as I've never used it.
>
> But Google turns up over 100,000 hits for 'Amavisd with Exim' so there must be
> at least ten decent examples in there somewhere.


Exactly.
It gives lots of hits, but all the searches I checked suggest a wrong
approach (accepting mail before checking if it's virus, spam or ham).


> If Amavisd cannot be used in-session, then move up to one of the above that can be.


It can be used, at least with Postfix.

With Exim, I'm scratching my head, but I'm not able to use amavisd-new
in a useful way.


--
Tomasz Chmielewski
http://wpkg.org