diff --git a/data/web/inc/relay_check.php b/data/web/inc/ajax/relay_check.php
similarity index 100%
rename from data/web/inc/relay_check.php
rename to data/web/inc/ajax/relay_check.php
diff --git a/data/web/inc/header.inc.php b/data/web/inc/header.inc.php
index d6d29c59..cedd07ca 100644
--- a/data/web/inc/header.inc.php
+++ b/data/web/inc/header.inc.php
@@ -78,11 +78,6 @@
>= $lang['header']['mailboxes']; ?>
- >= $lang['header']['diagnostics']; ?>
-
>= $lang['header']['user_settings']; ?>
diff --git a/data/web/js/admin.js b/data/web/js/admin.js
index c368cbe7..997e76a3 100644
--- a/data/web/js/admin.js
+++ b/data/web/js/admin.js
@@ -466,7 +466,7 @@ jQuery(function($){
$(this).html(' ');
$.ajax({
type: 'GET',
- url: 'inc/relay_check.php',
+ url: 'inc/ajax/relay_check.php',
dataType: 'text',
data: $('#test_relayhost_form').serialize(),
complete: function (data) {
diff --git a/data/web/mailbox.php b/data/web/mailbox.php
index 149a59d3..30c3ecdb 100644
--- a/data/web/mailbox.php
+++ b/data/web/mailbox.php
@@ -39,12 +39,16 @@ $_SESSION['return_to'] = $_SERVER['REQUEST_URI'];
=$lang['mailbox']['toggle_all'];?>
=$lang['mailbox']['quick_actions'];?>
- =$lang['mailbox']['add_domain'];?>
+ if($_SESSION['mailcow_cc_role'] == "admin"): ?>
+ =$lang['mailbox']['add_domain'];?>
+ endif; ?>