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

Pàgina inicial
Delete this message
Reply to this message
Autor: James
Data:  
A: exim-users
Assumpte: [exim] Re: how to enable both spamassassin and rspamd to run together
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/