Can I install SecurityGateway and MDaemon on the same machine?

KBA-01998

Question


Can I install SecurityGateway and MDaemon on the same machine?

Answer


It is possible to install SecurityGateway and MDaemon on the same machine. Since they use some of the same ports by default, there are some changes in configuration that need to be made.

By default, MDaemon and SecurityGateway listens on ports 25, 465 (if SSL is enabled for SMTP), and 587 (the MSA port). You will need to change MDaemon's ports so SecurityGateway can listen on them. To do so, open the MDaemon console and follow these steps:

  1. Click Setup
  2. Click Default Domain & Servers
  3. Select Ports
  4. Change the SMTP ports that SecurityGateway will need to an unused port:
    1. SMTP inbound port
    2. SMTP outbound port
    3. MSA inbound port
    4. SMTP SSL port
  5. Click OK

If you want your local users to send outgoing mail through MDaemon rather than through Security Gateway, then you will need to instruct them to configure the port their mail client will need to use in order to send mail.

This configuration would also allow you to disable MDaemon's spam filter (MDSpamD.exe), since SecurityPlus is doing the filtering for you. If you do not disable MDSpamD.exe, you will need to change the port that it listens on as well. SecurityGateway includes its own anti-spam daemon, SGSpamD.exe. While both MDSpamD and SGSpamD are based on SpamAssassin, there are differences in the rule sets that prevent them from being interchangeable, so they cannot both use the same configuration.

To disable SpamAssassin in MDaemon, open the console and follow these steps:

  1. Click Security
  2. Click Spam Filter
  3. Select Heuristics
  4. Uncheck Enable heuristic messages scoring system
  5. Click Bayesian
  6. Uncheck Enable Bayesian classification
  7. Click OK

If you prefer to instead change the port on which MDaemon's spam filter is listening:

  1. Click Security
  2. Click Spam Filter
  3. Select Spam Daemon
  4. In the box 'Optional command line options to pass to MDSpamD' enter:
    --port xxxx
    where xxxx is the port number, i.e. 7830
  5. Enter the new port number in Port at the top of that same screen
  6. Click OK

Comments


If you have SecurityPlus installed in MDaemon, you may want to consider uninstalling it and using ProtectionPlus with SecurityGateway. ProtectionPlus includes OutbreakProtection and Kaspersky Anti-Virus. It is better use those features in SecurityGateway and be able to refuse those messages there at the SMTP level, than to accept them, pass them to MDaemon and have to bounce them back from there.

last updated 1-20-2010

Related Articles


KBA-01853 How to install SecurityGateway
KBA-01876 SecurityGateway Pre-Installation Information
KBA-01887 SecurityGateway System Requirements