Rspamd Guide

Status
Not open for further replies.

DirectAdmin Support

Administrator
Staff member
Joined
Feb 27, 2003
Messages
9,158
Hello,

We've added basic support for rspamd but will add more extended support in the future.
At the moment, you'll get the rspamd binaries, and they'll run with global configs, so no per-user, no per-domain configs.

Version: Rspamd_conf 0.1 ALPHA

Requirements:
  • Exim 4.91+
  • SpamBlocker 4.5.9+ (exim.conf)
  • EasySpamFighter 1.19+
  • CentOS 7+, or Debian 9+

Install:
Code:
cd /usr/local/directadmin/custombuild
./build update
./build version   #ensure rev 1902+

./build set spamd rspamd
./build rspamd
./build exim_conf


  1. Please note, this is in ALPHA, so testing on it has been limited thus far. USE AT YOUR OWN RISK!
  2. Only a single global config, so DA itself does not control any settings. All emails are scanned with the same rules
  3. The ESF scoring / drop / redirect rules DO still work. You will need latest pre-release binaries to get into the SA page (noting some settings no longer apply)

Configuration:
The exim configs live inside:
Code:
/etc/exim/rspamd
and the actual rspamd binary configs live here, which we've not yet touched:
Code:
/etc/rspamd

Is it working?:
If you're unsure if it's actually working, the simplest way to check, is to look for the X-Spam-Report, which will contain many "Symbol" items. Here's a sample with a one-liner manual email sent via telnet:
Code:
X-Spam-Score: 8.4 (++++++++)
X-Spam-Report: Action: add header
 Symbol: MISSING_MID(2.50)
 Symbol: RCVD_COUNT_ONE(0.00)
 Symbol: FROM_NEQ_ENVFROM(0.00)
 Symbol: MISSING_FROM(2.00)
 Symbol: SUBJECT_ENDS_QUESTION(1.00)
 Symbol: ARC_NA(0.00)
 Symbol: MIME_GOOD(-0.10)
 Symbol: MISSING_DATE(1.00)
 Symbol: RCVD_NO_TLS_LAST(0.00)
 Symbol: MISSING_TO(2.00)
 Message-ID: undef
SpamTally: Final spam score: 85
where we can see EasySpamFighter adding the 8.4 score to ESF as 84 (then +1 for no rDNS which I manually lowered to 1 for testing)

Issues:
If you find anything that needs fixing, please check for existing reports in the Rspamd forum, else create a new thread, and (just for now) refrain from tickets or emails, as chances are everyone will be hitting the same issues as they arise (avoids duplicate support issues).

Undo!/Abort!
If you immediately regret your decision to try it out and want to revert to SpamAssassin, until things are more stable, type:
Code:
./build set spamd spamassassin
./build remove_rspamd
./build remove_rspamd_conf
./build spamassassin
./build exim_conf

Notes:
There are still some compile issues with FreeBSD, if anyone is feeling adventurous :)

John
 
Minor typo in ./build rspamd:
New PCRE version is needed. Please run './build set new_pcre yes; ./build pcre; ./build set exim yes; ./build exim
The ' is opened but not closed, feel free to remove this post ;)

Regards
 
Status
Not open for further replies.
Back
Top