How to change the WebPort for NoSpamProxy

The Web Port is the port that the NoSpamProxy Command Center connects to when accessing the individual roles. Furthermore, the roles connect via the configured port and add 1. If the WebPort is configured to 6060, the services connect via 6061.

WARNING: Only change this port if absolutely necessary. In any case, read this article in its entirety.

To change the WebPort, proceed as follows:

  1. Stop all NoSpamProxy services.
  2. Go to C:\ProgramData\Net at Work Mail Gateway\Configuration\.

    NOTE: If you also use the Web Portal, go to %Program Files%\Net at Work Mail Gateway\enQsig Webportal\App_Data\.

  3. Locate the two configuration files intranet role.config and gateway role.config. In these files you make the appropriate settings.
  4. Look for the line that begins with the following characters:
    <netatwork.nospamproxy.webservices.
  5. Add the following attribute there:
    port="NewPortValue"

    NOTE: The serverCertificateThumbprint attribute is different on each NoSpamProxy server.

  6. Change the URL reservation via netssh. Please use HTTPSYSMANAGER from http://httpsysmanager.codeplex.com/. Alternatively, enter the following command via the command line:
    netsh http add urlacl url=http://+:8060/NoSpamProxy/ sddl=D:(A;;GX;;;;LS)(A;;GX;;;;NS)
    .
  7. Now restart all services.
  8. Right-click in the NoSpamProxy Command Center NoSpamProxy and then click Change server.
  9. Adjust the port in this dialog.
  10. Go to Configuration > NoSpamProxy components and recreate the role connections.