honestlai
What I did in my case is very simple, but effective. I’ve just placed the following php code
into the index.php
(/opt/mailcow-dockerized/data/web) to restrict GUI access just to my home IP address (which uses DDNS:
<?php
$home = gethostbyname("my.dnydns.net.");
$ip_allowed = array("$home");
if(!in_array($_SERVER['REMOTE_ADDR'], $ip_allowed))
{
header("HTTP/1.1 403");
include('403.php');
exit;
}
?>
That’s it. Nothing else is restricted by this. Just the GUI.
Cheers…