禁用NTP自动同步,现在一直没有出现问题。

附一下VMware Tools安装步骤:

一、安装VMWare Tools:
  应该点击 VM  选择 Install VMWARE TOOLS, 然后选择Install
  mount /dev/cdrom /mnt
  cp /mnt/vmwareTools-*******.tar.gz /tmp
  umount /mnt
  解压并安装:
  cd /tmp
  tar zxf vmwareTools-*******.tar.gz
  cd vmware-tools-distrib
  ./vmware-install.pl    注 ub系统的话 执行命令是 sudo ./vmware-install.pl
    vmware-config-tools.pl 按回车,按提示配置即可,正常情况下安装过程中会闪

二、修改配置:
    这里有两种办法可以修改VMWare tool guest daemon的运行参数:  
  1.直接修改虚拟机配置文件,此方法比较简单,正用
     开启时间同步 方法:
      关闭虚拟机,然后在在虚拟机的.vmx文件中找到:
      tools.syncTime = “FALSE”
      将FALSE改为TRUE,再启动虚拟机
      此时系统时间就和系统本地时间日期同步了
      默认VMWare Tool后台程序每三分钟与宿主主机同步更新一次时间。
   2.使用命令行方式(此方法未用不知道可以用不)
    Unix下VMWare Tool的命令行程序为vmware-guestd,默认目录为/usr/sbin/vmware-guestd。这是一个通过脚本自动运行的后台程序,可以使用这个程序更改运行参数。
     语法为:
     –cmd “vmx.set_option ”
     在UNIX里就是vmware-guestd,(在Windows系统下为VMwareService.exe,也可以执行该命令行方式).
      是设置选项,这里使用synctime,详细信息可以参考官方说明。
      旧参数,新参数,0为FALSE,1为TRUE。通过设定这两个参数就可以更改指定选项的内容了。
      要启用VMWare tool的时间同步就可以运行:
      ./vmware-guestd --cmd "vmx.set_option synctime 0 1"
        注释:
        <daemon> --cmd "vmx.set_option synctime <old_val> <new_val>"

CentOS自身是不是自动启用NTP同步时间,这样和VMware Tools时间同步,不是有冲突!
如何停止NTP自动同步?

我安装完VMware Tools问题依旧,Dovecot日志错误记录也一样,如何解决?

Dovecot.log日志中的最后一处错误:
dovecot: Jul 18 09:47:48 Fatal: Time just moved backwards by 13 seconds. This might cause a lot of problems, so I'll just kill myself now. http://wiki.dovecot.org/TimeMovedBackwards
应该是VMware的时间同步问题,怎么解决呢?我百度查一查

谢谢各位!我马上查查。

:handshake ,大家共同努力,发扬光大!

通过Foxmail收取邮件时,iRedmail的Pop3服务异常终止?
同时登陆RoundCube出现无法连接数据库的错误。
重启服务器后可以恢复正常,但出现过好几次这种故障。
大家有没有遇到过此故障,帮忙分析共同解决,谢谢!:handshake
平台:VMware Server
NOS:CenterOS 5.3

[ 本帖最后由 byteboy 于 2009-7-23 20:52 编辑 ]

自己找到了一些代码,试验成功,与大家分享:
------------------------------------------------------------------------
<div id="login-form">
<div class="boxcontent">

<form name="form" action="http://<RoundCude URL>" method="post">
<input type="hidden" name="_action" value="login" />
<label for="rcmloginuser">用户名</label>
</td>
<td><input name="_user" id="rcmloginuser" size="30" autocomplete="off" value="" type="text" /></td>
</tr>
<tr><td class="title"><label for="rcmloginpwd">密码</label>
</td>
<td><input name="_pass" id="rcmloginpwd" size="30" autocomplete="off" type="password" /></td>
</tr>
</tbody>
</table>

<span style="text-align:center;">
<input name="submit" type="submit" class="button mainaction" value="登录" />
</span>
<p style="text-align:center;"> </p>
</form>
</div>
</div>

没人搞过吗?那位大侠分享一下经验,:handshake

好复杂呀!有实例配置吗?
本人刚刚接触,不太懂,谢谢!

附上Index.php代码:
// include environment
require_once 'program/include/iniset.php';

// init application and start session with requested task
$RCMAIL = rcmail::get_instance();

// init output class
$OUTPUT = !empty($_REQUEST['_remote']) ? $RCMAIL->init_json() : $RCMAIL->load_gui(!empty($_REQUEST['_framed']));

// set output buffering
if ($RCMAIL->action != 'get' && $RCMAIL->action != 'viewsource') {
  // use gzip compression if supported
  if (function_exists('ob_gzhandler')
      && !ini_get('zlib.output_compression')
      && ini_get('output_handler') != 'ob_gzhandler') {
    ob_start('ob_gzhandler');
  }
  else {
    ob_start();
  }
}

// check if config files had errors
if ($err_str = $RCMAIL->config->get_error()) {
  raise_error(array(
    'code' => 601,
    'type' => 'php',
    'message' => $err_str), false, true);
}

// check DB connections and exit on failure
if ($err_str = $DB->is_error()) {
  raise_error(array(
    'code' => 603,
    'type' => 'db',
    'message' => $err_str), FALSE, TRUE);
}

// error steps
if ($RCMAIL->action=='error' && !empty($_GET['_code'])) {
  raise_error(array('code' => hexdec($_GET['_code'])), FALSE, TRUE);
}

// try to log in
if ($RCMAIL->action=='login' && $RCMAIL->task=='mail') {
  $host = $RCMAIL->autoselect_host();
 
  // check if client supports cookies
  if (empty($_COOKIE)) {
    $OUTPUT->show_message("cookiesdisabled", 'warning');
  }
  else if ($_SESSION['temp'] && !empty($_POST['_user']) && !empty($_POST['_pass']) &&
           $RCMAIL->login(trim(get_input_value('_user', RCUBE_INPUT_POST), ' '),
              get_input_value('_pass', RCUBE_INPUT_POST, true, 'ISO-8859-1'), $host)) {
    // create new session ID
    unset($_SESSION['temp']);
    rcube_sess_regenerate_id();

    // send auth cookie if necessary
    $RCMAIL->authenticate_session();

    // log successful login
    if ($RCMAIL->config->get('log_logins')) {
      write_log('userlogins', sprintf('Successful login for %s (id %d) from %s',
        $RCMAIL->user->get_username(),
        $RCMAIL->user->ID,
        $_SERVER['REMOTE_ADDR']));
    }

    // send redirect
    $OUTPUT->redirect();
  }
  else {
    $OUTPUT->show_message($IMAP->error_code < -1 ? 'imaperror' : 'loginfailed', 'warning');
    $RCMAIL->kill_session();
  }
}

// end session
else if (($RCMAIL->task=='logout' || $RCMAIL->action=='logout') && isset($_SESSION['user_id'])) {
  $OUTPUT->show_message('loggedout');
  $RCMAIL->logout_actions();
  $RCMAIL->kill_session();
}

// check session and auth cookie
else if ($RCMAIL->action != 'login' && $_SESSION['user_id'] && $RCMAIL->action != 'send') {
  if (!$RCMAIL->authenticate_session()) {
    $OUTPUT->show_message('sessionerror', 'error');
    $RCMAIL->kill_session();
  }
}


// check client X-header to verify request origin
if ($OUTPUT->ajax_call) {
  if (!$RCMAIL->config->get('devel_mode') && !rc_request_header('X-RoundCube-Referer')) {
    header('HTTP/1.1 404 Not Found');
    die("Invalid Request");
  }
}


// not logged in -> show login page
if (empty($RCMAIL->user->ID)) {
 
  if ($OUTPUT->ajax_call)
    $OUTPUT->redirect(array(), 2000);
 
  // check if installer is still active
  if ($RCMAIL->config->get('enable_installer') && is_readable('./installer/index.php')) {
    $OUTPUT->add_footer(html::div(array('style' => "background:#ef9398; border:2px solid #dc5757; padding:0.5em; margin:2em auto; width:50em"),
      html::tag('h2', array('style' => "margin-top:0.2em"), "Installer script is still accessible") .
      html::p(null, "The install script of your RoundCube installation is still stored in its default location!") .
      html::p(null, "Please <b>remove</b> the whole <tt>installer</tt> folder from the RoundCube directory because .
        these files may expose sensitive configuration data like server passwords and encryption keys
        to the public. Make sure you cannot access the <a href=\"./installer/\">installer script</a> from your browser.")
      )
    );
  }
 
  $OUTPUT->set_env('task', 'login');
  $OUTPUT->send('login');
}


// handle keep-alive signal
if ($RCMAIL->action == 'keep-alive') {
  $OUTPUT->reset();
  $OUTPUT->send();
}
// save preference value
else if ($RCMAIL->action == 'save-pref') {
  $RCMAIL->user->save_prefs(array(get_input_value('_name', RCUBE_INPUT_POST) => get_input_value('_value', RCUBE_INPUT_POST)));
  $OUTPUT->reset();
  $OUTPUT->send();
}


// map task/action to a certain include file
$action_map = array(
  'mail' => array(
    'preview' => 'show.inc',
    'print'   => 'show.inc',
    'moveto'  => 'move_del.inc',
    'delete'  => 'move_del.inc',
    'send'    => 'sendmail.inc',
    'expunge' => 'folders.inc',
    'purge'   => 'folders.inc',
    'remove-attachment'  => 'attachments.inc',
    'display-attachment' => 'attachments.inc',
    'upload' => 'attachments.inc',
  ),
 
  'addressbook' => array(
    'add' => 'edit.inc',
  ),
 
  'settings' => array(
    'folders'       => 'manage_folders.inc',
    'create-folder' => 'manage_folders.inc',
    'rename-folder' => 'manage_folders.inc',
    'delete-folder' => 'manage_folders.inc',
    'subscribe'     => 'manage_folders.inc',
    'unsubscribe'   => 'manage_folders.inc',
    'add-identity'  => 'edit_identity.inc',
  )
);

// include task specific functions
include_once 'program/steps/'.$RCMAIL->task.'/func.inc';

// allow 5 "redirects" to another action
$redirects = 0; $incstep = null;
while ($redirects < 5) {
  $stepfile = !empty($action_map[$RCMAIL->task][$RCMAIL->action]) ?
    $action_map[$RCMAIL->task][$RCMAIL->action] : strtr($RCMAIL->action, '-', '_') . '.inc';
   
  // try to include the step file
  if (is_file(($incfile = 'program/steps/'.$RCMAIL->task.'/'.$stepfile))) {
    include($incfile);
    $redirects++;
  }
  else {
    break;
  }
}


// parse main template (default)
$OUTPUT->send($RCMAIL->task);


// if we arrive here, something went wrong
raise_error(array(
  'code' => 404,
  'type' => 'php',
  'line' => __LINE__,
  'file' => __FILE__,
  'message' => "Invalid request"), true, true);
                     
?>

RoundCude目录下有个index.php,看不懂:(

就是4楼的意思,做一个登陆框,提交直接登录到RoundCube邮箱中。
急呀!请斑竹帮帮忙!!!:L

希望有经验的人提供一下代码?
万分感谢!!!

iRedMail已部署完,如何在其他Web服务器主页上添加RoundCube Web邮件的登陆功能?
谢谢!

我很喜欢开源项目,有生命力!