[Rspamd-Users] Rspamd proxy connection issues
Vsevolod Stakhov
vsevolod at rspamd.com
Thu Mar 31 19:56:19 UTC 2022
Hello Tobias
On 30/03/2022 15:24, Tobias Hachmer via Users wrote:
>
> Hi,
>
> we see connection errors from rspamd proxy like this:
>
> worker {
> rspamd_proxy {
> bind_socket = "localhost:11332";
> reject_message = "Spam message rejected";
> milter = true;
> spam_header = "X-Spam";
> quarantine_on_reject = false;
> max_retries = 5;
> discard_on_reject = false;
> upstream {
> scan {
> compression = true;
> key = "...";
> default = true;
> hosts = "round-robin:rspamd1:11333:10,rspamd2:11333:10";
> }
> local {
> disabled = true;
> default = true;
> hosts = "localhost";
> }
> }
> count = 4;
> timeout = 120;
> }
> }
> ---
>
I think the problem is that neither upstreams nor mirrors do not support
`disabled` or `enabled` logic I'm afraid. So your `local` upstream is
not efficiently disabled.
I have fixed this in the master branch, but the only workaround for 3.2
is to place the whole proxy configuration in
`override.d/worker-proxy.inc` defining all parameters manually. You
cannot use `disabled` or `local.d` folder unless the fix is in the packages.
More information about the Users
mailing list