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

Top Page
Delete this message
Reply to this message
Author: Greg Folkert
Date:  
To: Samuel Gitta
CC: EximUser List
Subject: RE: [Exim] FW: Integrating SpamAssasin with Exim 4.24-4
--
On Tue, 2003-12-30 at 11:28, Samuel Gitta wrote:
> Greg,
>
> What do u have for ur router?
>
> 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}}}}"
>         driver = accept
>         transport = spamcheck

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

>
> When I try to start it, I get the error option "command " unknown.


Router is as follows:
<><><><><><><><>
greg@knight:/etc/exim4/conf.d/router$ cat 350_exim4-config_spamcheck
# SpamAssassin
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-scanned}}} {1}{0}}"
driver = accept
transport = spamcheck
<><><><><><><><>

Transport is as follows:
<><><><><><><><>
# 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 =
<><><><><><><><>


Seems to work really well for me. I am on exim v4.24 with this
particular machine. BTW, I am using Debian's packaged Exim4 Heavy Daemon
(with Exiscan). Andreas Metzler and Marc Haber have done a fine job with
it.


--
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 ]
--