Hard to say. The config is still working on my server.
Looks like the error is on line 54. That seems too early for a ‘warn’ line. Can you check that the second block of code isn’t directly under the first, but lower down in the section acl_check_receipt. In my config that’s around line 209, just below the .ifdef SPAMASSASSIN line.
In fact I now see that should be updated, so that its almost identical to the SPAMASSASSIN one, after the recent changes to exim config last month. Try this:
# Second rspamd block in act_check_receipt
.ifdef RSPAMD
warn set acl_m1 = no
set acl_m3 = no
warn condition = ${if exists {/etc/exim4/domains/$domain/antispam}{yes}{no}}
set acl_m1 = yes
warn condition = ${if exists {/etc/exim4/domains/$domain/reject_spam}{yes}{no}}
set acl_m3 = yes
.endif
All three RSPAMD blocks are inserted directly after their SPAMASSASSIN counterpart. Hope that helps
I found, is that the blocks must be stored in specific places in the file?
Because in the tutorial or the person who makes it, it is displayed here:
Is that the problem?
Mz
PS : I confirm, it’s good, when we put the blocks to vas est viens, following the other, it crashes, but if we put them following the blocks added at the beginning by SPAMASSASSIN is that we put them just after is restart Exim4, no more error, understood … finally I think
Well perhaps its stating the obvious but you’d have to remove the comments from that. Also, you’d either have to make sure the auth_basic_user_file exists, OR take out the two auth_basic lines. Finally you’d have to put it in the right place in the config file, so that it is syntactically valid. Here’s an example of a working config:
location / {
expires off;
index index.php;
}
## Rspamd Admin ##
location /rspamd/ {
proxy_pass http://localhost:11334/;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# optional two lines if you want to restrict access with htpasswd
auth_basic "Restricted Content";
auth_basic_user_file /etc/apache2/admin.passwd;
}
location /error/ {
expires off;
internal;
}
These are all reasons why I wasn’t able to successfully automate the change from spamassassin to rspamd.