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

zEitEr

Super Moderator
Joined
Apr 11, 2005
Messages
15,143
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.
 
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:
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.
 
hmm nothing in the webgui, in the email address i dont see anything about a scan for spam
 
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
 
weired email header shows this:

Code:
Message-ID: <[email protected]>
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: [email protected]
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:
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
 
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
 
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
 
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
 
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
 
Hey Alex. Thanks for the great plugin.

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

Thanks Mario
 
Hello Mario,

You're welcome. Not tested yet, so I have nothing to say about it yet. What issues do you have with it?
 
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:
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.
 
Back
Top