Re: [exim] spamassassin transport configuration

Góra strony
Delete this message
Reply to this message
Autor: Christian Schmidt
Data:  
Dla: exim-users
Temat: Re: [exim] spamassassin transport configuration
Hello Markus,

Markus Hardiyanto, 09.05.2005 (d.m.y):

> 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.
>
> 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.
>
> can i do something like:
> command = /usr/exim/bin/exim -oMr spam-scanned no -bS


You could let exim invoke your SpamAssassin at SMTP time. Thus you can
decide whether exim will accept the mail depending on the spam score
SpamAssassin returns.
This procedure is described in the docs concerning the exiscan-acl
patch which is included in exim since version 4.50.

In short terms: You make SpamAssassin listening on a socket. exim will
then connect to this socket, the mail is spam-scanned, and depending
on the spam score SpamAssassin returns, your exim can accept or reject
the mail in question. If exim accepts it, it is processed in the
"normal way" (i.e. it will be delivered). If exim rejects the mail
because of too much probability for being spam, the other mail server
will see a "550 Mail rejected" (or something similar) and has to
create the corresponding bounce message.

Regards,
Christian Schmidt

-- 
Das beste an der Zukunft ist vielleicht der Umstand, daß immer nur ein
Tag auf einmal kommt.
        -- Dean Acheson