Hello

Thank you for answer.

>> 2. In Spamassassin I need compare if _SCORE_ > kill_spam_score
>>    then add header X_Spam_Remove  or X_Spam_Kill
> 
> Adding a custom header (or any action for that matter) depending on the
> overall score requires writing a custom plugin.
> 

It looks like :(

I'll have to work on that.


In the meantime, I will use a fixed value, eg 20 and I will compare in
Exim based on X-Spam-Status: Yes, score=32.1

> 
>> 3. In exim make router that check if X_Spam_Kill exists and
>>    move mail to /dev/null.
> 
> As Matus already mentioned, don't plain drop it. SMTP reject is proper
> handling.

Yes SMTP reject is proper. And normally is can be done in ACL by
"deny" options.


But I must do it probably much later in router/transport.
Because my configuration is different: for each recipient pipe
spamc and pipe additional process exim to Mailbox.


Some my configuration is based on:

http://www.janoszen.com/2013/07/24/filtering-spam-with-exim-and-spamassassin-properly/



I can't find info how reject mail in router/transport only info that
should be done in ACL.


Above configuration have advance that if incoming mail have CC, BCC
then each recipient will be process by spamc -u user@mail with own:
userpref (include white/black list), bayes and awl.

In normal Exim's configuration mail will be analized by SA only once
(only for TO: address - I must check if all user prefs is readed and
used in this case).

So, I can:
1. not worry about the messages with multiple recipients
   and use simple building ACL options in Exim. Fast and easy to
   configure.


2. try do it properly for multiple recipients mails. But there are
   many problems. Is slower, hard to configure (example reject email:)

What do you think about?


Best Regards


Reply via email to