diff --git a/interface/web/tools/import_ispconfig.php b/interface/web/tools/import_ispconfig.php index 9a425107ea1b7221c9ab9ec705ef1c2cc4a4d000..75e59929df7eeeeb768c23175942fa2a3466029e 100644 --- a/interface/web/tools/import_ispconfig.php +++ b/interface/web/tools/import_ispconfig.php @@ -150,7 +150,7 @@ function start_domain_import($mail_domain) { if($sys_userid == 0) $error .= 'Inavlid Userid<br />'; //* Get the mail server ID - $tmp = $app->db->queryOneRecord("SELECT server_id FROM server WHERE mail_server = 1 LIMIT 0,1"); + $tmp = $app->db->queryOneRecord("SELECT server_id FROM server WHERE mail_server = 1 and mirror_server_id = 0 LIMIT 0,1"); $server_id = intval($tmp['server_id']); unset($tmp); if($server_id == 0) $server_id = 1;