1 (edited by r.schnell 2017-09-21 21:03:25)

Topic: <SOLVED (kinda)> dual hostnames one server/IP/iRedMail instance

================ Required information ====
- iRedMail version (check /etc/iredmail-release):  0.9.7 MARIADB edition
- Linux/BSD distribution name and version: Raspbian GNU/Linux 8 (jessie)
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? : NO (OS iredadmin)
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
Running: Roundcube (with a couple of addins; haven't dug into SOGo)
Running certbot-auto with a combine certificate (reasons for this in one of the other posts)

I have two FQDNs pointed to the same email server with a combined Let's Encrypt certificate on auto update:
AAAAAA.freeddns.org
BBBBBBB.freeddns.org

https://AAAAAA.freeddns.org redirects to https://AAAAAA.freeddns.org/mail like its supposed to.  I can log in to email addresses on both AAAAAA.freeddns.org and BBBBBBB.freeddns.org without issue.  The SSL works without errors.

When I try the same thing with BBBBBBB.freeddns.org, it to successfully redirects to /mail but the SSL isn't loaded properly and I have to add an exception.

The SSL is combined to have both AAAAAA.freeddns.org and BBBBBBB.freeddns.org in it as I think there's a limitation in postfix for a single SSL certificate.

My question is this: is it even possible to host multiple FQDN/iRedMail/Roundcube on s single machine/IP?  If so how?

Thanks

----

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

2

Re: <SOLVED (kinda)> dual hostnames one server/IP/iRedMail instance

Sure you can use one SSL cert for multiple FQDNs.

When you access BBBBBBB.freeddns.org, which URL does it redirect to? Please show us the full URL (https://...).

3

Re: <SOLVED (kinda)> dual hostnames one server/IP/iRedMail instance

ZhangHuangbin wrote:

Sure you can use one SSL cert for multiple FQDNs.

When you access BBBBBBB.freeddns.org, which URL does it redirect to? Please show us the full URL (https://...).

This is AAAAA.freeddns.org: https://mythos.freeddns.org/mail/
This is BBBBBB.freeddns.org: https://917.freeddns.org/mail/

...and now it works....  grrrrrr.

I'll mark it as solved but I don't know what I did to make it work...