Author Topic: hMailServer password change  (Read 7587 times)

Offline tarunmathur

  • Newbie
  • *
  • Posts: 5
hMailServer password change
« on: February 03, 2020, 09:06:39 AM »
Hi,
I am using hMailserver along with roundcube, its working fine but the users are unable to change the password from their login. Is there any way that the users can change the password from their inbox.

Thanks

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,845
Re: hMailServer password change
« Reply #1 on: February 03, 2020, 12:45:36 PM »
Have a look at the password plugin that ships with Roundcube. It has a driver for hMail.
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more…

Offline tarunmathur

  • Newbie
  • *
  • Posts: 5
Re: hMailServer password change
« Reply #2 on: February 05, 2020, 05:45:18 PM »
Thanks for your reply, eveything is good, the password plugin is enabled and its showing the password change option.

But when finally i give the current password and the new password and as soon as I hit the "SAVE" button, it transfer to blank page. Please tell me what wrong might I have done or what can be the possible way to rectify it.

Thanks

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,845
Re: hMailServer password change
« Reply #3 on: February 06, 2020, 04:06:16 AM »
Check the Roundcube error log.
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more…

Offline tarunmathur

  • Newbie
  • *
  • Posts: 5
Re: hMailServer password change
« Reply #4 on: February 06, 2020, 07:19:31 AM »
Hi here are the logs

[06-Feb-2020 04:06:49 Asia/Kolkata] PHP Fatal error:  Uncaught Error: Class 'COM' not found in C:\Downloads\websites\complete\plugins\password\drivers\hmail.php:36
Stack trace:
#0 C:\Downloads\websites\complete\plugins\password\password.php(387): rcube_hmail_password->save('tarunC234234', 'Tarun@234234', 'tarunmathur@ush...')
#1 C:\Downloads\websites\complete\plugins\password\password.php(183): password->_save('tarunC234234', 'Tarun@234234')
#2 C:\Downloads\websites\complete\program\lib\Roundcube\rcube_plugin_api.php(494): password->password_save()
#3 C:\Downloads\websites\complete\index.php(288): rcube_plugin_api->exec_action('plugin.password...')
#4 {main}
  thrown in C:\Downloads\websites\complete\plugins\password\drivers\hmail.php on line 36
[06-Feb-2020 04:08:37 Asia/Kolkata] PHP Fatal error:  Uncaught Error: Class 'COM' not found in C:\Downloads\websites\complete\plugins\password\drivers\hmail.php:36
Stack trace:
#0 C:\Downloads\websites\complete\plugins\password\password.php(387): rcube_hmail_password->save('tarunC234234', 'Tarun@234234', 'tarunmathur@ush...')
#1 C:\Downloads\websites\complete\plugins\password\password.php(183): password->_save('tarunC234234', 'Tarun@234234')
#2 C:\Downloads\websites\complete\program\lib\Roundcube\rcube_plugin_api.php(494): password->password_save()
#3 C:\Downloads\websites\complete\index.php(288): rcube_plugin_api->exec_action('plugin.password...')
#4 {main}
  thrown in C:\Downloads\websites\complete\plugins\password\drivers\hmail.php on line 36

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,876
    • SKaero - Custom Roundcube development
Re: hMailServer password change
« Reply #5 on: February 06, 2020, 09:41:01 AM »
Code: [Select]
2.1.9. hMailServer (hmail)
 --------------------------

 Requires PHP COM (Windows only). For access to hMail server on remote host
 you'll need to define 'hmailserver_remote_dcom' and 'hmailserver_server'.
 See config.inc.php.dist file for more info.
https://www.php.net/manual/en/com.installation.php

Offline tarunmathur

  • Newbie
  • *
  • Posts: 5
Re: hMailServer password change
« Reply #6 on: February 06, 2020, 10:08:03 AM »
Hi,
PHP Com is already enabled in PHP.INI in windows.

hmailserver_remote_dcom=false

hmailserver_server credentials are the localhost, username and password that are used to connect the hMailServer from the frontend.

Thanks

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,845
Re: hMailServer password change
« Reply #7 on: February 07, 2020, 02:12:56 AM »
Quote
PHP Com is already enabled in PHP.INI in windows.
Are you sure? Have you checked the output from phpinfo()?
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more…

Offline tarunmathur

  • Newbie
  • *
  • Posts: 5
Re: hMailServer password change
« Reply #8 on: February 07, 2020, 05:04:01 AM »
Please find the entries done in my php.ini

[COM]
; path to a file containing GUIDs, IIDs or filenames of files with TypeLibs
; http://php.net/com.typelib-file
;com.typelib_file =

; allow Distributed-COM calls
; http://php.net/com.allow-dcom
com.allow_dcom = true

; autoregister constants of a components typlib on com_load()
; http://php.net/com.autoregister-typelib
;com.autoregister_typelib = true

; register constants casesensitive
; http://php.net/com.autoregister-casesensitive
;com.autoregister_casesensitive = false

; show warnings on duplicate constant registrations
; http://php.net/com.autoregister-verbose
;com.autoregister_verbose = true

; The default character set code-page to use when passing strings to and from COM objects.
; Default: system ANSI code page
;com.code_page=

[COM_DOT_NET]
extension=php_com_dotnet.dll


Which entry in phpinfo() is there to check dcom???

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,845
Re: hMailServer password change
« Reply #9 on: February 07, 2020, 07:13:16 AM »
The reason I suggested phpinfo() was because you have said you are stuck, you believe PHP is correctly is configured and yet it is not working. By running phpinfo() from the environment where your scrript you can check that PHP reports the COM extension is enabled as you expect (it has a section for the that extension). Since this is not really a roundcube issue you might get better advice from a windows+php forum.
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more…