Re: [exim] spamassassin transport configuration

Página Inicial
Delete this message
Reply to this message
Autor: Nigel Wade
Data:  
Para: Markus Hardiyanto
CC: exim-users
Assunto: Re: [exim] spamassassin transport configuration
Markus Hardiyanto wrote:
> i get configuration from
> http://www.exim.org/exim-html-4.40/doc/html/C047.txt
>
> spamcheck:
>     driver = pipe
>     command =  /usr/exim/bin/exim -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 =

>
> my question is on command part:
> command = /usr/exim/bin/exim -oMr spam-scanned -bS
>
> as i know this command is telling that the email is
> already scanned and pass the scan as clean message.


No, it doesn't mean that. It's an indication that the message has been
scanned. Exim should be configured to deliver messages with
received-protocol "spam-scanned" and not scan it again. That pipe will be
acted on whether the message is spam or not.

>
> but how to tell exim that the email is already scanned
> and didn't pass the test? so exim can create a error
> message notification to the email sender.


You can't, and you most likely don't want to. If you do that you will be
sending a bounce message to the (almost certainly) forged sender address.
This method accepts the message before scanning it, so you can't reject it
correctly; the worst you can do is bounce it.


-- 
Nigel Wade, System Administrator, Space Plasma Physics Group,
             University of Leicester, Leicester, LE1 7RH, UK
E-mail :    nmw@???
Phone :     +44 (0)116 2523548, Fax : +44 (0)116 2523555