diff --git a/data/web/inc/ajax/transport_check.php b/data/web/inc/ajax/transport_check.php index 5183f67a..3526e81b 100644 --- a/data/web/inc/ajax/transport_check.php +++ b/data/web/inc/ajax/transport_check.php @@ -50,8 +50,8 @@ if (isset($_SESSION['mailcow_cc_role']) && $_SESSION['mailcow_cc_role'] == "admi $port = null; } else { - $port = substr($hostname_w_port, strrpos($hostname_w_port, ':') + 1); $hostname = preg_replace('/'. preg_quote(':' . $port, '/') . '$/', '', $hostname_w_port); + $port = null; } } // Try to get MX if host is not [host]