Some services, for example WebMail, do not start. How do I fix this?

Issue encountered

One or more services do not start, despite being set to Automatic start. The error log shows something like:

[27/Feb/2004 12:04:46] socklib.cpp: Bind to port 80 failed: (10048) Only one usage of each socket address (protocol/network address/port) is normally permitted. [27/Feb/2004 12:04:46] services.cpp: Cannot start service WEBMAIL on port 80

Cause

Only one application can run on a single port at a time. The WebMail service runs on port 80, which is the standard port for web servers. If you have a web server on your computer, eg IIS or Apache, this may be using the port.

Solution

You can either change the port the WebMail runs on, or identify what else is using the port, and set that to use another port.

Changing the port in the MailServer

Go to Configuration > Services. Select the service that is not starting, and click "Edit". Change the port to a different number.

Identifying the other server

  1. On Windows XP you can use the command netstat -a -n -o to determine the ID number of the process using this port. For Windows NT/2000, download the TCPView tool from SysInternals.
  2. Refer to the task manager to see which ID is associated with the process. The task manager is accessed by pressing ctrl + alt + del.
  3. Select the processes tab.
  4. From the top menu, choose view > select columns.
  5. Enable the PID column and click ok.
  6. Once you have identified the process, determine if this program can use a port other than the default, or consider removing the conflicting application.