[exim] Re: how to enable both spamassassin and rspamd to run…

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Martin A. Brooks
日付:  
To: James
CC: exim-users
題目: [exim] Re: how to enable both spamassassin and rspamd to run together
My config for doing exactly that is as follows:

    defer
        message         = Deferred.
        set acl_m_spamd = 127.0.0.1 11333 variant=rspamd
        spam            = Debian-exim:true
        condition       = ${if eq{$spam_action}{soft reject}}

    deny
        message         = Junk: $spam_score
        log_message     = rspamd hits=$spam_score report=$spam_report
action=$spam_action
        set acl_m_spamd = 127.0.0.1 11333 variant=rspamd
        spam            = Debian-exim:true
        add_header      = X-Rspamd-Status: $spam_report hits=$spam_score
        condition       = ${if eq{$spam_action}{reject}}

    deny
        message         = Junk: $spam_score
        log_message     = spamassassin hits=$spam_score report=$spam_report
action=$spam_action
        set acl_m_spamd = 127.0.0.1 783
        spam            = Debian-exim:true
        add_header      = X-Spamassassin-Status: $spam_report
hits=$spam_score
        condition       = ${if >{$spam_score_int}{50}{true}{false}}




On Wed, 6 Sept 2023 at 14:38, James via Exim-users <
exim-users@???> wrote:

> On 05/09/2023 17:04, Sławomir Dworaczek via Exim-users wrote:
>
> > Is it possible to run spamassassin and rspamd at the same time
>
> Yes.  (Although I don't use rspamd this should work.)  See:
>
>
> https://www.exim.org/exim-html-current/doc/html/spec_html/ch-content_scanning_at_acl_time.html
>
> "The spamd_address variable is expanded before use if it starts with a
> dollar sign."
>
> So I set:
>
> spamd_address = $acl_m_spamengine
>
> In the acl which I split into sub acls but the flow is:
>
> # set the spam engine
>    set acl_m_spamengine = 127.0.0.1:783
> # invoke the spam engine
>    spam = ...
> # save the result
>    set acl_m_sa_score = $spam_score_int ...
> # set another spam engine
>    set acl_m_spamengine = 127.0.0.1:9783
> # invoke the spam engine
>    spam = ...
> # save the result
>    set acl_m_jspamd_score = $spam_score_int ...
> # process results do decide if deny or accept
>
>
>
>
>
> --
> ## subscription configuration (requires account):
> ##
> https://lists.exim.org/mailman3/postorius/lists/exim-users.lists.exim.org/
> ## unsubscribe (doesn't require an account):
> ##   exim-users-unsubscribe@???
> ## Exim details at http://www.exim.org/
> ## Please use the Wiki with this list - http://wiki.exim.org/
>


--
## subscription configuration (requires account):
## https://lists.exim.org/mailman3/postorius/lists/exim-users.lists.exim.org/
## unsubscribe (doesn't require an account):
## exim-users-unsubscribe@???
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/