Author Topic: Vacation Assistent, Forward Tab, Password Tab - hMailserver  (Read 26317 times)

Offline kevinb

  • Newbie
  • *
  • Posts: 2
Re: Vacation Assistent, Forward Tab, Password Tab - hMailserver
« Reply #15 on: March 04, 2008, 12:41:27 PM »
Hey Rol, hope you're enjoying Tenerife. I'm not sure I have RC2. I'll check their site. I actually installed it a few months back so I may not. Thanks! I'll let you know how I make out.

Kev

Offline Greta

  • Newbie
  • *
  • Posts: 4
Re: Vacation Assistent, Forward Tab, Password Tab - hMailserver
« Reply #16 on: March 07, 2008, 01:00:44 PM »
Hi Roland,

Why do I have to set database connections for the hmail database in the db.inc.php?

Greta

Offline rosali

  • Hero Member
  • *****
  • Posts: 2,533
Re: Vacation Assistent, Forward Tab, Password Tab - hMailserver
« Reply #17 on: March 08, 2008, 04:39:57 AM »
e.g. for the new user sign up ...

-Roland
Regards,
Rosali
__________________
MyRoundcube Project (commercial)

Offline Greta

  • Newbie
  • *
  • Posts: 4
Re: Vacation Assistent, Forward Tab, Password Tab - hMailserver
« Reply #18 on: March 09, 2008, 05:54:43 AM »
Ok, but when you change anything in the hmail database directly you also need to restart hmail to apply this changes. To make changes to hmail you should use DCOM. (see also http://www.hmailserver.com/forum/viewtopic.php?p=35125#35125 about this).
Version 5 of hmail it is possible to do this directly into the database. Only version 5 is at this stage only an alpha version.

Greta.

Offline rosali

  • Hero Member
  • *****
  • Posts: 2,533
Re: Vacation Assistent, Forward Tab, Password Tab - hMailserver
« Reply #19 on: March 10, 2008, 04:57:11 AM »
Adding users works without re-starting hmail 4.x. I don´t use DCOM because I like to have RoundCube on a different [linux] host and not on the winbox where hmail resides.

-Roland
Regards,
Rosali
__________________
MyRoundcube Project (commercial)

Offline Greta

  • Newbie
  • *
  • Posts: 4
Re: Vacation Assistent, Forward Tab, Password Tab - hMailserver
« Reply #20 on: March 10, 2008, 06:35:25 AM »
Ok, thanks for your answer. I shall try to get this also working.

Offline torias

  • Newbie
  • *
  • Posts: 2
Re: Vacation Assistent, Forward Tab, Password Tab - hMailserver
« Reply #21 on: March 30, 2008, 07:29:23 PM »
Quote from: ZabbensX
In the fwd.inc and the away.inc you have to set the adminpassword of the hmailserver,
and the host where hmailserver is running, mostly localhost...
The setting have to be done twice in each file.

Well ... NO! The COM-Interface allows to change these values with normal user-rights, just change the COM-Init from
Code: [Select]
 $hCOMApp->Authenticate("Administrator", $admpasshmail);
to this
Code: [Select]

  $hCOMApp->Authenticate($_SESSION['username'], decrypt_passwd($_SESSION['password']));
This will use the logged on users credentials as it should be.

You could also optimize more by using this
Code: [Select]
 $obAccount = $hCOMApp->Authenticate($_SESSION['username'], decrypt_passwd($_SESSION['password']));
and drop the later $obAccount = .... and all that $domain and $obDomain stuff since you're not using it either

And last but not least for full COM-usage, change the rcmail_save_passwd function
Code: [Select]
function rcmail_save_passwd($curpasswd, $newpasswd)
{
 global $CONFIG, $_SESSION, $DB;

  //COM Objekt erstellen
  $hCOMApp = new COM("hMailServer.Application");
  $obAccount = $hCOMApp->Authenticate($_SESSION['username'], decrypt_passwd($_SESSION['password']));
   
  if ($obAccount->ValidatePassword($curpasswd)) {
    $obAccount->Password = $newpasswd;
    $obAccount->Save();
    $_SESSION['password'] = encrypt_passwd($newpasswd);
    return(1);
  }
}

Offline SimonSez07

  • Newbie
  • *
  • Posts: 7
Vacation Assistent, Forward Tab, Password Tab - hMailserver
« Reply #22 on: June 06, 2008, 07:03:35 PM »
thanks for your updates torias

EDIT: i have updated ZabbensX's patched files so they work properly with the latest stable roundcube (0.1.1) and i have included torias's method of using com.

you can grab my patch here: http://www.sturmer.org/download/1437/hmail-roundcube.zip

Edit (2008.08.30): updated Link
Edit (2009.06.21): added new version for RC 0.2.2 (see later post)
« Last Edit: June 22, 2009, 12:36:48 AM by SimonSez07 »

cjs

  • Guest
Vacation Assistent, Forward Tab, Password Tab - hMailserver
« Reply #23 on: July 10, 2008, 10:16:51 AM »
Ok, thank you very much!

Offline rosali

  • Hero Member
  • *****
  • Posts: 2,533
Regards,
Rosali
__________________
MyRoundcube Project (commercial)

Offline webneo82

  • Newbie
  • *
  • Posts: 4
umlauts passwd function
« Reply #25 on: August 04, 2008, 12:31:33 PM »
hello,

I have found a bug in passwd function:

If the user has a password with umlauts (like ä,ö,ü) the passwd form can't handle this and response with error saving new password.

Could anybody solve that?

Many thanks!

Offline desiredforsome

  • Newbie
  • *
  • Posts: 1
Vacation Assistent, Forward Tab, Password Tab - hMailserver
« Reply #26 on: February 10, 2009, 09:48:57 PM »
I cannot get any of this working, I need to get these tabs working

Im running MYSQL, what do i change to make this work as well as,,, if i have to enable COM what file and where is it usualy located to edit? Im new to this hackign thing.

Offline SimonSez07

  • Newbie
  • *
  • Posts: 7
New Version
« Reply #27 on: June 22, 2009, 12:41:18 AM »
Here is the plugin that has been modified for RoundCube v0.2.2.

http://www.sturmer.org/download/1478/rc-hmail_(0.2.2).zip

@webneo82: I have not looked into this bug, but I will see if anything can be done.

@desiredforsome: there is many things that can be wrong with your installation including com access not working. see the hmailserver docs for enabling com and permissions related to iis.