PDA

View Full Version : mailuser access


sirmee2001
10th January 2006, 11:35
I am having problems accessing mailuser from outside my network. Everything works OK within my LAN. When I connect to www.myweb.com:81/mailuser I see a connection being made to my local (internal) address and then the connection times out. Where should I change the IP address in order to get rid of this problem. Help!

till
10th January 2006, 11:46
Have you forwarded port 81 from your router to your server? is www.myweb.com an officially registered domain that points to your external IP adress?

sirmee2001
10th January 2006, 13:49
Thanks. I think I forwarded port 81. I will check when I get home.

sirmee2001
10th January 2006, 19:14
Port 81 is forwarded. Everything works including webmail. The only problem is access to the mailuser login page where users can change their passwords.

sirmee2001
10th January 2006, 19:17
My registered domain is igorg.hopto.org

till
10th January 2006, 21:46
If the domain igorg.hopto.org points to your external IP of your router and you forwarded port 81 to your internal server IP, you should be able to login. If this does not work, ask your ISP if port 81 is blocked.

falko
10th January 2006, 22:34
When I try to access http://igorg.hopto.org:81/mailuser the browser tells me that it tries to load something from 192.168.2.114 which cannot work because this is a local IP address from your network.

I guess you have 192.168.2.114 in /home/admispconfig/ispconfig/lib/config.inc.php. Try to replace it with igorg.hopto.org.

sirmee2001
10th January 2006, 22:56
Thanks for your replies. I don't have that local address (192.168.2.114) anywhere in the file config.inc.php. The only place that I know of where I do have that IP is in "Server settings" where I also have the domain "igorg.hopto.org".

sirmee2001
10th January 2006, 23:01
Port 81 is not blocked because I am able to log in to my email accounts and check mail. The only problem is logging in to mailuser to change user passwords. I would like my users to be able to change their passwords. Besides that I am really happy with the whole set up thanks to all those who helped prepare the "perfect setup - Debian Sarge 3.1.".

falko
10th January 2006, 23:09
I know that port 81 isn't blocked because I can access the ISPConfg login page.

Can you post your /home/admispconfig/ispconfig/lib/config.inc.php here? Please make sure to remove your MySQL details when you post it here.

sirmee2001
11th January 2006, 00:01
if(get_cfg_var('register_globals') != 'On') {

foreach($HTTP_GET_VARS as $getkey => $getval) {
$$getkey = $getval;
}
unset($getkey);
unset($getval);

foreach($HTTP_POST_VARS as $postkey => $postval) {
$$postkey = $postval;
}
unset($postkey);
unset($postval);

foreach($HTTP_COOKIE_VARS as $cookiekey => $cookieval) {
$$cookiekey = $cookieval;
}
unset($cookiekey);
unset($cookieval);
}

$go_info = array();

$s = $HTTP_GET_VARS["s"];
if(isset($HTTP_POST_VARS["s"])) $s = $HTTP_POST_VARS["s"];
$s = addslashes($s);
$session = "s=$s";
$set_header = 1;
@session_start();

/**********************************************
* System Settings
**********************************************/

$go_info["server"]["dir_trenner"] = "/";
$go_info["server"]["server_root"] = "/home/admispconfig/ispconfig";
$go_info["server"]["server_url"] = "http://igorg.hopto.org:81";
$go_info["server"]["include_root"] = $go_info["server"]["server_root"] . $go_info["server"]["dir_trenner"] ."lib";
$go_info["server"]["classes_root"] = $go_info["server"]["include_root"] . $go_info["server"]["dir_trenner"] ."classes";
$go_info["server"]["temp_dir"] = $go_info["server"]["server_root"] . $go_info["server"]["dir_trenner"] ."temp";
$go_info["server"]["files_dir"] = $go_info["server"]["server_root"] . $go_info["server"]["dir_trenner"] ."files";
$go_info["server"]["backup_dir"] = $go_info["server"]["server_root"] . $go_info["server"]["dir_trenner"] ."backup";
$go_info["server"]["version"] = "2.1.2";
$go_info["server"]["os"] = "linux";
$go_info["server"]["ort"] = "local";
$go_info["server"]["banner"] = "0";
$go_info["server"]["db_host"] = "localhost";
$go_info["server"]["db_name"] = "";
$go_info["server"]["db_user"] = "";
$go_info["server"]["db_password"] = "";
$go_info["server"]["db_type"] = "mysql";
$go_info["server"]["mail_server"] = "";
$go_info["server"]["mail_user"] = "";
$go_info["server"]["mail_password"] = "";
$go_info["server"]["smtp_server"] = "localhost";
$go_info["server"]["mode"] = "";
$go_info["server"]["lang"] = "en";

$go_info["server"]["postfix_config"] = 1; // 1 = SENDMAIL-STYLE, 2 = POSTFIX-STYLE
$go_info["server"]["smtp_restart"] = 1; // 1 = stop/start, 2 = restart
$go_info["server"]["network_config"] = 0; // 0 = none, 1 = automatic

/**********************************************
* Tools Settings
**********************************************/

$go_info["tools"]["zip"] = $go_info["server"]["server_root"] . $go_info["server"]["dir_trenner"] ."tools".$go_info["server"]["dir_trenner"]."zip".$go_info["server"]["dir_trenner"]."zip"; // nicht gzip !!
$go_info["tools"]["unzip"] = $go_info["server"]["server_root"] . $go_info["server"]["dir_trenner"] ."tools".$go_info["server"]["dir_trenner"]."unzip".$go_info["server"]["dir_trenner"]."unzip";
$go_info["tools"]["imagemagick"]["mogrify"] = "mogrify.exe";

/**********************************************
* Themes Settings
**********************************************/

// Themes Section
$go_info["theme"]["sitename"] = "ISPConfig";
$go_info["theme"]["page"]["box_color"] = "E4E4E4"; // z.B. E4E4E4 , angaben ohne #
$go_info["theme"]["page"]["nav_color"] = "E0E0E0"; // z.B. 025CCA , angaben ohne #
// Die Logo-Datei muss im Verzeichnis /home/admispconfig/ispconfig/web/design/default liegen!
$go_info["theme"]["page"]["logo"] = ""; // z.B. meinlogo.gif

/**********************************************
* Logging
**********************************************/

$go_info["server"]["log_level"] = 0; // 0 = Debug, 1 = Info, 2 = Warning, 3 = Failure
$go_info["server"]["log_file"] = $go_info["server"]["server_root"] . $go_info["server"]["dir_trenner"] ."ispconfig.log"; //Logdatei
if(is_file("/home/admispconfig/ispconfig/adminmail.txt")){
$go_info["server"]["log_mail"] = trim(shell_exec("cat /home/admispconfig/ispconfig/adminmail.txt")); // Log Emailadresse
} else {
$go_info["server"]["log_mail"] = "root@localhost";
}
$go_info["server"]["log_device"] = "FILE"; // FILE, SYSTEM, MAIL

/**********************************************
* Demo Mode Settings
**********************************************/

$go_info["demo"]["web_path"] = "";
?>
Here is the file. I hope I did it the right way.

falko
11th January 2006, 00:44
Looks ok. Do you have 192.168.2.114 somewhere in /root/ispconfig/httpd/conf/httpd.conf? Because http://igorg.hopto.org:81/mailuser/ works, but http://igorg.hopto.org:81/mailuser doesn't.

sirmee2001
11th January 2006, 01:11
It works. :D Thanks a lot. The address was in that file. I changed it and everything is OK now.