Port numbers

Assuming a default configuration, the following inbound ports are required (depending on which services you want to make publicly available). All ports are TCP, unless otherwise mentioned.

MDaemon
25, Inbound and Outbound – ESMTP
53, Outbound – DNS (note that return packets are required)
110, Inbound and Outbound – POP3 and MultiPOP
143, Inbound – IMAP4
366, Inbound and Outbound – ODMR (ATRN, alternate ESMTP port)
465, Inbound – SSL SMTP
587, Inbound – ESMTP MSA (Mail Submission Agent — Have your mail cilents deliver here rather then 25 to avoid ISP firewalls
993, Inbound – SSL IMAP4
995, Inbound and Outbound – SSL POP3
4069 UDP, Inbound and Outbound – Minger

Even if you intend on enforcing encrypted connections, the unencrypted ports should be left active as the STARTTLS command starts a connection unencrypted and later adds encryption.

WorldClient, SyncML, ActiveSync, WebDAV, and possibly more
3000, Inbound – HTTP
80, Inbound – HTTP
443, Inbound – HTTPS

If nothing else on your server listens on port 80 and 443, it is highly recommended to assign these ports to WorldClient. It is required for ActiveSync’s AutoDiscovery, and for some older ActiveSync clients to connect.

WebAdmin
1000, Inbound – WebAdmin’s webserver

BES
3101, Outbound – BES services

SpamAssassin
80, Outbound – SA-Update

SecurityPlus/Outbreak Protection
21, Outbound – FTP for virus definitions updates
80, Outbound – HTTP for virus definitions updates and Outbreak Protection

If you are using a software firewall, you should ensure that the following processes have unrestricted inbound and outbound access: MDaemon.exe, WorldClient.exe, WebAdmin.exe, MDSpamD.exe, AVUpdate.exe

Finally, note that various parts of MDaemon interact using sockets to localhost IP addresses, so if you use a software firewall, you should not block any traffic to/from 127.0.0.1. This includes SpamAssassin, WorldClient, BES and other features.

MDAV users – Upgrade to SecurityPlus immediately

Just a quick reminder in case anyone missed it, or you’re like me and like waiting until a deadline so that you always look busy…

Alt-N Technologies’ partner, Kaspersky Lab, has recently announced that it is making a change to its virus signature updating process. Consequently, customers using MDaemon Anti-Virus (MDAV) and SecurityPlus will need to update their software to the recently released Security Plus for MDaemon version 4.

This change will need to be made prior to December 31, 2008 to ensure uninterupted continue protection of your MDaemon Server’s antivirus.

Why did MDaemon just restart?

For those wondering why MDaemon unexpectedly restarted, it’s due to a SecurityPlus update.  Alt-N has a knowledgebase article discussing this behaviour.

If you prefer to avoid this situation in the future, there is an option available (also described in the KB article) to avoid automatic updates, however, be certain to monitor for updates manually as several times in the past SecurityPlus was updated due to changes in the definitions update process.