Skip to content

Sendmail

Using MailMum with Sendmail is pretty straightforward. You can use MailMum with Sendmail through RBL (Real-time Blackhole List) technology.

Step 1: Add MailMum as a DNSBL to Sendmail

All configuration for Sendmail is done in the sendmail.mc file. You can find this file in /etc/mail/ Open the file in your favorite text editor and add the following lines at the end of the file:

FEATURE(`dnsbl', `<uuid>.in.mailmum.io', `"Service unavailable; $rbl_class [$rbl_what]
blocked using in.mailmum.io"')dnl

Note: Replace <uuid> with your MailMum UUID. You can find your UUID in the MailMum Dashboard.

Optional: You can customize the message that is returned to the sender. We recommend adding some information regarding the MailMum System so the sender knows why the email was rejected and where he can get more information.

Step 2: Update the Configuration

After adding the configuration, you need to update the Sendmail configuration. You can do this by running the following command:

make -C /etc/mail

If the configuration is incorrect, you will see an error message. Please check whether the UUID in the sendmail.mc file is correct. If you can't find the error, please contact the MailMum support team.

Step 4: Reload Sendmail

After adding the configuration, you need to reload Sendmail to apply the changes. This is done by running the following command.

If you are using SystemV, you can use the following command:

sudo service sendmail reload

If you are using systemd, you can use the following command:

sudo systemctl reload sendmail

Step 5: 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 by Sendmail 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 Sendmail server and enhance them with additional information.