go into the surgemail admin and type g_server_name in the setting search box, you can then click on that setting for documentation. This setting basically allows you to map a web URL to a surgemail domain.