Topic: iRedMail with multiple (non mail-related) domains
==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.6 MYSQL edition.
- Linux/BSD distribution name and version: Ubuntu 16.04 Xenial
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): nginx
- Manage mail accounts with iRedAdmin-Pro? No
- Related log if you're reporting an issue:
====
Hello.
I just installed iRedMail, and it seems to work just fine. However, I want it only working at mail.mydomain.com, and currently nginx is redirecting all requests from all domains resolving to my ip to https://domain/mail/ .. It seems iRedMail nginx configuration is taking over everything.
From what I see all nginx related config for iRedMail is located here: /etc/nginx/conf.d/00-default.conf, and the server name is defined as such: server_name _;
I thought that renaming it to
server_name mail.mydomain.com;
would make it work, but no...
Finally, note that adding sites to /etc/nginx/sites-available and /etc/nginx/sites-enabled does not make any difference neither.
Anyone can help me on this?
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.