Topic: Lockdown access to web interfaces
==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.5-1
- Linux/BSD distribution name and version: CentOS 7
- 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:
====
I would like to lockdown the access to all available iRedmail web interfaces only to authorized IP addresses instead of making them publicly available at all times... I am talking about the following URLS (and anything else that I may have missed):
https://server.mydomain.com (redirects to /mail)
https://server.mydomain.com/mail
https://server.mydomain.com/sogo
https://server.mydomain.com/iredadmin
What is the best way to accomplish the above? Please let me know what exact settings need to be tweaked.
When using Apache I know one simple method is to place a .htaccess file in the root of each virtual directories to control the access (may not be the best method but it should do the trick), but with Nginx I am little lost as to how to do it.
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.