Configuring IP Blocking (External Sendmail Version)
PureMessage IP blocking can be configured for an external version of sendmail. To enable IP blocking, you must add an m4 file to your sendmail installation. The required file, sockmap.m4, is included in the version of sendmail that is bundled with PureMessage. You must temporarily install PureMessage sendmail, and then copy the sockmap.m4 file to your existing sendmail installation. Follow the steps in the order they are described below.
Check Sendmail Compilation: You must ensure that your version of sendmail has been
compiled with the
SOCKETMAPoption. To check if
SOCKETMAPwas included, as the root user run:
sendmail -d0.1 -bt < /dev/null
SOCKETMAPis included, it will be displayed among the list of compile options. If, however,
SOCKETMAPis not there, you will need to recompile sendmail to enable
SOCKETMAPsupport. Before you rebuild sendmail, add the following line to the /devtools/Site/site.config.m4 file:
Install PureMessage sendmail
At the command line, as the root user, run:
pmx-setupThe PureMessage installer is launched.
- Select Install Additional Components, and press Enter .
- Under Select additional roles that should be installed, select Mail Transfer Agent.
- Select Install these roles, and press Enter .
- Select Sendmail, and then select Next Question. Ignore the sendmail configuration prompts, and continue selecting Next Question until sendmail has been installed.
- Select Back to main menu.
- Select Exit the installer.
- At the command line, as the root user, run:
Copy the m4 file to your existing sendmail installation
- Copy /opt/pmx6/sendmail/cf/feature/sockmap.m4 from the version of PureMessage sendmail that you have just installed to the corresponding directory in your pre-existing sendmail installation.
Add the following line to $PREFIX/sendmail/etc/mail/sendmail.mc.
If PureMessage is running on a different host, replace
localhostwith the hostname of the machine on which PureMessage is installed. This hostname must match the one that is specified in /opt/etc/pmx.d/blocklist.conf on the server that is running the IP Blocker service.
Uninstall PureMessage sendmail
- Select Uninstall PureMessage Components.
- Select PureMessage Sendmail, and then select Uninstall these components.
- If prompted to stop PureMessage, select Yes.
- Click Yes to confirm the removal. When removal is complete, select OK.
- Exit the installer.
- Update the configuration cache by running pmx-config --validate-cache.
- Start the PureMessage IP Blocker service by running pmx-blocker start.
Recompile sendmail with the following command:
m4 sendmail.mc > /etc/sendmail.cf
- Restart sendmail.
- At the command line, as the "pmx6" user, run pmx start to restart PureMessage.