Mailing List Archive

Exim and Rspamd header x-spamd-result
Hello.!! I'm migrating the antispam from my server, from SpamAssassin to Rspamd, because i need redis.


I have configured it correctly but it does not print the "x-spamd-result" header. Has someone configured this antispam service?
--
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/
Re: Exim and Rspamd header x-spamd-result [ In reply to ]
Emanuel Gonzalez via Exim-users wrote on 24/04/18 16:30:
> Hello.!! I'm migrating the antispam from my server, from SpamAssassin to
> Rspamd, because i need redis.
>
>
> I have configured it correctly but it does not print the "x-spamd-result"
> header. Has someone configured this antispam service?

Do you use "variant=rspamd"? Do you add the header?

This works here:
....
spamd_address = ${acl_m_spamd}
....

# lets try rspamd
warn set acl_m_spamd = 127.0.0.1 xxxx variant=rspamd

defer spam = $acl_m_username:true
condition = no

warn spam = $acl_m_username:true
set acl_m_rsdhdr = X-Rspamd-Action: $spam_action\n\
X-Rspamd-Score: $spam_score\n\
X-Rspamd-Report: $spam_report
log_message = RSPAMD: $spam_report

...
headers_add = ${if def:acl_m_rsdhdr{$acl_m_rsdhdr}{}}


Greetings, Wolfgang
--
Wolfgang Breyha <wbreyha@gmx.net> | https://www.blafasel.at/
Vienna University Computer Center | Austria


--
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/
Re: Exim and Rspamd header x-spamd-result [ In reply to ]
The rspamd integration guide lists the variables that are set when
rspamd is called:

# This will set variables as follows:
# $spam_action is the action recommended by rspamd
# $spam_score is the message score (we unlikely need it)
# $spam_score_int is spam score multiplied by 10
# $spam_report lists symbols matched & protocol messages
# $spam_bar is a visual indicator of spam/ham level

Suggest you go read those documents again. Can't help anymore because
you didn't bother to share your config.

On Tue, Apr 24, 2018 at 3:30 PM, Emanuel Gonzalez via Exim-users
<exim-users@exim.org> wrote:
> Hello.!! I'm migrating the antispam from my server, from SpamAssassin to Rspamd, because i need redis.
>
>
> I have configured it correctly but it does not print the "x-spamd-result" header. Has someone configured this antispam service?
> --
> ## List details at https://lists.exim.org/mailman/listinfo/exim-users
> ## Exim details at http://www.exim.org/
> ## Please use the Wiki with this list - http://wiki.exim.org/

--
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/
Re: Exim and Rspamd header x-spamd-result [ In reply to ]
Now that I received an answer, I explain my configuration.


exim current configuration:


#spamd_address = 172.17.2.230 783
spamd_address = 168.181.185.235 11333 variant=rspamd


warn message = X-Spam-Score: $spam_score
condition = ${if <{$message_size}{512k}{1}{0}}
spam = nobody:true/defer_ok

warn message = X-Spam-Score-Int: $spam_score_int
condition = ${if <{$message_size}{512k}{1}{0}}
spam = nobody:true/defer_ok

warn message = X-Spam-Bar: $spam_bar
condition = ${if <{$message_size}{512k}{1}{0}}
spam = nobody:true/defer_ok

warn message = X-Spam-Report: $spam_report
condition = ${if <{$message_size}{512k}{1}{0}}
spam = nobody:true/defer_ok

In Rspamd

cat milter_headers.conf
extended_spam_headers = true;
authenticated_headers = ["authentication-results"];

the rspamd documentation indicates that you just have to add the variable: extended_spam_headers = true




--
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/
Re: Exim and Rspamd header x-spamd-result [ In reply to ]
In the ACL check_spam.


warn message = X-Spam-Score: $spam_score
condition = ${if <{$message_size}{512k}{1}{0}}
spam = nobody:true/defer_ok

warn message = X-Spam-Score-Int: $spam_score_int
condition = ${if <{$message_size}{512k}{1}{0}}
spam = nobody:true/defer_ok

warn message = X-Spam-Bar: $spam_bar
condition = ${if <{$message_size}{512k}{1}{0}}
spam = nobody:true/defer_ok

warn message = X-Spam-Report: $spam_report
condition = ${if <{$message_size}{512k}{1}{0}}
spam = nobody:true/defer_ok


________________________________
De: Emanuel Gonzalez <emanuel_gonzalez@live.com.ar>
Enviado: martes, 24 de abril de 2018 12:40:02
Para: exim-users@exim.org
Asunto: Re: [exim] Exim and Rspamd header x-spamd-result


Now that I received an answer, I explain my configuration.


exim current configuration:


#spamd_address = 172.17.2.230 783
spamd_address = 168.181.185.235 11333 variant=rspamd


warn message = X-Spam-Score: $spam_score
condition = ${if <{$message_size}{512k}{1}{0}}
spam = nobody:true/defer_ok

warn message = X-Spam-Score-Int: $spam_score_int
condition = ${if <{$message_size}{512k}{1}{0}}
spam = nobody:true/defer_ok

warn message = X-Spam-Bar: $spam_bar
condition = ${if <{$message_size}{512k}{1}{0}}
spam = nobody:true/defer_ok

warn message = X-Spam-Report: $spam_report
condition = ${if <{$message_size}{512k}{1}{0}}
spam = nobody:true/defer_ok

In Rspamd

cat milter_headers.conf
extended_spam_headers = true;
authenticated_headers = ["authentication-results"];

the rspamd documentation indicates that you just have to add the variable: extended_spam_headers = true




--
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/
Re: Exim and Rspamd header x-spamd-result [ In reply to ]
In the scaned mail only appear this headers

X-Spam-Score: 48.1
X-Spam-Score-Int: 481
X-Spam-Bar: ++++++++++++++++++++++++++++++++++++++++++++++++
X-Spam-Threshold: 50
X-Spam-Status: Yes
Subject: ****SPAM**** asd


________________________________
De: Emanuel Gonzalez <emanuel_gonzalez@live.com.ar>
Enviado: martes, 24 de abril de 2018 12:53:26
Para: exim-users@exim.org
Asunto: Re: [exim] Exim and Rspamd header x-spamd-result


In the ACL check_spam.


warn message = X-Spam-Score: $spam_score
condition = ${if <{$message_size}{512k}{1}{0}}
spam = nobody:true/defer_ok

warn message = X-Spam-Score-Int: $spam_score_int
condition = ${if <{$message_size}{512k}{1}{0}}
spam = nobody:true/defer_ok

warn message = X-Spam-Bar: $spam_bar
condition = ${if <{$message_size}{512k}{1}{0}}
spam = nobody:true/defer_ok

warn message = X-Spam-Report: $spam_report
condition = ${if <{$message_size}{512k}{1}{0}}
spam = nobody:true/defer_ok


________________________________
De: Emanuel Gonzalez <emanuel_gonzalez@live.com.ar>
Enviado: martes, 24 de abril de 2018 12:40:02
Para: exim-users@exim.org
Asunto: Re: [exim] Exim and Rspamd header x-spamd-result


Now that I received an answer, I explain my configuration.


exim current configuration:


#spamd_address = 172.17.2.230 783
spamd_address = 168.181.185.235 11333 variant=rspamd


warn message = X-Spam-Score: $spam_score
condition = ${if <{$message_size}{512k}{1}{0}}
spam = nobody:true/defer_ok

warn message = X-Spam-Score-Int: $spam_score_int
condition = ${if <{$message_size}{512k}{1}{0}}
spam = nobody:true/defer_ok

warn message = X-Spam-Bar: $spam_bar
condition = ${if <{$message_size}{512k}{1}{0}}
spam = nobody:true/defer_ok

warn message = X-Spam-Report: $spam_report
condition = ${if <{$message_size}{512k}{1}{0}}
spam = nobody:true/defer_ok

In Rspamd

cat milter_headers.conf
extended_spam_headers = true;
authenticated_headers = ["authentication-results"];

the rspamd documentation indicates that you just have to add the variable: extended_spam_headers = true




--
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/