amavisd-new & rspamd

Dudi Goldenberg dudi at kolcore.com
Thu Oct 23 06:33:20 CEST 2025


Yes.

root at myserver:~# netstat -napt |grep 11333
tcp        0      0 127.0.0.1:11333         0.0.0.0:*               LISTEN      16300/rspamd: main  
root at myserver:~#

Plus I am getting the curl response, didn’t want to paste it here.

Regards,
Dudi


-----Original Message-----
From: amavis-users <amavis-users-bounces+dudi=kolcore.com at amavis.org> On Behalf Of Damian
Sent: Wednesday, 22 October, 2025 11:38 PM
To: amavis-users at amavis.org
Subject: Re: amavisd-new & rspamd

> @spam_scanners = ( [
> 
>        'Local Rspamd', 'Amavis::SpamControl::RspamdClient',
> 
>        score_factor => $sa_tag2_level_deflt / 15.0,
> 
>        mta_name => 'myserver.kolcore.com'
> 
>    ] );
Does rspamd listen on the expected endpoint?

> $ curl http://127.0.0.1:11333/checkv2
> {"is_skipped":false,"score":15.0,"required_score":15.0,"action":"reject","thresholds":{"reject":15.0,"add header":6.0,"greylist":4.0},"symbols":{"COMPLETELY_EMPTY":{"name":"COMPLETELY_EMPTY","score":15.0,"metric_score":15.0}},"messages":{},"time_real":0.000669,"milter":{"remove_headers":{"X-Spam":0}}}

If there is a connection problem, there should be an according log-line no matter the $log_level:

> Local Rspamd client failed: ...
Other potential problems could log "Error calling rspamd" or "Missing rspamd response".

With $log_level 5 one would expect to see

> Rspamd response: ...


More information about the amavis-users mailing list