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

zEitEr

Super Moderator
Joined
Apr 11, 2005
Messages
13,902
Location
GMT +7.00
If you already have Rspamd, the fast, free and open-source spam filtering system, installed on a DirectAdmin server, you might try a web interface, which provides basic functions for setting metric actions, scores, viewing statistic and learning for Rspamd.

By default the Web-UI is not accessible from outside, and it might be a challenge to access it securely over HTTPs.

Poralix have prepared a plugin for DirectAdmin to allow administrators to manage Rspamd without much efforts.

RELEASE PAGE

Here is a guide on how to get the plugin installed into the control panel and access it on an admin level:

- https://help.poralix.com/articles/rspamd-web-ui-as-directadmin-plugin

INFORMATION

- Version: 0.1.0
- Last modified: Sat Apr 27 21:14:05 +07 2019
- Update URL: https://files.poralix.com/get/freesoftware/rspamd.tar.gz
- Version URL: https://files.poralix.com/version/freesoftware/rspamd
- Rspamd Web-UI home page: https://rspamd.com/webui/

INSTALLATION

Run the following commands as root to install the plugin from a git repository:

Code:
cd /usr/local/directadmin/plugins/
git clone https://github.com/poralix/rspamd.git
cd rspamd/scripts/
./install.sh
AUTHORS

- Rspamd with the web interface is written by Vsevolod Stakhov
- Plugin for Directadmin is written by Alex S Grebenschikov

Try the plugin and share your experience.
 

Active8

Verified User
Joined
Jul 13, 2013
Messages
232
I had before spamasssin so i edited options.conf to disable spamassasin and enabled rspamd
after that i did the plugin installation , went ok
when i click on the plugin i get an error :

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

EDIT:Apperently changging things in options isnt enough

so i did

cd /usr/local/directadmin/custombuild
./build update
./build set spamd rspamd
./build rspamd
./build exim_conf

Error is gone now, how can we test of the rspamd works well , isti better then spamassasin ?
 
Last edited:

zEitEr

Super Moderator
Joined
Apr 11, 2005
Messages
13,902
Location
GMT +7.00
You can check the logs and history in the web-gui, and see how the things go. It's expected to run faster with less resource usage.
 

Active8

Verified User
Joined
Jul 13, 2013
Messages
232
hmm nothing in the webgui, in the email address i dont see anything about a scan for spam
 

Active8

Verified User
Joined
Jul 13, 2013
Messages
232
Code:
2019-05-04 18:37:25 #26883(controller) <174fec>; csession; rspamd_controller_check_forwarded: allow unauthorized proxied connection from a trusted IP 127.0.0.1 via 127.0.0.1
2019-05-04 18:38:29 #26883(controller) <16edaf>; csession; rspamd_controller_check_forwarded: allow unauthorized proxied connection from a trusted IP 127.0.0.1 via 127.0.0.1
2019-05-04 18:38:29 #26883(controller) <ca9507>; csession; rspamd_controller_check_forwarded: allow unauthorized proxied connection from a trusted IP 127.0.0.1 via 127.0.0.1
2019-05-04 18:48:41 #26883(controller) <7d79a8>; csession; rspamd_controller_check_forwarded: allow unauthorized proxied connection from a trusted IP 127.0.0.1 via 127.0.0.1
2019-05-04 18:48:41 #26883(controller) logger; file_log_function: Last message repeated 36 times
2019-05-04 18:48:41 #26883(controller) <3nxzfe>; monitored; rspamd_monitored_dns_cb: DNS query blocked on multi.uribl.com (127.0.0.1 returned), possibly due to high volume
2019-05-04 18:56:03 #26883(controller) <0d14ff>; csession; rspamd_controller_check_forwarded: allow unauthorized proxied connection from a trusted IP 127.0.0.1 via 127.0.0.1
2019-05-04 18:56:03 #26883(controller) <9ca3d0>; csession; rspamd_controller_check_forwarded: allow unauthorized proxied connection from a trusted IP 127.0.0.1 via 127.0.0.1
2019-05-04 18:56:06 #26883(controller) <fc14a9>; csession; rspamd_controller_check_forwarded: allow unauthorized proxied connection from a trusted IP 127.0.0.1 via 127.0.0.1
2019-05-04 18:56:07 #26883(controller) <b87445>; csession; rspamd_controller_check_forwarded: allow unauthorized proxied connection from a trusted IP 127.0.0.1 via 127.0.0.1
 

Active8

Verified User
Joined
Jul 13, 2013
Messages
232
weired email header shows this:

Code:
Message-ID: <005d01d5029d$6edf8100$4c9e8300$@ww.com>
MIME-Version: 1.0
Content-Type: multipart/alternative;
    boundary="----=_NextPart_000_005E_01D502AE.32685100"
X-Mailer: Microsoft Outlook 16.0
Thread-Index: AdUCnWjVxc9oc1vzQWqaN2HJI4gx9w==
Content-Language: nl
X-Antivirus-Scanner: Clean mail though you should still use an Antivirus
X-Authenticated-Id: info@www.com
Forward-Confirmed-ReverseDNS: Reverse and forward lookup success on 1:1:1:1, -10 Spam score
SPFCheck: Server passes SPF test, -30 Spam score
SpamTally: Final spam score: unset because ESF not run (SpamAssassin unset, whitelist, or skippped)
in historylog i see:
Code:
5/4/2019, 7:19:24 PM	controller	4516	csession	6856f7	got error on IO with server fuzzy2.rspamd.com(88.99.142.95:11335), on write, 1, Operation not permitted
5/4/2019, 7:18:54 PM	controller	4516	csession	3cbb88	got error on IO with server fuzzy1.rspamd.com(88.99.142.95:11335), on write, 1, Operation not permitted
 
Last edited:

Active8

Verified User
Joined
Jul 13, 2013
Messages
232
Hi Ditto, in options.conf for spamd you MUST select one of them, so I dont think that rspmand can work along spamassassin, maybe Alex can bring some light in here
 

zEitEr

Super Moderator
Joined
Apr 11, 2005
Messages
13,902
Location
GMT +7.00
Rpsamd is a binary replacement of SpamAssassin.

Before installing rspamd check a server to meet the Requirements:

- DirectAdmin Version 1.56.0 or higher
- CentOS
- Exim
- EasySpamFighter 1.17+
- exim.conf 4.5+

Full instructions on how to install rspamd will be as the following:

Code:
cd /usr/local/directadmin/custombuild
./build update
./build set eximconf yes
./build set eximconf_release 4.5
./build set blockcracking yes
./build set easy_spam_fighter yes
./build set spamd rspamd
./build set exim yes
./build exim
./build rspamd
./build exim_conf
More details:

- https://help.poralix.com/articles/how-to-install-rspamd-on-directadmin
- https://www.directadmin.com/features.php?id=2286
 

Active8

Verified User
Joined
Jul 13, 2013
Messages
232
Hi Alex, thanks for clarifying
My test server has these requirements , but i missed this build :

./build set blockcracking yes

I will try that and let you know
 

Active8

Verified User
Joined
Jul 13, 2013
Messages
232
Tried again the way you gave but still no luck
Code:
2019-05-06 19:30:09 #14016(controller) <3nxzfe>; monitored; rspamd_monitored_dns_cb: DNS query blocked on multi.uribl.com (127.0.0.1 returned), possibly due to high volume
2019-05-06 19:30:57 #14016(controller) <3nxzfe>; monitored; rspamd_monitored_dns_cb: DNS query blocked on multi.uribl.com (127.0.0.1 returned), possibly due to high volume
2019-05-06 19:31:18 #14016(controller) <1ccygw>; monitored; rspamd_monitored_propagate_error: servfail on resolving dwl.dnswl.org, disable object
2019-05-06 19:31:18 #14016(controller) <aezujf>; cfg; rspamd_worker_monitored_on_change: broadcast monitored update for 1ccygwo8byjjy64p53ed6j3sxizfgnr: dead
2019-05-06 19:31:18 #14017(normal) <aezujf>; cfg; rspamd_worker_monitored_handler: updated monitored status for 1ccygwo8byjjy64p53ed6j3sxizfgnr: dead
2019-05-06 19:31:20 #14016(controller) <3nxzfe>; monitored; rspamd_monitored_dns_cb: DNS query blocked on multi.uribl.com (127.0.0.1 returned), possibly due to high volume
2019-05-06 19:31:28 #14016(controller) <3nxzfe>; monitored; rspamd_monitored_dns_cb: DNS query blocked on multi.uribl.com (127.0.0.1 returned), possibly due to high volume
2019-05-06 19:31:28 #14016(controller) <3nxzfe>; monitored; rspamd_monitored_propagate_error: invalid return on resolving multi.uribl.com, disable object
2019-05-06 19:31:28 #14016(controller) <aezujf>; cfg; rspamd_worker_monitored_on_change: broadcast monitored update for 3nxzfegumbi67tq1kjtuupxnd493zxt: dead
2019-05-06 19:31:28 #14017(normal) <aezujf>; cfg; rspamd_worker_monitored_handler: updated monitored status for 3nxzfegumbi67tq1kjtuupxnd493zxt: dead
 

zEitEr

Super Moderator
Joined
Apr 11, 2005
Messages
13,902
Location
GMT +7.00
Run each command one by one and control output results. Probably you have errors after any of them. Post last 10-20 lines from each of the following:

Code:
./build exim


./build rspamd


./build exim_conf
 

Marwen

Verified User
Joined
Nov 7, 2003
Messages
144
Location
germany
Hey Alex. Thanks for the great plugin.

Do you already have experience with the "ALL Servers" to enter other servers there?

Thanks Mario
 

zEitEr

Super Moderator
Joined
Apr 11, 2005
Messages
13,902
Location
GMT +7.00
Hello Mario,

You're welcome. Not tested yet, so I have nothing to say about it yet. What issues do you have with it?
 

Active8

Verified User
Joined
Jul 13, 2013
Messages
232
Just figured out that spamassasin was not enabled for that user

:(
Sorry for the trouble, everything works fine, thank you Alex for the hard work
 
Last edited:

zEitEr

Super Moderator
Joined
Apr 11, 2005
Messages
13,902
Location
GMT +7.00
Thank you for your experience, that's appretiated. It's one more important step to check to on a way to make rspamd running. So we need to check and make sure AntiSpam tools are enabled on per user level in Directadmin.
 
Top