Rspamd neighbours

Discussion in 'Installation/Configuration' started by Th0m, Oct 17, 2020.

  1. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    This is a short HOWTO for anyone that's trying to set up rspamd neighbours for a clustered mail setup.
    You will need 2 servers with rspamd installed, following these steps: https://www.howtoforge.com/replacing-amavisd-with-rspamd-in-ispconfig/
    Take care to add the Apache directives. I added them to the websites that I have for every host, so server1.example.com and server2.example.com had them.
    Add this to the directives aswell:
    Code:
    Header set Access-Control-Allow-Origin https://server1.example.com
    Take care to change the hostnames. For server1, it should be
    Code:
    Header set Access-Control-Allow-Origin https://server2.example.com
    , for server2 it's vice versa ;)

    After that, open /etc/rspamd/local.d/options.inc with your favourite text editor and add this to the file:
    Code:
    neighbours {
            server1 {
            host = "https://server1.example.com:443";
            path = "/rspamd/";
        }
        server2 {
            host = "https://server2.example.com:443";
            path = "/rspamd/";
        }
    }
    Do this on both servers and restart rspamd afterwards:
    Code:
    systemctl restart rspamd
    - Now go to ISPConfig -> System -> Server config -> server1.example.com -> Mail
    - Copy the rspamd password
    - Go to server config -> server2.example.com -> Mail
    - Paste the rspamd password from server1 here

    After doing this, go to server1.example.com/rspamd, log in, and see if your servers are connected! It should look like this:
    upload_2020-10-17_12-29-3.png

    IF YOU NEED HELP, PLEASE OPEN A NEW FORUM THREAD AND REFER TO THIS ONE INSTEAD OF COMMENTING HERE :)
     

Share This Page