Can I install SecurityGateway and MDaemon on the same machine?
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 the 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:
- Click Setup
- Click Server Settings
- Select Ports
- Change the SMTP ports that SecurityGateway will need to an unused port:
- SMTP inbound port
- SMTP outbound port
- MSA inbound port
- SMTP SSL port
- 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:
- Click Security
- Click Spam Filter from the Security menu
- Select Spam Filter in the Spam Filter window
- Uncheck Enable Spam Filter
- Click Bayesian Classification
- Uncheck Enable Bayesian classification
- Click OK
If you prefer to instead change the port on which MDaemon's spam filter is listening:
- Click Security
- Click Spam Filter
- Select Spam Daemon (MDSpamD)
- Under the MDSpamD Configuration there is a text box to enter the running port for MDSpamD.exe.
- Enter the new port number in Port at the top of that same screen.
- Click OK
Additional 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.