How To: Edit Webmail Session Timeouts

System administrators are able to manage webmail session timeouts at the CLI by editing the Roundcube and Horde config templates.

To Manage Session Timeouts in Roundcube

By default, Roundcube does not time out in the browser. However, session timeout settings can be added.

  1. Log in to the server at the CLI as root, either via SSH or from the terminal

  2. At the CLI, run the following to edit the Roundcube setting template–this will prevent the changes from being overwritten upon update:

    ~iworx/bin/config.pex --customize-template mail/roundcube-config.tpl --for-global
    
  3. Add the following. This will define a session timeout in minutes:

    // In Minutes
    $rcmail_config['session_lifetime'] = 10;
    
  4. Save the file and exit the template editor

To Manage Session Timeouts in Horde

In general, by default, Horde does not time out in the browser. The exception to this is that, when creating a new email, if it is not sent, that url will time out after 30 minutes.

  1. Log in to the server at the CLI as root, either via SSH or from the terminal

  2. At the CLI, run the following to edit the Horde setting template–this will prevent the changes from being overwritten upon update:

    ~iworx/bin/config.pex --customize-template mail/horde-config.tpl --for-global
    
  3. To modify the general session timeout, edit the following (This setting is 0 by default, which indicates no overall session timeout):

    $conf['session']['timeout'] = 0;
    
  4. To modify the url timeout (which relates to the page used to compose a new message), edit the following (this setting is in minutes):

    //In Minutes
    $conf['urls']['token_lifetime'] = 30; $conf['urls']['hmac_lifetime'] = 30;
    
  5. Save the file and exit the template editor