[Release] Rspamd web interface plugin for DirectAdmin - v0.1

Hello,

I just installed RSPAMD en de WebUi on a fresh CentOS 8 machine with the latest version of DirectAdmin using the following guides:
- https://help.poralix.com/articles/how-to-install-rspamd-on-centos8-directadmin

Everything is installed and RSPAMD is running but I see the following ERROR in the WebUI log:
3/31/2020, 7:35:37 AMcontroller2058csessiona9e1bagot error on IO with server fuzzy1.rspamd.com:11335(88.99.142.95:11335), on write, 1, Operation not permitted
3/31/2020, 7:35:26 AMmain2056cfgoxqnr1cannot compile stop words for 3 language group: regexp parsing error: 'character value in \\x{} or \\o{} is too large' at position 6; pattern: \\x{647}\\x{646}\\x{627}\\x{644}\\x{643}
3/31/2020, 7:35:26 AMmain2056cfgoxqnr1cannot compile stop words for 2 language group: regexp parsing error: 'character value in \\x{} or \\o{} is too large' at position 6; pattern: \\x{906}\\x{92b}\\x{942}
3/31/2020, 7:35:26 AMmain2056cfgoxqnr1cannot compile stop words for 1 language group: regexp parsing error: 'character value in \\x{} or \\o{} is too large' at position 6; pattern: \\x{441}\\x{430}\\x{43c}
3/31/2020, 7:35:26 AMmain2056cfgoxqnr1cannot compile stop words for 0 language group: regexp parsing error: 'character value in \\x{} or \\o{} is too large' at position 7; pattern: a\\x{10d}koli

Is ther a way to fix these ERRORS?
 
Allow outgoing TCP/UDP connections from your server to remote 11335 port.

As for other errors, it must be on DirectAdmin's side, some rules or filter are imported wrong. You might need to contact DirectAdmin developers on the matter.
 
I have the following error:
{"error":"An error occured!"}

In the rspamd.log I see the following:
Code:
2020-04-18 15:11:50 #8563(controller) <imhkkk>; monitored; rspamd_monitored_dns_cb: DNS query blocked on multi.uribl.com (127.0.0.1 returned), possibly due to high volume

What can I do to solve this?
 
I get the same problem, CentOS 7, all latest versions:

Code:
{"error":"An error occured!"}

Also in exim mainlog:

Code:
Rspamd should be on but was skipped for some reason: acl_c_esf_skip=0 OR (message_size=17115) >= 400K OR (acl_m_spam_user=nobody)==nobody

rspamd is running:

Code:
_rspamd   359264  0.2  0.0 288052 50104 ?        Ss   15:38   0:00 rspamd: main process
_rspamd   359272  0.0  0.0 288052 44500 ?        S    15:38   0:00  \_ rspamd: rspamd_proxy process (/var/run/rspamd/rspamd_proxy.sock mode=0600 owner=_rspamd)
_rspamd   359273  0.0  0.0 288832 45452 ?        S    15:38   0:00  \_ rspamd: controller process (/var/run/rspamd/rspamd_controller.sock mode=0600 owner=_rspa
_rspamd   359274  0.0  0.0 288052 44904 ?        S    15:38   0:00  \_ rspamd: normal process (localhost:11333)
_rspamd   359275  0.0  0.0 288052 44912 ?        S    15:38   0:00  \_ rspamd: normal process (localhost:11333)
_rspamd   359276  0.0  0.0 288052 44904 ?        S    15:38   0:00  \_ rspamd: normal process (localhost:11333)
_rspamd   359277  0.0  0.0 288052 44904 ?        S    15:38   0:00  \_ rspamd: normal process (localhost:11333)

All steps followed, multiple times.

Rspamd daemon version 2.5

EDIT: upon some further debugging, I found out the plugin makes a request to http://127.0.0.1:11334/, but rspamd is listening only on port 11333

Code:
tcp        0      0 127.0.0.1:11333         0.0.0.0:*               LISTEN      359264/rspamd: main

If I comment out the line:

Code:
    #.include(try=true; priority=1,duplicate=merge) "$LOCAL_CONFDIR/local.d/worker-controller.inc"

it starts listening on 11334 port and web GUI loads.
 
Last edited:
Ok, solution works for me as well. Still curious why the original setup fails.

Pre-release of DirectAdmin has Rspamd interface shown natively. It uses rspamd socket to do this, as it's more secure than exposing it on TCP/IP (localhost). I don't use this plugin, so I couldn't say what's the problem with it, but it could be that it proxied to a port instead of a socket, so, plugin would need to use the socket from now on.
 
Pre-release of DirectAdmin has Rspamd interface shown natively. It uses rspamd socket to do this, as it's more secure than exposing it on TCP/IP (localhost). I don't use this plugin, so I couldn't say what's the problem with it, but it could be that it proxied to a port instead of a socket, so, plugin would need to use the socket from now on.

Pre-release of DirectAdmin is installed and it's compile date is May 3 2020, 15:05:55.
RSPAMD is installed and working well.
But "Rspamd interface" has not been added to the Admin Panel.
What I missed up?
 
Pre-release of DirectAdmin is installed and it's compile date is May 3 2020, 15:05:55.
RSPAMD is installed and working well.
But "Rspamd interface" has not been added to the Admin Panel.
What I missed up?
If that’s enhanced - it’s in mail queue administration. If it’s not there - try updating custombuild/rspamd.
 
If that’s enhanced - it’s in mail queue administration. If it’s not there - try updating custombuild/rspamd.
Thanks, I found it.
My suggestion is "Rspamd interface opens in a new window, same as phpmyadmin", because no way for coming back to the DA panel.
 
So I am a bit confused. Is this a new feature for DA in general? Is this replacing Alex’s Rspamd plugin? Do we need to remove it? Can I use both?
 
So I am a bit confused. Is this a new feature for DA in general? Is this replacing Alex’s Rspamd plugin? Do we need to remove it? Can I use both?
I'm not sure what Alex's Rspamd plugin did. DA has native rspamd interface integrated. If plugin had something else than this or if you need plugin for some other reasons - you can run both :)
 
I had a sa running fine then swithed to rspamd. Many legiminate mails end in spam folder now. Is this normal? Do I need to reconfigure spam level points?
 
Has anyone else came across an error message like this:
Code:
local > Request failed: Unknown statistics error, found when storing data on backend; classifier: (null)
It occurs when manually adding data for rspamd to learn what is spam and what is not.
 
Has anyone else came across an error message like this:
Code:
local > Request failed: Unknown statistics error, found when storing data on backend; classifier: (null)
It occurs when manually adding data for rspamd to learn what is spam and what is not.
Same problem here, did you ever find a solution?
 
@tristan yes. It was a while ago, but as far as I remember, installing redis and configuring rspamd to use it solved the problem.
If I find a link to a DirectAdmin's forum, I'll post it and mark you with @.
 
Last edited:
I have installed it via the plugin URL method. I actually had it installed with CustomBuild before installing the plugin.

Both rspamd and /CMD_RSPAMD_SOCK/ is working, but the link on the admin panel plugins section shows blank. Nothing is displayed.

I am running PHP 8.0 as default
 
I have a similar issue, RSpamD does seem to be working, not as well as standard SpamAssassin but the socket :2222/CMD_RSPAMD_SOCK/#status. Does not update. The visuals show run time and Zero scans.

Does RSpamD support PHP 8.x? I switched to PHP 7.4, recompiled and ./built update. Still shows zero scans after an hour.

LFD/CSF UDP Out port open 11335
 
Back
Top