1

Topic: Changing default http and https port for IRedMail 0.9.4

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.94
- Linux/BSD distribution name and version: Ubuntu 1404
- Store mail accounts in which backend MySQL:
- Web server (Apache 2.4.7):
- Manage mail accounts with iRedAdmin
-
====

Hello guys I am using static NAT with one public IP.My web server is already bound to x.x.x.x:80 and x.x.x.x:443 so i cannot
use 443 and 80 for my new IredMail server. I have read some suggestions on using a proxy but i don't have this option. I would like to change the default port 80 and 443 to say 800 and 900 respectively. How can i do this?

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Changing default http and https port for IRedMail 0.9.4

You can update files under /etc/apache2/sites-enabled/ to use different ports. for example:

file /etc/apache2/sites-enabled/000-default.conf contains:

<VirtualHost *:80>

it means this web host will be served on port 80. You can change it to another port.

3

Re: Changing default http and https port for IRedMail 0.9.4

ZhangHuangbin wrote:

You can update files under etc/apache2/sites-enabled/ to use different ports. for example:

file /etc/apache2/sites-enabled/000-default.conf contains:

<VirtualHost *:80>

it means this web host will be served on port 80. You can change it to another port.


Hi Zhang
Thanks for the reply. i had already tried 000-default.conf as well as create virtual hosts in /apache2/sites-enabled it didn't work. still responds to port 80. am not sure if the 000-default.conf is used in 0.94 Iredmail since the document root is /var/www while iredmail and roundcube are in /opt/www.
Anyway i managed to solve the problem by editing ports.conf, default-ssl.conf and config-enabled roundcube mail

Thanks Zhang