Rspamd
Using MailMum with Rspamd is pretty straightforward and the prefered way to get started. We recommend to setup MailMum in your Rspamd configuration to start with the monitoring mode. This allows you to see which mail systems contact your server. Start to make a picture of your traffic.
Step 1: Add MailMum as RBL to Rspamd Setup
Rspamd separates the configuration into multiple files. The main configuration
file for Real Time Blackhole (RBL) lists is the rbl.conf
file. You can find
this file in the /etc/rspamd/local.d
directory. If the file does not exist,
you can create it. Add the following configuration to the rbl.conf
file:
rbls {
mailmum_in {
rbl = "<uuid>.in.mailmum.io";
checks = ["from"];
enabled = true;
}
}
Replace <uuid>
with your MailMum UUID. You can find your UUID in the MailMum
Dashboard.
In the monitoring mode you can see the requests in the MailMum Dashboard. No IP addresses or domains get any scores or are blocked. This is the default mode to start with MailMum.
Step 2: Reload Rspamd
After adding the configuration, you need to reload Rspamd to apply the changes. This is done by running the following command:
sudo /etc/init.d/rspamd reload
If you are using SystemV, you can use the following command:
sudo service rspamd reload
If you are using systemd, you can use the following command:
sudo systemctl reload rspamd
Step 3: Test the Setup
To test the configuration, you can send an email to your server from an email address using an external E-Mail Service like Google Mail or Outlook.com.
If the setup was successful, the email should be delivered to your mail servers by passing your mail filter (Rspamd) and you should see an entry in the MailMum Dashboard.
Note: If you don't have any block entries in the MailMum system, MailMum behaves like a monitoring system. It only logs the requests from your System and enhance them with additional information.
Step 3: Increase Score for your MailMum RBL
If you got familiar with the monitoring mode and or already has some bad actors to be scored or being blocked, you can increase the score for the MailMum RBL in the Rspamd configuration. You can do this by adding the following:
rbls {
mailmum_in {
rbl = "<uuid>.in.mailmum.io";
checks = ["from"];
score = 5.0;
enabled = true;
}
}
Note: The score is a floating point number. You can adjust the score to your needs. The higher the score, the more likely the mail will be blocked. We recommend starting with a score of 2.0 and increase it step by step according to the trust you get in your block listing skills. It is your responsibility to make sure you increase the score in a responsible way.