But it works, I forgot to set it up
  # scan the message with rspamd
  warn spam = nobody:true
on
warn
      set acl_m_spamengine = 127.0.0.1 11333 variant=rspamd
      spam = nobody:true


regards
Slawek


----- Original Message ----- From: "Martin A. Brooks via Exim-users" <[email protected]>
To: "James" <[email protected]>
Cc: <[email protected]>
Sent: Wednesday, September 6, 2023 5:16 PM
Subject: [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 <
[email protected]> 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):
##   [email protected]
## 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):
##   [email protected]
## 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):
##   [email protected]
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Reply via email to