Re: [Exim] FW: Integrating SpamAssasin with Exim 4.24-4

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Greg Folkert
Fecha:  
A: EximUser List
Asunto: Re: [Exim] FW: Integrating SpamAssasin with Exim 4.24-4
--
On Mon, 2003-12-29 at 12:24, Samuel Gitta wrote:
> I need advise on how best to integrate SpamAssasin with exim 4.24-4
> running on FreeBSD 4.9.
>
> I have already installed SpamAssassin 2.61 and starting it with spamd
>
> I had edited my exim configure file with these entries, but was
> unsuccessful.
>
> ........................
> spamcheck_router:
>         no_verify
>         check_local_user
>         # When to scan a message :
>         # - it isn't already flagged as spam
>         # - it isn't already scanned
>         condition = "${if and { {!def:h_X-Spam-Flag:} {!eq
> {$received_protocol}{spam-scadriver = accept
>         transport = spamcheck
> # SpamAssassin
> spamcheck:
>         driver = pipe
>         command = /usr/local/bin/exim -oMr spam-scanned -bS
>         use_bsmtp = true
>         transport_filter = /usr/local/bin/spamd
>         home_directory = "/tmp"
>         current_directory = "/tmp" ...................................

The user that SpamAssassin is using has to be priv'd... in order to
re-insert the mail back into the stream.

Here is my transport:

# SpamAssassin
spamcheck:
    driver = pipe
    command = /usr/sbin/exim4 -oMr spam-scanned -bS
    use_bsmtp = true
    transport_filter = /usr/bin/spamc
    home_directory = "/tmp"
    current_directory = "/tmp"
    # must use a privileged user to set
    # $received_protocol on the way back in!
    user = mail
    group = mail
    log_output = true
    return_fail_output = true
    return_path_add = false
    message_prefix =
    message_suffix =


# End of SpamAssassin Transport

Effectively it has to be the user exim is using (or at least one the can
do everything the user exim is doing)

--
greg, greg@???
REMEMBER ED CURRY! http://www.iwethey.org/ed_curry
--
Content-Description: This is a digitally signed message part

[ signature.asc of type application/pgp-signature deleted ]
--