-
Notifications
You must be signed in to change notification settings - Fork 6
How to setup? #1
Comments
PyzorI think your problem is that nothing reads your There are two settings for the
If you just put the empty block You will need to start pyzorsocket yourself, rspamd can't do this for you. I use the following systemd service:
You will need to change the user/group, unless you create a That should take care of Pyzor. RazorThe Razor plugin you can either install manually or with a Debian package. To install it manually, you'll have to install the razorsocket systemd service and the razor.lua rspamd module. The service files are To configure it in rspamd (assuming you don't change the default settings for razorsocket and razor.lua), just put If you'd like, you can install it from a Debian package instead. Either build the package yourself (all the necessary metadata is in the repository) or use the one I have built: https://cgt.name/files/rspamd-razor_1_all.deb (for Debian Stretch). The package installs the systemd service,
Of course, this last part is not necessary if you manually install Hope this helps. Feel free to ask if you have more questions. |
Hi @cgt, wow that's a great response, thank you very much for taking the time. I followed the instructions and installed both plugins successfully (and Razor manually). So nice to have!
Both up & running without errors. Pyzor (anonymized to example.com): Razor (also anonymized to example.com): Everywhere it's score/weight 0.00. In the lua plugins the symbols are already specified. Do I need to specify those symbol weights somewhere else too? |
Try setting scores for the symbols in
(Doesn't have to be in a You can change the scores if you like. Keep in mind that the Pyzor score is dynamic. The weight you set will be multiplied by a score set by the script depending on the number of spam/ham reports in Pyzor. You can see the algorithm used here: https://github.com/cgt/rspamd-plugins/blob/master/pyzor/pyzor.lua#L43 I didn't put much thought into the algorithm, I just picked some numbers. |
Razor and Pyzor are working great now. |
How exactly do you install the pyzorsocket? Thanks! |
@echodreamz You install it like any other Python program. I have it installed in a Python virtualenv in /opt/pyzorsocket. In case you are not familiar with Python/virtualenv, the process is roughly this: # python3 -m venv /opt/pyzorsocket
# . /opt/pyzorsocket/bin/activate Then # pip install wheel
# pip install .
# deactivate Now you should have pyzorsocket installed at |
Thank you! I was able to figure it out, was just having a bit of a dumb moment, was a hella day that day was lol. |
First of all, thank you for the Razor and Pyzor plugins.
I started with Pyzor. I installed pyzor with pip3 and I installed also pyzorsocket.
I copied pyzor.lua to
/usr/share/rspamd/lua
(I hope that's the right location, other plugins like for example antivirus.lua, dcc.lua and whitelist.lua are there too).I reloaded rspamd and checked the log file. I discovered this error:
It's my first time working with external plugins. I searched the documentation but couldn't find any clear steps on how to install and how to configure.
Wha's the next step I have to take?
I have tried to create
/etc/rspamd/local.d/pyzor.conf
withenabled = true;
in it, but nothing. I also tried to includepyzor
infilters = "chartable,dkim,spf,surbl,regexp,fuzzy_check";
(at options.inc), but nothing.Thanks!
The text was updated successfully, but these errors were encountered: