1

Topic: How can I change the SSL port for admin access ?

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.4.2 MARIADB edition
- Deployed with iRedMail Easy or the downloadable installer? downloadable installer
- Linux/BSD distribution name and version: Ubuntu 18.04
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

Hello,

I want to change the SSL port for iredadmin but still want SSL for roundcube to be 443.
So for example:

Roundcube:
https://domain.com/mail

Admin
https://domain.com:4432/iredadmin

How can I do that?

Thanks,
Chandan.

----

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

2

Re: How can I change the SSL port for admin access ?

Didn't try it, but this should work.

Create new config file in nginx
- /etc/nginx/sites-enabled/<yourname>.conf
- put following code into it:

# HTTPS
server {
    listen 4443 ssl http2;
    listen [::]:4443 ssl http2;
    server_name _;

    root /var/www/html;
    index index.php index.html;

    include /etc/nginx/templates/misc.tmpl;
    include /etc/nginx/templates/ssl.tmpl;
    include /etc/nginx/templates/iredadmin.tmpl;                            
}

- you can change the port number

To disable access to iRedAdmin per https://<servername>/iredadmin/
- delete/comment line

include /etc/nginx/templates/iredadmin.tmpl;

in file /etc/nginx/sites-enabled/00-default-ssl.conf