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

TimVNL

New member
Joined
Mar 30, 2020
Messages
2
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?
 

zEitEr

Super Moderator
Joined
Apr 11, 2005
Messages
14,255
Location
GMT +7.00
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.
 

edvanleeuwen

Verified User
Joined
Nov 18, 2013
Messages
125
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?
 

Splet

Verified User
Joined
Oct 17, 2007
Messages
18
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:

smtalk

Administrator
Staff member
Joined
Aug 22, 2006
Messages
9,095
Location
LT, EU
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.
 

dr1361teh

Verified User
Joined
Aug 6, 2019
Messages
17
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?
 

smtalk

Administrator
Staff member
Joined
Aug 22, 2006
Messages
9,095
Location
LT, EU
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.
 

dr1361teh

Verified User
Joined
Aug 6, 2019
Messages
17
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.
 

bdacus01

Verified User
Joined
Jul 22, 2017
Messages
1,093
Location
Murfreesboro
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?
 

smtalk

Administrator
Staff member
Joined
Aug 22, 2006
Messages
9,095
Location
LT, EU
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 :)
 

ozgurerdogan

Verified User
Joined
Apr 20, 2008
Messages
309
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?
 
Top