My activities New request

contact atmail support

PH: +61 (7) 5357-6605

support@atmail.com

Follow

Restrict Atmail WebAdmin To Specific IP Address

Stewart -

PROBLEM
I want to restrict who can access the Atmail WebAdmin.

ENVIRONMENT

  • On-Premise Server + WebMail Installations: Version 6.0 > Current Version
  • Webmail Only Installations: Version 6.0 > Current Version

CAUSE

If you want to restrict WebAdmin access to specified IP addresses, you can do the following. This will redirect back to the login page if the IP does not match.

RESOLUTION

  1. Open and edit your http.conf file. Add the following code.
    RewriteEngine On
    RewriteCond %{REMOTE_ADDR} ![IP-Address]
    RewriteRule ^/(.*)index.php/admin(.*) /$1index.php [R]
    Where [IP-Address] is the desired IP address.
  2. Save, exit and restart Apache.
    # /etc/init.d/httpd restart
  3. If you wish to be able to access the WebAdmin from multiple IP's do the following.
    RewriteEngine On
    RewriteCond %{REMOTE_ADDR} ![IP-Address]
    RewriteCond %{REMOTE_ADDR} ![IP-Address]
    RewriteCond %{REMOTE_ADDR} ![IP-Address]
    RewriteRule ^/(.*)index.php/admin(.*) /$1index.php [R]
Have more questions? Submit a request

Comments